Repository navigation
fix(ui): carry selected session ownership through chat presentation - #133149
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 4:34 AM ET / 08:34 UTC. ClawSweeper reviewWhat this changesThe PR passes the owner-validated selected session through Control UI model controls, transcripts, and task-child presentation so selected global chats retain their own metadata. Merge readinessKeep open for maintainer review: this remains a distinct presentation repair alongside the related issue and current-main collaboration fix, with no concrete introduced regression found. Priority: P1 Review scores
Verification
How this fits togetherThe Control UI turns a selected chat route and gateway session roster into model controls, transcript metadata, and task details. The selected session row carries the ownership facts these views need to present the correct agent state. flowchart LR
A[Selected chat route] --> B[Session ownership resolver]
B --> C[Selected session row]
C --> D[Model and Fast controls]
C --> E[Chat transcript]
C --> F[Task child transcript]
D --> G[Presented agent state]
E --> G
F --> G
Decision needed
Why: The PR is member-authored and carries the protected maintainer label; the remaining decision is whether the scoped presentation split is acceptable for the selected-session ownership invariant. Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +210. Total +211 across 17 files. View PR surface stats
Review metrics
Mantis proof suggestionA web UI chat check could directly verify that a selected global session retains its own model, Fast mode, and archive presentation. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one canonical owner-validated selected-session flow for presentation, and land this focused companion repair after exact-head validation. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the focused model and task-detail tests construct the raw-global ownership cases, though this read-only review did not execute them. Is this the best way to solve the issue? Yes: passing the already owner-validated selected row is preferable to repeating raw session-key matching in each presentation consumer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8423dcd6a17d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…penclaw#133149) * fix(ui): carry selected session ownership through chat presentation * fix(ui): gate task global metadata by scope
Related: #133132
What Problem This Solves
Fixes an issue where a selected global agent's model, Fast mode, transcript metadata, and task-child metadata could resolve from defaults or disappear because presentation paths re-searched raw session keys.
Why This Change Was Made
The chat pane now carries the canonical owner-validated selected session through model controls, thread rendering, and transcript projection. Task transcripts resolve their own child session against the child agent. Raw
globalrows additionally require configured global scope and an agent-matched roster. Catalog, read-only parent, per-sender, and new-session paths remain isolated.User Impact
Selected global chats keep their pinned model and Fast state, archive attribution, reasoning/context metadata, and child-task metadata instead of silently falling back to another agent or defaults.
Evidence
pnpm tsgo:ui, full changed-file gate, format, oxlint, stylelint, and diff checks pass.Visual Proof
An isolated mock-Gateway browser run selected Work with a Work-owned raw
globalrow and verified:openai/gpt-default.Session GPT/openai/gpt-session.agent:work:task-child.Command:
node --import tsx .artifacts/control-ui-e2e/selected-session-presentation/capture.mtsCapture: four 1440x900 screenshots plus 2.68s model/Fast and 2.44s task-child videos. The artifacts contain only synthetic data. Browser attachment is unavailable in this session, so the sanitized captures are retained locally and identified by SHA-256:
a071d53320f09e3ec96e316aa48fa2ba63790e62a66fd7f39d3eaa7179d9317c2a34eb1577c8d6fd79565cd2c353b5567b48e35cfc71589b6ecf98bc6eb944e9d05bfd6c75c7931c35a8eaac94bd58abfbd64c9ff257f24cbf1a3a86dc4c99ed21d8db7ebaf05c255412855cc00a7c89b98519482877f8f2a6a1d8a4ae5559ba35997ed4dbcd650590f533c8f28eb3a7559ae95bcdff90b0301b1d882002adf19209f4a85db15bd0f2bacde0b71bada381526d91c697f4c5fb0b50cfcb67086c