Repository navigation
feat: expose session classification facts - #106832
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 2:41 AM ET / 06:41 UTC. ClawSweeper reviewWhat this changesAdds six optional, non-sensitive session classification facts to Gateway session-list rows and propagates them through Android, Swift, and Control UI types. Merge readinessNo blocking correctness finding: this is a coherent additive Gateway contract with real client propagation and maintainer-confirmed direction. Keep it open for normal protected maintainer review and merge. Priority: P2 Review scores
Verification
How this fits togetherGateway session listing projects stored session state into rows for web and native clients. The new facts classify routes and background work without exposing peer identifiers or transcript content. flowchart LR
A[Stored session key] --> B[Gateway row projection]
B --> C[Classification facts]
C --> D[Session list protocol]
D --> E[Web and native clients]
E --> F[Session display and filtering]
Decision needed
Why: The PR is protected and authored by a repository member; merge acceptance remains an owner decision despite no actionable patch defect. Before merge
Agent review detailsSecurityNone. PR surfaceSource +195, Tests +267, Other +153. Total +615 across 21 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the Gateway-owned additive projection while preserving optional-field behavior for older Gateways and unknown future classifications. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a session-list capability rather than repairing a reported failing behavior; the changed behavior is nevertheless covered by focused source tests and a rebuilt-Gateway client run. Is this the best way to solve the issue? Yes: deriving classification once in the Gateway row producer is the narrowest maintainable solution, avoiding duplicated parsing policy in every client. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bb612cbe4c1d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (19 earlier review cycles; latest 8 shown)
|
7de8fbd to
fc1297b
Compare
fc1297b to
63ff2e8
Compare
63ff2e8 to
eab6316
Compare
eab6316 to
b5919d8
Compare
b5919d8 to
0fed180
Compare
a1e7920 to
624da93
Compare
* feat: expose session presentation metadata * fix: restrict session titles to safe display metadata * fix: preserve saved session display names * fix(protocol): tolerate future session presentation values * fix(gateway): keep direct peer names out of presentation * fix(protocol): connect session presentation to native rows * fix(gateway): canonicalize session presentation metadata * fix(gateway): satisfy session presentation CI checks * feat(gateway): flatten session classification facts * fix: repair session classification generated models * fix(gateway): canonicalize session classification keys * fix(gateway): classify spawned delivery sessions * fix(android): retain session classification facts * test(android): make scripted gateway calls concurrency-safe * test(live-updater): isolate fixture git commands
Closes #106793
What This Does
Adds optional, non-sensitive facts to each
sessions.listrow:classificationagentIdaccountIdpeerKindisMainisBackgroundThe Gateway derives these facts from the canonical session route without exposing peer identifiers, transcript text, or filesystem paths.
Clients continue to own display. Existing
label,displayName, andderivedTitlefields are unchanged; this change adds no Gateway-owned title or subtitle.User Impact
Session clients can distinguish main, direct, group, thread, cron, heartbeat, subagent, ACP, hook, harness, dreaming, and other session categories without parsing routing keys. Direct peer identifiers are not included.
Evidence
f421ac29d4cb31981dd5fd3158e7f02b0342303c.Compatibility
The fields are additive and optional, so existing clients can ignore them. Clients that use the fields should retain their existing behavior when they are absent from an older Gateway.