Repository navigation
fix(tui): label persisted session inventory accurately - #147273
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 15, 2026, 1:41 AM ET / 05:41 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR changes the terminal UI’s session-count label to “Stored sessions,” documents archived-session inclusion, and extends existing regression coverage. Merge readiness✅ Ready for maintainer review This PR remains useful: current main still mislabels stored inventory as active sessions. The focused repair has convincing before/after evidence and no actionable findings. Priority: P3 Review scores
Verification
How this fits togetherThe terminal UI requests Gateway diagnostics and formats the returned session inventory for display. The inventory counts stored conversations, including archived rows and retired agent namespaces. flowchart LR
A[Gateway status command or alias] --> B[Gateway status request]
C[Stored conversation inventory] --> D[Status summary]
B --> D
D --> E[Terminal status formatter]
E --> F[Stored sessions count]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +6, Docs 0. Total +6 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing inventory calculation and use accurate stored-session terminology consistently across CLI and TUI diagnostics. Do we have a high-confidence way to reproduce the issue? Yes: current main passes stored inventory to a formatter that calls it active; archived-row fixtures establish the mismatch. This review did not execute a fresh reproduction. Is this the best way to solve the issue? Yes: changing the existing shared formatter fixes both aliases without introducing a competing counter, migration, or configuration surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d6169577126. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
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.
12b4da7 to
35cf6a7
Compare
|
@clawsweeper re-review The existing net-zero stored-session label repair is unchanged at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
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
Gateway diagnostics in the terminal UI call persisted conversation inventory “Active sessions,” even when it includes archived conversations and retired agent namespaces.
User Impact
Both
/gateway-statusand/gwstatusnow display “Stored sessions.” Counts, JSON, authorization and session lifecycle behavior are unchanged. No migration or configuration change is needed.Why This Change Was Made
Correct the label in the existing shared formatter, matching the CLI terminology fixed in #146979. Production is +1/−1, net zero. Existing handler and SQLite inventory fixtures cover both aliases and archived/retired rows; docs explain what is counted.
Evidence
Retained native Gateway/TUI proof at
09cfbcef2c924f526b433a4abc5079a800eb01f3plus the exact production patch shows the label changing while counts remain 4 and 5. All four inspected, synthetic before/after screenshots are below. Later source refreshes preserve the exact four reviewed postimages; those refreshes are not presented as additional native runs. The retained focused test run passed 289 cases, and independent review found no actionable issues./gateway-status/gwstatusCurrent validation
Head
0400692a5f9ddfed09332e065d1813339e50efdfincorporates mainea4428a6a4dad8de980f4e02037c86d79496690fby a normal merge. The four-file repair is unchanged. Fresh CI 34933428935 and Workflow Sanity 34933428933 passed on this exact head. The CI logs explicitly show both diagnostic aliases, both mixed/fully archived-and-retired inventory cases, and both formerly failing include-exclusion cases passing. Those jobs executed merge094bc84c8abf35c0fb5fd29176fcdae371518e1eover4d616957712663c069c0e64f951340ec3558d998, with all four PR files and the include-test file matching this head.The preceding CI run passed both alias cases and both mixed/fully archived inventory cases, but failed two unrelated included-config writer-exclusion tests. That failure remains recorded. Current main includes #148743, which drains observation workers before fixture deletion without changing assertions or timeouts. Its author did not reproduce the original exception, so this refresh does not claim that cleanup alone establishes the exception’s root cause. A bounded local investigation on the preceding head passed the full 15-case config file and captured no exception; the original exception’s cause remains unproven despite the fresh CI passes.
The current-head ClawSweeper review completed with no actionable findings or before-merge items.