Repository navigation
fix(sessions): classify terminal sessions as ended - #1017
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f0e93ff-d320-454d-b00a-865dac727d0c
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 4:45 PM ET / 20:45 UTC. Summary Reproducibility: yes. source-reproducible: the base-side filter described in the PR hides only Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the shared terminal-status predicate and compatible persisted toggle key, then attach a redacted current-head accessibility-tree capture or terminal transcript showing “Show ended” and the resulting visible/hidden session behavior. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the base-side filter described in the PR hides only Is this the best way to solve the issue? Yes, the shared predicate is the narrowest maintainable solution because it keeps Sessions and the Chat picker aligned while retaining the existing persisted setting key and aborted-session exception. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 258f83858dc7. 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 Sessions page toggle said Show completed, but the default filter hid only successful
done/completedsessions. Failed, killed, and timed-out sessions remained mixed with active sessions even though they are terminal from a UI perspective.Why This Change Was Made
Rename the UI concept to Show ended and define ended sessions as
done,completed,failed,killed, ortimeout. Unknown, running, suspended, andAbortedLastRunsessions remain visible because they may still be valid or need attention. The existing persistedShowCompletedSessionskey, XAML names, automation ID, and resource key remain unchanged for compatibility.User Impact
With Show ended off, both the Sessions page and main Chat picker focus on active, unknown, suspended, or aborted sessions. Turning it on reveals all terminal outcomes.
Evidence
done, 23unknown, and 1killedsession.Change Type
Scope
winnodeValidation
./build.ps1— passed; all five projects built.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,823 passed, 0 failed.git diff --check— passed.Real Behavior Proof
15c7b0a1.run-app-local.ps1 -NoBuild -AllowNonMain, navigated to Sessions through local MCP, and inspected the native accessibility tree.N/A; copied native UI diagnostics above.Security Impact
NoNoNoNoNoCompatibility and Migration
YesNo; persisted setting key retained.NoReview Conversations