Repository navigation
fix: keep cold sessions visible and verify release recovery - #145462
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: blocked before merge. Reviewed September 11, 2026, 11:19 PM ET / September 12, 2026, 03:19 UTC (Revision 9). ClawSweeper reviewWhat this changesKeeps archived sessions visible in Activity without restoring their transcripts, adds packaged archival and recovery checks, and repairs a UI proof-capture locator. Merge readiness⛔ Blocked before merge - 1 item remains The fix remains necessary on current main. No actionable introduced defects were found; the earlier frozen-target blocker is resolved, and the requested packaged recall result is now recorded. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway derives Activity titles and previews from session transcripts, some of which may be archived outside SQLite. Optional title reads must preserve session visibility while explicit history requests restore the archived content. flowchart TD
A[Activity list request] --> B[Session metadata]
B --> C[Optional title reader]
C --> D{Transcript available?}
D -->|Yes| E[Cached or derived preview]
D -->|Archived| F[Metadata without preview]
G[Explicit history request] --> H[Restore archived transcript]
H --> C
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +199, Docs +17, Other +664. Total +885 across 19 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep optional title hydration non-restoring, preserve explicit history errors, and retain packaged recovery coverage in the existing release lanes. Do we have a high-confidence way to reproduce the issue? Yes, from source: an uncached cold transcript reaches the scalar title reader and throws during Activity listing on current main. The PR records a failing real-worker regression; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Handling the expected cold condition at the shared optional-title boundary preserves archive ownership and uses the existing cache invalidation mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6f1185305def. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
Clear baseline CI failures introduced by #145183: reuse the existing picker fixture, test cloud configuration through its production renderer, and remove the unused Connect menu renderer.
Doctor imports filesystem mutation time rather than timestamps inside messages. Date the legacy files before import, and handle CLI failure diagnostics without adding a lint suppression or retaining credential-bearing command arguments.
Handle cold transcripts at the optional title-reader boundary without restoring payloads or caching missing previews. Verify real archival, mixed hot/cold listings and cache recovery; extend packaged release proof across restart and portable backup recovery. Preserve JSON CLI errors from stdout in the test harness.
Clear the existing cursor-policy failure from #145183 without weakening its regression test.
Share capability resolution with source preflight and omit only unsupported cold subcases under the existing explicit frozen-target policy. Keep current coverage required, isolate ordinary retention in the live fixture, and strengthen fixture typing without suppressions.
Register the shell entrypoints for dependency analysis, type the frozen-source fixture cases explicitly, and align existing cloud test callback ordering with the same repair now on main.
|
Merged via squash.
|
…#145462) * test: cover transcript cold storage in release Docker lanes * test: remove stale cloud picker test seams Clear baseline CI failures introduced by openclaw#145183: reuse the existing picker fixture, test cloud configuration through its production renderer, and remove the unused Connect menu renderer. * test: preserve historical transcript fixture modification times Doctor imports filesystem mutation time rather than timestamps inside messages. Date the legacy files before import, and handle CLI failure diagnostics without adding a lint suppression or retaining credential-bearing command arguments. * fix: keep cold sessions available to Activity title probes Handle cold transcripts at the optional title-reader boundary without restoring payloads or caching missing previews. Verify real archival, mixed hot/cold listings and cache recovery; extend packaged release proof across restart and portable backup recovery. Preserve JSON CLI errors from stdout in the test harness. * fix(ui): use the action cursor for session details Clear the existing cursor-policy failure from openclaw#145183 without weakening its regression test. * test: preserve frozen release targets in cold-storage lanes Share capability resolution with source preflight and omit only unsupported cold subcases under the existing explicit frozen-target policy. Keep current coverage required, isolate ordinary retention in the live fixture, and strengthen fixture typing without suppressions. * test: complete cold-storage release entrypoint contracts Register the shell entrypoints for dependency analysis, type the frozen-source fixture cases explicitly, and align existing cloud test callback ordering with the same repair now on main. * test: isolate archived recall from external tool policy * test: retain the cloud machine locator for proof capture
What Problem This Solves
With transcript cold storage enabled, an uncached archived session could fail the Activity list and startup prewarm when they requested derived titles or last-message previews. Cached titles masked the failure until restart. Full release verification also lacked permanent installed-package coverage of archival, recovery, and live model recall from cold history.
Related: #145172.
Why This Change Was Made
Handle cold transcripts in the shared optional title reader. Keep session metadata visible without restoring payloads, and use the existing unavailable-title cache fence so omitted previews refresh after history restoration. Actual history requests and missing-file errors retain their existing behavior.
Extend the existing
session-runtime-contextDocker gate with three dated synthetic histories imported through Doctor. Exercise automatic 30-day archival, a live change to seven days, missing-file errors without losing recovery references, exact event restoration, disabled-policy restart, Activity listing without rehydration, and portable SQLite backup recovery after removing the original state.Extend the existing
openai-chat-toolsgate with one live OpenAI recall turn whose answer exists only in archived history. Verify the response, restored original event bytes, provider/model, and token usage while preserving the existing HTTP tool-call case. Both lanes already run in full release validation; document their coverage. The shared frozen-target preflight omits only unsupported cold subcases for explicitly authorized older packages, while preserving their original checks and requiring cold coverage for current targets.User Impact
Cold sessions remain available in Activity without refilling the database merely to render the list. Cached title fields remain usable; otherwise session metadata supplies the title and last-message previews return after history is restored. No schema bump or configuration change is required.
Release verification gains bounded automatic archival and recovery checks plus one additional real-provider call. Large database stress remains a separate campaign.
Evidence
SessionTranscriptColdErrorbefore the fix; 72 title-reader, session-list/prewarm, and list-cache tests pass after it.001b7c51c68ae84eb6a696c41facbb6903a9b625: deterministic lifecycle passed in 95 seconds; live OpenAI HTTP tools plus archived-history recall passed in 17.9 seconds. The recall checks its nonce, unchanged original event prefix, exact provider/model, and positive token usage. Testbox environment.f568a0c0c7b0cab82b8da025701f20528d6c54663152fd34f016bc3af15960b8. Subsequent change is a test-only locator repair; runtime and cold-storage harness bytes are unchanged.