Skip to content

fix(ui): hide author avatars in subagent transcripts - #139371

Merged
steipete merged 2 commits into
mainfrom
codex/team-companion-no-avatars
Sep 5, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/team-companion-no-avatars

Conversation

@steipete

@steipete steipete commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

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 avatarPlacement option (gutter, footer, or none). The shared transcript projection selects none for subagent classification, spawn ownership, or a subagent session key. Task details explicitly carry none when 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 returned GREEN.

  • 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, leaving openclaw/ci-gate red. The shard passed 251 tests and failed two: board-a2ui.e2e.test.ts:221 timed out waiting for board.event after a dashboard widget click; browser-route-handoff.e2e.test.ts:184 timed 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-clean with no accepted/actionable findings at its P0 threshold.

View Before After
Subagent task details Before: author avatar in task details After: task details keep names without avatars
Main subagent session Before: author avatar in main subagent view After: main subagent view keeps names without avatars

Release-note: Hide author avatars in subagent task details and main chat views while preserving sender names.

@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 5, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 5, 2026, 5:05 PM ET / 21:05 UTC.

ClawSweeper review

What this changes

Hide 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
Reviewed head: 781b2c8e5eb52f8156693196594488674b407546

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused shared-renderer repair with meaningful regression coverage and no identified blocking defect; artifact access limits reviewer inspection, not patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Its existing Playwright captures target both changed transcript views and report avatar removal with visible names; reviewer-side retrieval failure leaves the separate repository visual-inspection requirement outstanding.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Its existing Playwright captures target both changed transcript views and report avatar removal with visible names; reviewer-side retrieval failure leaves the separate repository visual-inspection requirement outstanding.
Evidence reviewed 8 items Introduced scope verified: The merge-base-to-head file list matches the ten introduced paths supplied by the host. Endpoint drift was not treated as PR-owned changes, and the stale test merge was not used to infer removals.
Shared presentation owner: The projection selects no avatars from explicit placement, subagent classification, spawn ownership, or a subagent key, then includes the resolved placement in render-cache dependencies. Task details pass the explicit setting through the read-only transcript adapter.
Avatar suppression preserves names: Gutter and footer avatars have separate placement checks; the none case retains sender-name rendering and the existing persistent user-identity class. All old boolean callers in ui/src have been migrated.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - Repository-required visual inspection remains incomplete because the existing before/after attachments could not be retrieved in this environment; their appearance and sanitization were not independently verified.
  • Complete next step (P2) - Have a reviewer inspect the four existing before/after captures for avatar removal, retained sender names, and sanitization before merge.
Agent review details

Security

None.

PR surface

Source +1, Tests +78, Docs +1, Other +6. Total +86 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 5 43 42 +1
Tests 3 115 37 +78
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 7 1 +6
Total 10 166 80 +86

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +1 net line; tests +78; mock fixture +6 The small production increase adds explicit avatar suppression while regression coverage protects late metadata and missing-row behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep avatar suppression in the shared transcript projection, with task-runtime metadata covering missing session rows and existing identity presentation preserved elsewhere.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is bounded transcript presentation polish without a demonstrated message-delivery or runtime failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Its existing Playwright captures target both changed transcript views and report avatar removal with visible names; reviewer-side retrieval failure leaves the separate repository visual-inspection requirement outstanding.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The maintainer-authored PR is exempt from the external-contributor proof gate. Its existing Playwright captures target both changed transcript views and report avatar removal with visible names; reviewer-side retrieval failure leaves the separate repository visual-inspection requirement outstanding.

Evidence

What I checked:

  • Introduced scope verified: The merge-base-to-head file list matches the ten introduced paths supplied by the host. Endpoint drift was not treated as PR-owned changes, and the stale test merge was not used to infer removals. (781b2c8e5eb5)
  • Shared presentation owner: The projection selects no avatars from explicit placement, subagent classification, spawn ownership, or a subagent key, then includes the resolved placement in render-cache dependencies. Task details pass the explicit setting through the read-only transcript adapter. (ui/src/pages/chat/components/chat-transcript-projection.ts:258, 781b2c8e5eb5)
  • Avatar suppression preserves names: Gutter and footer avatars have separate placement checks; the none case retains sender-name rendering and the existing persistent user-identity class. All old boolean callers in ui/src have been migrated. (ui/src/pages/chat/components/chat-message-group.ts:523, 781b2c8e5eb5)
  • Current main still needs the change: Fetched main retains the direct-thread boolean and lacks subagent-specific avatar suppression; its message renderer substitutes a compact author avatar when the gutter is hidden. (ui/src/pages/chat/components/chat-transcript-projection.ts:258, f8b43dc795f2)
  • Latest-release behavior checked: The supplied latest release, v2026.9.2, also uses showAvatarGutter and renders the compact author avatar when that boolean is false. (ui/src/pages/chat/components/chat-message-group.ts:541, 3928bad9badf)
  • Regression coverage and reported validation: Inspected tests cover classification and spawnedBy arriving after initial rendering, a subagent key before its row loads, and task-detail rendering without matching child metadata. Navigation ancestry alone retains avatars. The captured PR body reports 513 focused tests, 11 render-cache tests, seven original-renderer failures, and passing current-head CI; these checks were not executed during this read-only review. (ui/src/pages/chat/components/chat-message.subagent.test.ts:16, 781b2c8e5eb5)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete reviewer inspection of the existing before/after captures for both transcript views.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-05T20:45:10.056Z sha 4c2128f :: blocked before merge. :: none
  • reviewed 2026-09-05T20:56:06.582Z sha 781b2c8 :: blocked before merge. :: none

@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper approve

@clawsweeper

clawsweeper Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@steipete
steipete merged commit 7f39035 into main Sep 5, 2026
146 of 147 checks passed
@steipete
steipete deleted the codex/team-companion-no-avatars branch September 5, 2026 22:43
@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant