Repository navigation
fix(status): label stored sessions accurately - #146979
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: needs maintainer review before merge. Reviewed September 13, 2026, 7:37 AM ET / 11:37 UTC. ClawSweeper reviewWhat this changesChanges the CLI Sessions inventory label from “active” to “stored,” documents archived-row inclusion, and adds regression coverage. Merge readiness✅ Ready for maintainer review This remains a useful, focused correction: current main and v2026.9.4 still describe stored sessions as active. No actionable patch defect was found. Priority: P3 Review scores
Verification
How this fits togetherThe status command reads conversation inventories from local SQLite stores and formats them for operators. Stored-session totals and recent agent activity are separate measurements. flowchart LR
A[Local conversation stores] --> B[Read-only inventory]
B --> C[Session count and recent rows]
C --> D[Status overview formatter]
D --> E[Stored sessions label]
C --> F[JSON status output]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +60, Docs +2. Total +62 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing inventory calculation and label it accurately, preserving JSON counts and the separate recent-activity measure. Do we have a high-confidence way to reproduce the issue? Yes, from source: archived conversation rows contribute to the inventory that current main labels “active.” The added SQLite-to-overview cases cover this mismatch; execution was not repeated during this read-only review. Is this the best way to solve the issue? Yes. Correcting the existing formatter is the narrowest repair because the inventory calculation is intentional and the active-agent measurement already has its own owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4883e4699ee3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (1537 commits) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) perf(sessions): keep cleanup responsive and reuse workers (#140897) fix(sessions): prevent stranded writers after abort and restart (#146792) refactor: reuse deferred owners in Gateway and infra fixtures (#146809) fix: prevent queued conversation replies from switching storage (#146984) test(ui): preserve nested failure summaries in CI logs (#146864) fix(test): respect process memory limits in local scheduling (#146298) fix: validate large media data URLs without regexp stack exhaustion (#146972) fix(ui): label model usage contributions as messages (#146735) ...
* temp/pr-145950: (101 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* commit '060e856e5f9df245d63c98990fcb47e18108c6b9': (97 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (30 commits) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) perf(sessions): keep cleanup responsive and reuse workers (#140897) fix(sessions): prevent stranded writers after abort and restart (#146792) refactor: reuse deferred owners in Gateway and infra fixtures (#146809) fix: prevent queued conversation replies from switching storage (#146984) test(ui): preserve nested failure summaries in CI logs (#146864) fix(test): respect process memory limits in local scheduling (#146298) fix: validate large media data URLs without regexp stack exhaustion (#146972) fix(ui): label model usage contributions as messages (#146735) ...
Gateway diagnostics count stored sessions, including archived rows. Correct both command aliases through their shared formatter and cover the real stored inventory. Completes the terminology correction from #146979; production net zero lines.
Gateway diagnostics count stored sessions, including archived rows. Correct both command aliases through their shared formatter and cover the real stored inventory. Completes the terminology correction from #146979; production net zero lines.
Gateway diagnostics count stored sessions, including archived rows. Correct both command aliases through their shared formatter and cover the real stored inventory. Completes the terminology correction from openclaw#146979; production net zero lines.
What Problem This Solves
The status overview calls its stored-session inventory “active,” including when every counted conversation is archived.
User Impact
The Sessions row now says “stored.” Counts, JSON output, and the separate active-agent measure in
status --allkeep their existing meaning.Why This Change Was Made
The canonical SQLite summary counts readable stored conversation rows in the selected physical stores. The formatter now labels that fact correctly, and the documentation explains archived-row inclusion. No schema, persistence, configuration, lifecycle, or count arithmetic changes are needed. Production is +2/−2 (net zero), with 60 net regression-test lines and two documentation lines.
Evidence
Four baseline assertions failed on the misleading unit; the final focused and sibling suite passes all 38 tests. Before and after normal builds, the actual built CLI ran
status,status --json, andstatus --allin empty, ordinary, mixed-archive, and all-archived synthetic states: 24 native invocations in total. Counts of 0, 1, 4, and 4 changed only from “active” to “stored.” JSON inventory, shared-store/retired-namespace counts, and zero active-agent controls stayed unchanged.Every command exited naturally with complete output; all eight fixture roots were removed. Full stdout comparisons match after only fixture paths, dynamic JSON ages, and the intended unit are normalized. The normal explicit-base gate passed all 30 checks, and fresh managed P0–P2 review found no actionable findings. Proof is bound to
ce6718fd82a492b7c1f2b068e1c68477fd9a8b7f; builds/native runs precede a test-only import reorder subsequently covered by tests, checks, and review. No live Gateway, provider, or channel was used.