Codex/multiprocess browser improvements#41
Merged
softpudding merged 15 commits intomainfrom Mar 22, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch started as a per-conversation multi-process isolation change, but it also includes a broader set of browser automation, prompt, and evaluation improvements that landed along the way.
At a high level, this PR:
Main Changes
1. Per-conversation multi-process execution
ProcessManagerandBrowserExecutorBundleto encapsulate process lifecycle, worker queues, agent manager initialization, and command execution in workers.Key files:
server/agent/manager.pyserver/agent/api.pyserver/api/routes/agent.pyserver/core/process_manager.pyserver/core/browser_executor_bundle.py2. Highlight readiness and screenshot stability
element_type="any"better surfaces scrollable regions and remains more stable visually.Key files:
extension/src/commands/highlight-detection.injected.jsextension/src/commands/highlight-detection.tsextension/src/commands/screenshot.tsextension/src/utils/layout-stability.tsextension/src/utils/collision-detection.tsAGENTS.md3. Element interaction improvements, including swipe support
Key files:
extension/src/commands/element-actions.tsextension/src/background/index.tsserver/models/commands.pyserver/agent/prompts/element_interaction_tool.j2server/agent/prompts/highlight_tool.j2server/agent/prompts/tab_tool.j24. Prompt and model/tooling refinements
openhands-sdk/openhands-toolsdependency revisions and refreshed the lockfile.Key files:
server/agent/prompts/highlight_tool.j2server/agent/prompts/javascript_tool.j2server/agent/tools/base.pyserver/agent/tools/browser_executor.pyserver/agent/tools/prompt_context.pypyproject.tomluv.lock5. Evaluation expansion and maintenance
bluebook_simplebluebook_complexusage_metricsSSE snapshot rather than the first one, which was underreporting costs.eval/evaluation_report.jsonfrom the saved SSE output.Key files:
eval/bluebook/index.htmleval/bluebook/js/bluebook.jseval/bluebook/css/bluebook.csseval/dataset/bluebook_simple.yamleval/dataset/bluebook_complex.yamleval/server.pyeval/README.mdeval/evaluate_browser_agent.pyeval/evaluation_report.jsonTesting
Added or updated tests for:
Representative test files:
server/tests/unit/test_agent_api_multiprocess.pyserver/tests/unit/test_agent_manager_process.pyserver/tests/unit/test_browser_executor_bundle.pyserver/tests/unit/test_eval_client.pyextension/src/__tests__/highlight-detection.test.tsextension/src/__tests__/highlight-layout-stability.test.tsextension/src/__tests__/element-actions-regression.test.tsNotes
This branch also contains a few non-core artifacts alongside product changes, including:
eval/.locks/bug_report_highlight_any_scrollable.md