Skip to content

Resume interrupted runs from the transcript error card - #4124

Merged
reachjalil merged 1 commit into
devfrom
feat/interrupted-run-resume
Aug 26, 2026
Merged

reachjalil merged 1 commit into
devfrom
feat/interrupted-run-resume

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Summary

  • Add an explicit Resume button to the interrupted-task error card in the transcript. Clicking it sends the session's persisted recoveryPrompt through the surface's real send path (sendDraft), which keeps composer history, activity status, and the cloud-MCP submission gate intact.
  • The button only appears for error kinds that produce a recovery prompt (aborted, provider-timeout) — auth and generic errors never show it. Never auto-resumes; explicit click only.
  • New string session.resume_interrupted in 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, and retryLastPrompt had 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 0
  • bun test --isolate tests/ (apps/app) — 994 pass / 5 fail; the 5 failures are byte-for-byte the pre-existing set on dev, no new names
  • E2E tapes deliberately not run for this pass at the requester's direction.

Follow-ups

  • A disabled-while-sending state to guard rapid double clicks (consistent with nearby retry buttons today).
  • actions-store.ts / actions-provider.tsx remain uncalled dead code; separate cleanup decision.

@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview Aug 26, 2026 7:08pm
openwork-den Ready Ready Preview Aug 26, 2026 7:08pm
openwork-den-worker-proxy Ready Ready Preview Aug 26, 2026 7:08pm
openwork-diagnostics Ready Ready Preview Aug 26, 2026 7:08pm
openwork-landing Ready Ready Preview, v0 Aug 26, 2026 7:08pm

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@reachjalil
reachjalil enabled auto-merge (squash) August 26, 2026 19:12
@reachjalil
reachjalil merged commit 45e50d5 into dev Aug 26, 2026
18 checks passed

This branch was successfully deployed

5 active deployments
Preview – openwork-den-worker-proxy — 3eee23ae Deployed Aug 26, 2026 by vercel[bot]
Preview – openwork-den — 3eee23ae Deployed Aug 26, 2026 by vercel[bot]
Preview – openwork-landing — 3eee23ae Deployed Aug 26, 2026 by vercel[bot]
Preview – openwork-app — 3eee23ae Deployed Aug 26, 2026 by vercel[bot]
Preview – openwork-diagnostics — 3eee23ae Deployed Aug 26, 2026 by vercel[bot]
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