Repository navigation
feat(desktop): resume interrupted tasks gradually after restart - #4636
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
reachjalil
enabled auto-merge (squash)
September 8, 2026 19:51
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (69e32b28c34396248f8263906af84ea32deb5fb0). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
reachjalil
disabled auto-merge
September 8, 2026 20:07
reachjalil
enabled auto-merge (squash)
September 8, 2026 20:07
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1c48405d3b69ae9dc41e3ad6771ba9b7ea2baf60). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
This was referenced Sep 8, 2026
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
Automatically continue eligible local tasks after restarting OpenWork, including update restarts, without requiring their conversation tabs to be mounted.
Follow-up to merged #4590. This PR targets dev and contains only the recovery increment and its review fixes.
Behavior
Review Fixes
Verification: Incomplete
Current head: 1c48405. Commit signature verified.
Passed for this update:
pnpm --filter @openwork/desktop typecheck:electron: exit 0. This exact CI command previously reproduced TS2358 in automation-runner.mjs:79; the fix removes that failure.node --test apps/desktop/electron/automation-runner.test.mjs: exit 0; 45 passed, 0 failed, 0 skipped.pnpm --dir apps/server exec bun --conditions=development test src/task-recovery.test.ts: exit 0; 22 passed, 0 failed, 0 skipped; 51 assertions, with 11 cases per engine.pnpm --dir evals exec tsc --noEmit --strict --skipLibCheck --module preserve --moduleResolution bundler --target es2023 --lib esnext,dom,dom.iterable --allowImportingTsExtensions --allowJs --jsx react-jsx packages/cdp/src/browser-globals.d.ts specs/background-desktop-update.e2e.test.ts: exit 0. Typechecks the modified journey and its imported worlds without launching resources.pnpm --dir evals check:browser -- worlds/chat.ts specs/background-desktop-update.e2e.test.ts: exit 0; 739 browser callbacks checked.git diff --check origin/dev...HEAD: exit 0.Deferred by execution scope:
OPENWORK_EVAL_ENGINE=v1 pnpm evals:e2e background-desktop-updateOPENWORK_EVAL_ENGINE=v2 pnpm evals:e2e background-desktop-updateThe new restart scenario is authored and typechecked, not runtime-validated. The earlier copy-only assertion is not used as recovery proof. No Daytona resources or expensive eval commands were started. New-head CI is pending its own results; the old-head build failure is not described as a passing check.
Limits
Only work admitted after this feature is present can be recovered; the first upgrade from an older version has no recovery journal to consume. V1 needs its original user turn/model within the recent 100-message snapshot. Failed or unconfirmed admissions/checkpoints remain manual. Active delegated work is conservatively excluded rather than independently restarting its parent.
The continuation instructs the task to inspect already-completed effects and ask when uncertain. At-most-once recovery admission is not an exactly-once guarantee for external tool side effects. Missing real-engine proof keeps the overall verdict Incomplete.
No merge, release, or deployment is part of this PR.