Repository navigation
fix(goals): continue local Codex sessions - #180208
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR lets active local Codex Goals continue through the existing queue while rechecking placement policy and operator authority. Example: A local Codex Goal remains active after its first normal turn.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a focused local Codex Goal continuation fix still missing from current main; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGoal continuation consumes settled turn results and current session state, then submits eligible internal nudges through the shared follow-up queue and ordinary Codex execution. flowchart TD
A[Settled Codex turn] --> B[Goal eligibility]
B --> C[Shared follow-up queue]
C --> D[Session admission]
D --> E[Placement and authority checks]
E --> F[Native Codex turn]
F --> G[Goal completion or continuation]
Technical reviewBest possible solution: Land the focused continuation change through the existing queue and admission owners while retaining native Goal suppression. Do we have a high-confidence way to reproduce the issue? Current main's worker-only eligibility explains the failure, supported by the contributor's parent-red/head-green Gateway receipt; no target code was executed during this review. Is this the best way to solve the issue? The smallest complete fix broadens existing placement eligibility and revalidates it at admission, preserving the queue, cancellation, accounting, and authority owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e2f560194b1. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +48, Tests +108, Docs 0. Total +156 across 6 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 23, 2026, 7:56 PM ET / 23:56 UTC (Revision 3). |
Co-authored-by: RomneyDa <[email protected]>
9ad0df8 to
fb34582
Compare
Live proof receiptValidated this change through an isolated real Gateway process plus a separate Codex app-server process, using the production Scenario:
Results:
This is process-level base-red/head-green evidence for the local Codex continuation path, not a mocked |
Exact-head Gateway/Codex continuation proofThe production harness is green at
This extends the earlier base-red/head-green receipt: parent |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Summary
This is the minimal same-process continuation portion of #177351, with credit to @Baumus for the original investigation and implementation. It intentionally excludes durable restart replay and broader recovery machinery.
Verification
pnpm exec vitest run src/auto-reply/reply/goal-continuation.test.ts src/auto-reply/reply/reply-agent-turn-preparation.test.ts --pool=forks --maxWorkers=1(96 tests passed)git diff --checkScope
No native Codex goal engine, restart recovery, merge, or backport.
Exact-head product proof
On
fb34582bdd06, a real Gateway process and separate Codex app-server process exercise the production queue:turn/startsubmissions; turn 2 calls the realupdate_goal; the persisted Goal iscomplete; no third turn startsThe same happy-path harness on parent
ec3e1030768stops after one native turn, establishing base-red / head-green behavior.