Skip to content

fix(core): restore browser tools in agent sessions - #630

Closed
GraciousGazelles wants to merge 22 commits into
mainfrom
fix/agent-browser-dynamic-tools
Closed

GraciousGazelles wants to merge 22 commits into
mainfrom
fix/agent-browser-dynamic-tools

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Restores configured Browser dynamic tools across agent session lifecycle paths and routes Browser execution through the requesting session home. Adds focused lifecycle, persistence, and routing regressions.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the codex-browser-computer-use crate to dynamically resolve and configure browser tools at session lifecycle boundaries (such as spawns, resumes, and forks) instead of relying on persisted rollout metadata. It also updates the TUI to resolve the correct session-specific codex_home for computer-use calls. One critical issue was identified in the unit tests for app_server_events.rs, where a parenthesis mismatch in assert_eq! calls results in a compilation error.

@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the session and thread management to dynamically resolve and merge browser-scoped dynamic tools at lifecycle boundaries (such as fresh spawns, cold resumes, and forks) instead of relying on persisted rollout metadata. Additionally, the TUI is updated to resolve the correct codex_home directory for thread-specific computer use calls. The review feedback suggests simplifying the rollout_codex_home helper function to accept &Path directly instead of Option<&Path>, and updating the corresponding test cases to match this signature.

@GraciousGazelles
GraciousGazelles force-pushed the fix/agent-browser-dynamic-tools branch from 25d5f4a to 2c5fda0 Compare August 20, 2026 23:43

Copy link
Copy Markdown
Collaborator Author

Closing this stale draft in favor of active successor #751.

A read-only comparison of the frozen heads found that #751 preserves the Browser/session lifecycle behavior from #630 across child spawn, cold resume, fork, and resumed-agent restoration. The two changes overlap on ten Browser/session paths; the #630-only residency-test change is a compatibility/helper adaptation, while #751 adds the child-thread listener/summary handling needed for child-scoped routing. No unique accepted Browser behavior is being discarded.

The #630 branch and head remain preserved for provenance and recovery:
fix/agent-browser-dynamic-tools@a88ce7c30b133a73f284269ff6fa9f9622e2bd60.

#751 remains the active, separate delivery and is not changed by this closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant