Repository navigation
fix(core): recover scoped goal checks without replaying commands - #410
Conversation
Codex Review SummaryThis 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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Restarting QQ now reconnects to a scoped completion check and settles its original goal from the original worker journal. A running check keeps workspace exclusion and wakes on completion. Recovery preserves the invocation ID, goal revision, consumed consent and budgets without resubmitting commands or loading a provider.
Keep worker results until goal/run settlement commits, including a crash after the tool result was saved locally. Recovery commits the terminal result and goal together before acknowledgement. Cancellation, expiry and edited goals take precedence; replaced/unavailable workers, changed task roots and missing terminal evidence retain the interrupted-check hold.
Verification: crash-window regressions were reproduced before the fix; 47 focused tests passed. Workspace tests: 2,964 passed initially; five TUI tests affected by inherited
NO_COLOR=1all passed on targeted rerun with that variable removed (16 skipped). Workspace and minimal-provider clippy, doctests and all 223 minimal-provider tests passed.cargo xtask checkwas run once; its lint finding was fixed and the remaining components were run individually. Crash-window regressions fail before the fix. Coverage includes live observation, both saved-result states, cancellation, expired budgets, edited goals and unavailable/replaced authority. A real Linux command changes its task file once across coordinator loss. A reproduced filesystem-capacity stall is now bounded by the existing two-second recovery observation limit; the run releases ownership without acknowledging unverified evidence. All 12 affected recovery/preparation tests passed after this follow-up. Common recovery cases run in macOS/Windows CI.Ninth layer after #409 in stack 403. Default Auto/task preparation and native macOS/Windows containment remain unfinished. The Linux fixture uses host resource scope; delegated-cgroup qualification remains in its existing native fixture.