Repository navigation
fix(chat): hide completed sessions from picker - #1016
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f0e93ff-d320-454d-b00a-865dac727d0c
|
Codex review: needs maintainer review before merge. Reviewed July 18, 2026, 3:01 AM ET / 07:01 UTC. Summary Reproducibility: yes. —source-level reproduction is high confidence: the current mapping gives all gateway sessions Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Merge this focused reuse of Do we have a high-confidence way to reproduce the issue? Yes—source-level reproduction is high confidence: the current mapping gives all gateway sessions Is this the best way to solve the issue? Yes—the patch is the narrowest maintainable fix because it reuses the existing clean-completion contract rather than creating a second status interpretation or changing the Sessions-page visibility setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8e79aceb5571. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Resolve conflicts in OpenClawChatDataProvider and OpenClawChatRoot: - Keep SessionPresentationResolver.AgentId/IsBackground from PR branch - Keep SessionVisibilityFilter.ToChatThreadStatus (ended-session) from main (#1016/#1017) - Keep SessionVisibilityFilter.VisibleChatPickerThreads picker filtering from main - Both filters (background + ended) applied in sequence in ChatRoot Co-authored-by: Copilot App <[email protected]> Copilot-Session: c311ae3b-8656-403f-91a6-5bfe2f91f5cd
What Problem This Solves
The main Chat composer session picker listed cleanly completed sessions even though the Sessions page hides those same sessions when Show completed is off. On the live gateway payload, 37
donesessions—including many 20–29 days old—were offered in the Chat picker.Why This Change Was Made
Reuse the existing
SessionVisibilityFilter.IsCleanCompletedcontract when projecting gatewaySessionInfointoChatThread, then exclude onlyChatThreadStatus.Completedfrom the composer picker. Aborted, failed, killed, timeout, unknown, running, and suspended sessions remain visible. A currently selected completed conversation remains viewable but is not re-added to the dropdown.User Impact
The Chat session dropdown stays focused on sessions that may still need attention. The Sessions page and its Show completed toggle are unchanged.
Evidence
app.sessionspayload: 61 rows — 37done, 23unknown, 1killed.unknown, 1killed) and nodonerows.Change Type
Scope
winnodeValidation
./build.ps1— passed; Shared, CLI, WinNode CLI, SetupEngine, and WinUI built successfully.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore— 2,901 passed, 31 skipped, 0 failed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore— 1,820 passed, 0 failed.git diff --check— passed.%TEMP%helper runtime, installed Claude Code lacked required safe-mode support, and Pi returned a connection error. Independent rubber-duck review completed cleanly.Real Behavior Proof
f9d4a62a.run-app-local.ps1 -NoBuild -AllowNonMain, navigated to Chat through local MCP, opened the session picker, dumped the live visual tree withlvt, and compared picker rows withwinnode --command app.sessions.unknown/killedrows from the live payload.N/A— copied live MCP/LVT diagnostics above; local screenshot captured but not uploaded.Security Impact
NoNoNoNoNoCompatibility and Migration
YesNoNoReview Conversations