Repository navigation
fix(chat): show checkpoint details for compacted history - #1091
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 3:30 AM ET / 07:30 UTC. ClawSweeper reviewWhat this changesThis PR turns generic Chat compaction statuses into checkpoint-detail cards, opens the existing checkpoint workflow over Chat, and refreshes the transcript after a restore. Merge readiness⛔ Blocked until stronger real behavior proof is added - 8 items remain This PR remains necessary because current main still renders generic compaction statuses. Keep it open, but require a complete final-head source review and live restore proof before merge. Priority: P2 Review scores
Verification
How this fits togetherWinUI Chat renders gateway session history and compaction events. The new checkpoint action reuses session checkpoint APIs, then reloads the active transcript after a restore. flowchart LR
A[Gateway session history] --> B[Chat timeline]
B --> C[Compacted-history card]
C --> D[Checkpoint dialog]
D --> E[Branch or restore]
E --> F[Fresh gateway history]
F --> B
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the Chat card and shared checkpoint dialog, move restore-specific reconciliation into the designated history-loading seam, then add redacted final-head gateway restore proof. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main sends compaction status events through the generic status renderer. A live reproduction was not run, and the final PR head could not be fully inspected. Is this the best way to solve the issue? No. Reusing the existing checkpoint workflow is the right user-facing path, but restore-specific history coordination should leave the growing Chat provider and be proved on the final head. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ca8fb4a404ad. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Restore checkpoint-focused compaction copy and open the shared checkpoint dialog directly over the invoking chat surface. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.
What Problem This Solves
Fixes an issue where users viewing a compaction event in Chat would see a generic status instead of checkpoint-focused compacted-history details. It also avoids taking users to the Sessions page just to display the checkpoint dialog.
Why This Change Was Made
The Reactor timeline now renders structured compaction events with the web-parity checkpoint explanation and an Open checkpoints action. A shared checkpoint dialog coordinator hosts the existing list, branch, and restore workflow on the invoking Chat surface while remaining reusable from Sessions.
A maintainer patch also makes successful restores replace the active Chat transcript with fresh gateway history. It invalidates pre-restore history responses, preserves genuinely new post-restore events, and suppresses stale failure notifications and retries.
User Impact
Users can see that compacted history is preserved as a checkpoint and open that session's checkpoints directly over Chat without losing their place. After restoring a checkpoint, Chat no longer shows messages that the gateway archived.
Evidence
2a85a0d3verified the localized compacted-history card, checkpoint explanation, and Open checkpoints action.5fdba1d0head. Latestmainmerged without conflicts and was validated at6093c50a.UI screenshots from the visual change
Change Type
Scope
winnodeValidation
.\build.ps1- passed.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore- 3,399 passed, 32 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore- 2,053 passed, 0 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~SessionActionsWiringTests|FullyQualifiedName~ChatTimelinePresentationTests|FullyQualifiedName~OpenClawChatDataProviderTests"- 313 passed, 0 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --filter "FullyQualifiedName~ChatTimelineThemeResourceProofTests"- 2 passed, 0 skipped, 0 failed.Real Behavior Proof
6093c50a.Yes/No/N/A): Yes. Both GitHub-hosted screenshots return valid PNG content and show the visual portion of the change.6093c50a. The restore aftermath is covered by deterministic provider tests. The maintainer patch changed state reconciliation, not visual composition.Security Impact
Yes/No): No.Yes/No): No.Yes/No): Yes. The Chat action invokes the existing typed checkpoint list, branch, and restore APIs already used by Sessions. After a successful restore, it also refresheschat.historyso the local transcript matches gateway state.Yes/No): No.Yes/No): No.Yes, explain the risk and mitigation: The action only exposes existing current-session checkpoint workflows on another trusted app surface. The added history refresh reads the same selected session after restore and adds no endpoint, permission, credential handling, or broader data access.Compatibility and Migration
Yes/No): Yes.Yes/No): No.Yes/No): No.Review Conversations