Repository navigation
fix(ui): hide author avatars in subagent transcripts - #139371
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 5, 2026, 5:05 PM ET / 21:05 UTC. ClawSweeper reviewWhat this changesHide author avatars in subagent chat and task-detail transcripts while preserving sender names and refreshing cached rows when spawn metadata arrives. Merge readiness⛔ Blocked before merge - 2 items remain This PR remains useful: current main still displays author avatars in subagent transcripts. No blocking correctness findings were identified, and the maintainer-authored submission is protected from automated closure. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI turns session metadata and message history into chat transcripts. Main chat and task details share the rendering path that decides where author avatars appear. flowchart TD
A[Session metadata and messages] --> B[Main chat]
A --> C[Task details]
B --> D[Shared transcript projection]
C --> D
D --> E{Subagent transcript?}
E -->|Yes| F[Names without author avatars]
E -->|No| G[Existing avatar placement]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +78, Docs +1, Other +6. Total +86 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep avatar suppression in the shared transcript projection, with task-runtime metadata covering missing session rows and existing identity presentation preserved elsewhere. Do we have a high-confidence way to reproduce the issue? Yes, from source: opening an attributed subagent transcript on current main renders either a gutter avatar or a compact footer avatar because neither placement suppresses both. No runtime reproduction was executed here. Is this the best way to solve the issue? Yes. An explicit placement state fixes both avatar locations through their shared owner; hiding only the gutter or adding view-specific CSS would leave competing presentation rules. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f8b43dc795f2. 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
History |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper approve |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
* fix(ui): hide author avatars in subagent transcripts * docs(ui): restore avatar placement rationale
Problem
Opening a subagent in task details or the main chat view could show the human operator's avatar beside the parent agent's spawn prompt. The renderer only supported gutter avatars or compact footer avatars, so hiding the gutter could not hide both.
Solution
Replace the placement boolean with one
avatarPlacementoption (gutter,footer, ornone). The shared transcript projection selectsnonefor subagent classification, spawn ownership, or a subagent session key. Task details explicitly carrynonewhen the task runtime is a subagent, including when its session row is absent. Avatar placement participates in row-cache invalidation when metadata arrives.Keep sender-name rendering and persistent user-name visibility. Simplify redundant role branches and identity temporaries in the same renderer. Add a synthetic author to the existing task mock so both views reproduce the problem.
Impact
Subagent transcripts show no author avatars for any role in either view. Sender names remain visible. Navigation-parent metadata alone does not suppress avatars on user-created forks. Composer behavior, Gateway storage, and public API contracts are unchanged.
Evidence
Current-head CI run 33991207398 passed on
781b2c8e5eb52f8156693196594488674b407546; the exact-head repository watcher returnedGREEN.node scripts/run-vitest.mjs ui/src/pages/chat/components/chat-message ui/src/pages/chat/components/chat-task-detail ui/src/pages/chat/chat-thread: 6 files, 513 tests passed.Additional focused validation: 11 transcript render-cache tests passed; the three metadata-arrival and missing-row regressions are included in the 513-test run above.
Regression proof on the original renderer: 7 failures, all caused by author avatars remaining in subagent transcripts.
node scripts/check-changed.mjs: passed (exit 0), including all typecheck, guard, dead-export, formatting, and scoped lint lanes.git diff --check: passed. The 513 focused tests, complete changed-file gate, and default Codex autoreview were rerun successfully for the comment follow-up.Previous-head hosted CI on
4c2128fff7136dfeab008bfb8faceaa49db14dd0: completed with UI E2E shard 1/7 failing, leavingopenclaw/ci-gatered. The shard passed 251 tests and failed two:board-a2ui.e2e.test.ts:221timed out waiting forboard.eventafter a dashboard widget click;browser-route-handoff.e2e.test.ts:184timed out waiting for ordinary main-session live tool output. Neither test exercises a subagent transcript, and this patch preserves ordinary-session rendering. Those failures were recorded without expanding this patch’s scope; no CI jobs were rerun. The follow-up head passed CI as recorded above.Playwright, 1100×720, scale 2, light theme: 1 → 0 author avatars in each view; after captures assert sender-footer opacity 1 without hovering.
Task production LOC: +50 −43, including the mock fixture and restored explanatory comments. The follow-up adds seven comment lines without changing runtime code or cutting other comments. The message-group renderer simplification remains +14 −24.
Independent source review: sender-footer persistence finding fixed; no remaining actionable findings. Default Codex autoreview returned
scoped-cleanwith no accepted/actionable findings at its P0 threshold.Release-note: Hide author avatars in subagent task details and main chat views while preserving sender names.