Repository navigation
fix(mothership): report a Copilot workflow tool whose paused run settles after a resume or cancel - #9290
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryReports paused Copilot workflow tools when a resumed run finishes, fails, or is cancelled.
No new actionable issues were found. Tests were inspected, not run.
|
|
@greptile |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 7 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
Turn on auto-fix | Re-trigger cubic
…les after a resume or cancel
…he reporter, keep a reload of a paused run tool quiet
64dec51 to
125655f
Compare
|
@greptile |
|
@cubic-dev-ai review this PR |
There was a problem hiding this comment.
No issues found across 6 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
Turn on auto-fix | Re-trigger cubic

Summary
run_workflowcall whose workflow pauses for human approval was never reported once the run resumed or was cancelled: the browser's report at pause gets a 404 (the log isn't terminal), and the server's own report skips a paused log, so the tool call stayedrunningand the chat waited out its whole client waitPauseResumeManagernow reports the bound tool call through the existingreportSettledClientWorkflowTool. That reporter still no-ops while the run is paused, and a browser report, a background detach, or a call bound to another execution still winsselectCorrelationis now shared withgetTrustedWorkflowToolExecutionType of Change
Testing
workflow-client-settlement.integration.ts: 13/13. New cases: a paused run stays open; resumed to completion is delivered exactly once; a resume that fails the run is delivered through the realstartResumeExecution; a cancel while paused is delivered through the realcompletePausedCancellation. Each goes red with its call site or the helper removedrun-tool-execution.test.ts: a paused run sends no confirm and leaves nothing to re-send; red without the paused branchrun-tool-execution,human-in-the-loop-manager,execution-state,copilot/confirm/route(190 pass)check:auditsand the test suite run in CIChecklist
test-auditauthoring gate)