forked from openai/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
Preserve reconciled resume rows in fallback recording #100
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinglocal-ticket/enhancementAdds or improves behavior in the local Codex forkAdds or improves behavior in the local Codex forklocal-ticket/stateChanges local SQLite state or log persistence behaviorChanges local SQLite state or log persistence behavior
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglocal-ticket/enhancementAdds or improves behavior in the local Codex forkAdds or improves behavior in the local Codex forklocal-ticket/stateChanges local SQLite state or log persistence behaviorChanges local SQLite state or log persistence behavior
Outcome
Fix only the residual fallback/app-server recorder path that can discard a valid DB-only row when rollout JSONL is missing, stale, or incomplete. Preserve upstream main resume loading.
Governing evidence
Closed issue #20 and commits
3917342cb3andc02a63b1f4; upstream 0.153.4 main TUI resume loading is already DB-first.The issue and this evidence define required behavior. Port functional intent onto the current upstream architecture; patch identity is irrelevant.
Non-goals
Do not reintroduce the custom DB-first picker patch or change resume sorting/presentation.
Acceptance criteria and verification
Integration tests cover valid DB-only rows, valid JSONL, missing/malformed/stale JSONL, reconciliation without duplication, and app-server recording behavior. Run the smallest focused
just test -p <crate>checks that cover the changed crates under the repository reduced-priority wrapper. Regenerate schemas or snapshots only when this ticket changes them. For a large Rust change run scopedjust fix -p <crate>, thenjust fmt; do not rerun tests after fix/format. Remove disposable build artifacts afterward.Likely areas
Rollout listing/reconciliation and app-server fallback recording tests.
Dependencies
Fully blocked by #81.
Do not begin ticket-owned mutation until every dependency is integrated; their landed contracts are authoritative.
Blocks #104.
Delivery
The accepted result must integrate as exactly one issue-linked commit with subject
fix(rollout): preserve reconciled resume rows. Tests, snapshots, generated files, and fixes belong in that commit; adaptation or test-only follow-up commits are not permitted.Agent routing
agent_level: 4Agent signature
gpt-5.6-sol@high:01a07441-98af-75c1-9950-8af46deb76de