Repository navigation
feat(mcp): signal cancellation to running browser tools - #2009
BlueHotDog merged 2 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Additional validation: make -C apps/frontman_server strict-compile now passes in both dev and test environments, after restoring the exact locked dependencies inside this isolated workspace. Dependency builds printed upstream warnings, but both strict project compiles exited successfully. make -C apps/frontman_server lint also passes formatter and strict Credo. Backend runtime suites and precommit remain pending the exclusive PaperTiger slot; no backend runtime has been started. |
|
Fixed dead-code CI in follow-up commit (no rewrite). Internal server execution now requires its always-present signal. Exported browser tool execute entry points are marked @LiVe because their optional cancellation argument is supplied through the first-class BrowserTool module interface. No blanket analyzer suppression or behavior changes. make clean && make build, make reanalyze (Analysis reported 0 issues), frontman-client check (113 tests), client test (500 tests), source-comment check and diff whitespace check pass. Total remains 90 net-new code/test lines (98 including changeset), below 100. Exact-head review is being coordinated by the landing parent; no duplicate review request from this thread. |
|
@codex review Please review the current head |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Scope
Independent browser cancellation layer: a controller per active tools/call request, exact typed request-ID cancellation, abort on detach/transport close/error, signal forwarding through MCP.serverInterface and BrowserTool.execute. Existing browser tools accept an optional signal; tools that do not cooperate may still finish. No new JavaScript or bindings. 82 net-new code/test lines, below 100.
This is NOT end-to-end cancellation. Backend agent cancellation still needs the replay-owner durable CancelRequested/OutcomeUnknown hook before emitting notifications/cancelled. Relay wiring follows after #1994; this PR does not depend on that adapter.
Semantics
A cancellation request signals work but does not resolve it. IDs remain reserved while execution is outstanding. Actual completion after cancellation remains available for reconciliation. Disconnect aborts work and suppresses disconnected responses using the existing response-once gate. No synthetic cancelled ToolResult, rollback claim, retry policy or second durable ledger. Subscription teardown remains distinct and unchanged. Confirmed cooperative cancellation/outcome classification remains a follow-up with the durable lifecycle contract.
Test-first evidence and checks
No merge requested or performed.