fix(gateway): persist chat state before aborting stream#98171
fix(gateway): persist chat state before aborting stream#98171aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the gateway persistence-logging problem is already owned by a stronger open canonical PR, while this branch both references the wrong already-fixed CLI issue and introduces an incorrect logger call on the cleanup failure path. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this PR and continue review on #97839 as the canonical owner-boundary, redaction-tested fix for #97795. So I’m closing this here and keeping the remaining discussion on #97839 and #97795. Review detailsBest possible solution: Close this PR and continue review on #97839 as the canonical owner-boundary, redaction-tested fix for #97795. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible. Current main has silent terminal-persistence catch paths, and the PR defect is also source-proven by the Is this the best way to solve the issue? No. The maintainable fix is the canonical owner-boundary PR with Security review: Security review cleared: No concrete supply-chain or credentials regression was found; the blocker is a functional/session-state logger-contract bug, not a security flaw. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 6cb82eaab865. |
|
Closing as superseded by canonical PR #97839, following maintainer review. |
Closes #97795
What Problem This Solves
Addresses swallowed terminal-persistence failures during chat stream aborts.
Why This Change Was Made
To ensure that errors encountered while persisting chat state during stream aborts are logged properly instead of being ignored, improving debuggability.
User Impact
Better visibility into persistence failures on the gateway side.
Evidence
Modified src/gateway/chat-abort.ts to log errors caught during terminal persistence.