Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no blocking issue was found. SummaryPreserves process-capture cleanup details instead of replacing them with a generic completion message.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Run admitted operation] --> B[Prepare response]
B --> C{Workflow owns completion?}
C -->|No| D[Report completed or failed]
C -->|Yes| E{Final workflow update exists?}
E -->|No| D
E -->|Yes| F{Response failed?}
F -->|No| G[Keep workflow cleanup details]
F -->|Yes| H[Report failure with cleanup details]
D --> I[Return response]
G --> I
H --> I
Reviews (2) · Last reviewed commit: "fix(mcp): preserve workflow completion p..." · Reviewed by Greptile |
Codex Review Summary: ❌ FailedThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Thank you! Closing as already landed on |
Summary
Refs #11693. Preserve the process-capture workflow's final timeout/cancellation and cleanup progress instead of appending a generic
capture_process_scenario: completedmessage. The capture Evidence already keeps the correct exit reason; this fixes the final notification clients display.Change and scope
The shared reporter still permits child completion followed by further parent progress. This is an existing-behavior repair: no public tool, schema, target execution, mutation authority, or package metadata is added. A separate maintainer scope decision is not applicable.
Evidence and regression coverage
The existing public MCP test fails on the base with:
expected 'capture_process_scenario: completed' to contain 'disposition=timeout'.The repaired MCP tests retain final cleanup details for successful, timed-out, and cancelled controlled process captures. Additional coverage checks workflow-owned details followed by failure, fallback without a producer terminal, child completion followed by parent work, and response-budget failure after successful analysis through both provider and workflow handlers.
Validation performed
Linux/WSL, Node 24.22.1, npm 11.16.0, locked dependencies:
vitest run src/server/operationProgress.test.ts src/server/mcpProgress.test.ts tests/boundary/mcp/progressMcp.test.ts --maxWorkers=1— 3 files, 13 tests passed.vitest run --project process-boundary tests/boundary/process/processCaptureProgress.test.ts -t 'forwards live capture progress only when the MCP client supplies a token|reports timeout and cancellation cleanup through MCP progress' --maxWorkers=1— 2 tests passed; 5 CLI cases excluded by this explicit selector.npm run check:fast— typecheck, lint, module/numeric-limit checks, and architecture guards passed.git diff --check, andnpm run verify:test-discovery— passed; all 3725 test/spec files discovered exactly once.Validation limits
The full process-progress file was attempted: its 5 compiled-CLI cases fail because command stdout is empty. The same small capture scenario and missing-scenario CLI command reproduce empty stdout on the unchanged ab16163 production code in the separate cleanup-test worktree; version/help work in both trees. The cause of that independent CLI issue remains unconfirmed.
Verification uses real MCP transport with controlled Node children and recording providers. Real reverse-engineering engines, native Windows/macOS, and the full repository suite were not run. No performance improvement is claimed.
Author readiness
Human owner: @g1at