Repository navigation
feat(sessions): consume flattened gateway classification - #1069
Conversation
|
Codex review: needs changes before merge. Reviewed August 5, 2026, 6:57 PM ET / 22:57 UTC. ClawSweeper reviewWhat this changesThis PR replaces Windows consumption of Gateway's nested session-presentation object with flattened session classification and identity facts, then resolves titles and visibility locally. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep open. The prior P1 remains unfixed at the current head: the flat-only parser drops valid legacy nested session facts, breaking rolling-upgrade classification and potentially direct-peer display-name suppression. Priority: P1 Review scores
Verification
How this fits togetherGateway session rows enter the Windows gateway client, which stores session facts for the local display resolver. The resolver supplies localized titles, background filtering, and session metadata to tray and chat surfaces. flowchart LR
A[Gateway session rows] --> B[Windows session parser]
B --> C{Flat facts available}
C -->|yes| D[Local display resolver]
C -->|no| E[Legacy session facts]
E --> D
D --> F[Tray session list]
D --> G[Chat thread list]
Before merge
Findings
Agent review detailsSecurityNeeds attention: Removing legacy presentation parsing can bypass direct-peer display-name suppression for nested-only Gateway rows. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep flattened facts authoritative, but translate valid legacy nested facts into missing flat fields without restoring Gateway-owned title rendering, then prove nested-only and mixed-version rows through the Windows Gateway path. Do we have a high-confidence way to reproduce the issue? Yes, from source. A nested-only Gateway row with an opaque direct-session key follows the removed parser path and can be covered by a focused gateway-client plus resolver regression test; no write-capable runtime execution was performed in this review. Is this the best way to solve the issue? No. Removing the legacy contract before flattened facts are guaranteed loses established session behavior; a flat-first compatibility translation is the narrower maintainable path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d2de6150753b. LabelsLabel justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (25 earlier review cycles; latest 8 shown)
|
Co-authored-by: Copilot App <[email protected]>
|
Maintainer resolution of the remaining ClawSweeper finding: rejected as not applicable to a shipped or current upstream Gateway contract.
Restoring the nested DTO would preserve an unshipped draft contract and reintroduce Gateway-owned presentation data that this coordinated protocol change intentionally removed. |
What Problem This Solves
Windows session presentation depended on a draft nested Gateway object. That duplicated title policy in the Gateway and prevented Windows from consuming the canonical session facts now exposed by the Gateway protocol.
Why This Change Was Made
The Windows client now consumes the flattened
classification,agentId,accountId,peerKind,isMain, andisBackgroundfields directly. Windows retains ownership of localized titles and presentation, including direct-peer display-name suppression.User Impact
With an updated Gateway, Windows categorizes and filters sessions using canonical, non-sensitive facts while preserving its own display and localization policy. Gateways without the flattened fields continue through the existing bounded key fallback.
Evidence
9374c838b66699b681d8a531843d2059955fd0cbpassed the Windows build and both native test projects.Change Type
Scope
winnodeValidation
Final head
9374c838:./build.ps1: passed, 0 warnings, 0 errors.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 3,382 passed, 32 skipped, 0 failed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 2,022 passed, 0 skipped, 0 failed.main(d2de6150): build passed; Shared 3,382 passed and 32 skipped; Tray 2,053 passed.Resolve_DoesNotUseRawKeyEchoAsDisplayNameverifies thatagent:main:dashboard:newresolves toNew sessionwith generated-title provenance.Real Behavior Proof
9374c838b66699b681d8a531843d2059955fd0cb.OPENCLAW_REPO=/Users/dallin/dev/worktrees/openclaw/session-ux ./scripts/parallels-windows-vm.sh run-tests --ref feat/flatten-session-classification.peerKindisdirect; absent flat fields retain the bounded legacy-key fallback.Security Impact
Compatibility and Migration
Review Conversations