Repository navigation
Resume interrupted runs from the transcript error card - #4124
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (3eee23ae9fdd0ca5b2e7208e67a3bd29fac9d6ff). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
This branch was successfully deployed
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
recoveryPromptthrough the surface's real send path (sendDraft), which keeps composer history, activity status, and the cloud-MCP submission gate intact.aborted,provider-timeout) — auth and generic errors never show it. Never auto-resumes; explicit click only.session.resume_interruptedin the en locale; three focused tests in the existing error-resilience harness (rendered for aborted, rendered for provider-timeout, absent for auth errors).Why
When an engine restart or abort interrupts a run, the transcript showed a dead-end error with no way forward: the classified
recoveryPrompt(which instructs the agent to inspect completed work and finish only what remains) was presentation-only, andretryLastPrompthad no callers and loses its in-memory state across exactly the restart scenario it would be needed for. The recovery prompt is persisted in the synthetic error message metadata, so it survives reloads and restarts.Verification
pnpm --filter @openwork/app typecheck— exit 0bun test --isolate tests/(apps/app) — 994 pass / 5 fail; the 5 failures are byte-for-byte the pre-existing set ondev, no new namesFollow-ups
actions-store.ts/actions-provider.tsxremain uncalled dead code; separate cleanup decision.