Preserve delivered assistant replies in session repair#76420
Conversation
|
Codex review: passed. Summary Reproducibility: yes. Current main has a clear source path: a normal trailing assistant JSONL record is popped by Next step before merge Security Review detailsBest possible solution: Land one branch that preserves delivered assistant replies on disk, keep provider-specific assistant-prefill stripping at the outbound replay boundary, then close the linked bug and supersede the duplicate PR path. Do we have a high-confidence way to reproduce the issue? Yes. Current main has a clear source path: a normal trailing assistant JSONL record is popped by Is this the best way to solve the issue? Yes. The PR removes only the durable-history trim while retaining malformed-record repair and outbound Anthropic/Gemini prefill stripping, which is the narrowest maintainable boundary for the reported bug. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 6a3f5d0b1f35. |
87ae220 to
7af9c49
Compare
|
@clawsweeper automerge |
|
🦞🦞 Source: What merged:
Automerge notes:
The automerge loop is complete. Automerge progress:
|
7af9c49 to
66c187f
Compare
Summary: - The PR removes session-file repair's trailing-assistant disk trim, updates regression coverage, clarifies transcript hygiene docs, and adds a changelog entry for the Telegram/WebChat history loss fix. - Reproducibility: yes. Current main has a clear source path: a normal trailing assistant JSONL record is popped by `repairSessionFileIfNeeded`, and the main-branch test suite asserts that deletion. Automerge notes: - PR branch already contained follow-up commit before automerge: docs(agents): clarify session repair preservation - PR branch already contained follow-up commit before automerge: fix(agents): preserve delivered assistant replies in session repair Validation: - ClawSweeper review passed for head 66c187f. - Required merge gates passed before the squash merge. Prepared head SHA: 66c187f Review: openclaw#76420 (comment) Co-authored-by: Ayaan Zaidi <hi@obviy.us> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary: - The PR removes session-file repair's trailing-assistant disk trim, updates regression coverage, clarifies transcript hygiene docs, and adds a changelog entry for the Telegram/WebChat history loss fix. - Reproducibility: yes. Current main has a clear source path: a normal trailing assistant JSONL record is popped by `repairSessionFileIfNeeded`, and the main-branch test suite asserts that deletion. Automerge notes: - PR branch already contained follow-up commit before automerge: docs(agents): clarify session repair preservation - PR branch already contained follow-up commit before automerge: fix(agents): preserve delivered assistant replies in session repair Validation: - ClawSweeper review passed for head 66c187f. - Required merge gates passed before the squash merge. Prepared head SHA: 66c187f Review: openclaw#76420 (comment) Co-authored-by: Ayaan Zaidi <hi@obviy.us> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary
Validation
OPENCLAW_LOCAL_CHECK=1 OPENCLAW_LOCAL_CHECK_MODE=throttled pnpm check:changedpnpm test src/agents/session-file-repair.test.tspnpm exec oxfmt --check --threads=1 src/agents/session-file-repair.ts src/agents/session-file-repair.test.ts docs/reference/transcript-hygiene.md CHANGELOG.mdgit diff --checkFixes #76329