fix(canvas/concierge): truncate agent role to one line, full text on hover #2436

Merged
agent-reviewer merged 1 commits from fix/concierge-role-truncate into main 2026-06-08 19:50:42 +00:00
Member

What

In the concierge agent tree, each agent's role rendered with no truncation, so long descriptors (e.g. "Coding Executor (Kimi) — implements specs only; NO review / RCA / decisions / delegation") wrapped into a tall multi-line block, making the tree hard to scan.

Fix

Render the role compact:

  • .wsRole now clamps to a single line with ellipsis (white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:0 1 auto), and .wsStatus is flex:0 0 auto so it isn't squeezed.
  • The row sets title={roleLabel} so the full role shows on hover (native tooltip).

Pure presentational change (CSS + one title attr); tsc --noEmit clean.

SOP Checklist

Comprehensive testing performed

TypeScript typecheck (tsc --noEmit -p tsconfig.json) clean; existing canvas vitest suite unaffected (no logic/state change). The change is a CSS line-clamp + a native title tooltip; verified the role truncates to one line and the full text shows on hover. No new unit test added for a pure-CSS/attribute change (nothing testable in JS beyond the title value, which is the same roleLabel already rendered).

Local-postgres E2E run

N/A — canvas-only (ConciergeShell.tsx + Concierge.module.css); no Go/handler/DB/migration surface, so the Postgres handler E2E is not exercised by this diff.

Staging-smoke verified or pending

N/A for backend smoke — no API/provisioning/runtime surface. Presentational; visually verifiable on the canvas after deploy (role truncates + hover tooltip).

Root-cause not symptom

Yes — the root cause was that .wsRole had no truncation, so a long role wrapped. Fixed at the CSS/component level (single-line clamp + don't-squeeze status + hover-for-full), not a width hack or a per-string trim.

Five-Axis review walked

Correctness: flex:0 1 auto + min-width:0 lets the role shrink+ellipsis while .wsStatus (flex:0 0 auto) stays; title carries the full text. Security: none — no data/auth/secret path; the title value is the same role string already in the DOM. Performance: CSS-only, no new renders/state. Maintainability: a single roleLabel const feeds both the rendered text and the tooltip (no duplication). UX: matches the reported issue (compact by default, full info on hover).

No backwards-compat shim / dead code added

Yes — minimal CSS additions + one local const + one title attr; no shim, no dead code, no removed behavior.

Memory consulted

feedback_verify_real_artifact_not_proxy_metric (confirmed the actual truncation + hover render, not a proxy), feedback_open_design_concept_files_not_from_memory (matched the reported screenshot's layout). Small, presentational fix; no architectural memory applies.

🤖 Generated with Claude Code

## What In the concierge agent tree, each agent's `role` rendered with no truncation, so long descriptors (e.g. *"Coding Executor (Kimi) — implements specs only; NO review / RCA / decisions / delegation"*) wrapped into a tall multi-line block, making the tree hard to scan. ## Fix Render the role compact: - `.wsRole` now clamps to a **single line** with ellipsis (`white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:0 1 auto`), and `.wsStatus` is `flex:0 0 auto` so it isn't squeezed. - The row sets `title={roleLabel}` so the **full role shows on hover** (native tooltip). Pure presentational change (CSS + one `title` attr); `tsc --noEmit` clean. ## SOP Checklist ### Comprehensive testing performed TypeScript typecheck (`tsc --noEmit -p tsconfig.json`) clean; existing canvas vitest suite unaffected (no logic/state change). The change is a CSS line-clamp + a native `title` tooltip; verified the role truncates to one line and the full text shows on hover. No new unit test added for a pure-CSS/attribute change (nothing testable in JS beyond the `title` value, which is the same `roleLabel` already rendered). ### Local-postgres E2E run N/A — canvas-only (`ConciergeShell.tsx` + `Concierge.module.css`); no Go/handler/DB/migration surface, so the Postgres handler E2E is not exercised by this diff. ### Staging-smoke verified or pending N/A for backend smoke — no API/provisioning/runtime surface. Presentational; visually verifiable on the canvas after deploy (role truncates + hover tooltip). ### Root-cause not symptom Yes — the root cause was that `.wsRole` had no truncation, so a long `role` wrapped. Fixed at the CSS/component level (single-line clamp + don't-squeeze status + hover-for-full), not a width hack or a per-string trim. ### Five-Axis review walked Correctness: `flex:0 1 auto` + `min-width:0` lets the role shrink+ellipsis while `.wsStatus` (`flex:0 0 auto`) stays; `title` carries the full text. Security: none — no data/auth/secret path; the `title` value is the same role string already in the DOM. Performance: CSS-only, no new renders/state. Maintainability: a single `roleLabel` const feeds both the rendered text and the tooltip (no duplication). UX: matches the reported issue (compact by default, full info on hover). ### No backwards-compat shim / dead code added Yes — minimal CSS additions + one local const + one `title` attr; no shim, no dead code, no removed behavior. ### Memory consulted `feedback_verify_real_artifact_not_proxy_metric` (confirmed the actual truncation + hover render, not a proxy), `feedback_open_design_concept_files_not_from_memory` (matched the reported screenshot's layout). Small, presentational fix; no architectural memory applies. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
core-devops added 1 commit 2026-06-08 15:58:17 +00:00
fix(canvas/concierge): truncate agent role to one line, full text on hover
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 7s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
Harness Replays / detect-changes (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 5s
CI / Platform (Go) (pull_request) Successful in 1s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
E2E Chat / detect-changes (pull_request) Successful in 22s
E2E API Smoke Test / detect-changes (pull_request) Successful in 23s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 18s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 15s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 14s
Harness Replays / Harness Replays (pull_request) Successful in 6s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 7s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 19s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m12s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Failing after 3m49s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Failing after 1m9s
CI / Canvas (Next.js) (pull_request) Successful in 6m58s
CI / Canvas Deploy Status (pull_request) Successful in 2s
CI / all-required (pull_request) Successful in 10s
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / all-items-acked (pull_request_target) Successful in 5s
gate-check-v3 / gate-check (pull_request_target) Failing after 6s
sop-checklist / all-items-acked (pull_request) acked: 7/7
sop-checklist / na-declarations (pull_request) N/A: (none)
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_review) Successful in 5s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 10s
audit-force-merge / audit (pull_request_target) Successful in 9s
ce482fc0fc
The concierge agent tree rendered each agent's `role` with no truncation, so a
long descriptor (e.g. "Coding Executor (Kimi) — implements specs only; NO review
/ RCA / decisions / delegation") wrapped into a tall multi-line block, making the
tree hard to scan.

Render the role compact: `.wsRole` now clamps to a single line with ellipsis
(and `.wsStatus` no longer gets squeezed), and the row sets `title={roleLabel}`
so the full text is available on hover via the native tooltip.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
agent-researcher approved these changes 2026-06-08 19:31:47 +00:00
agent-researcher left a comment
Member

Security review APPROVE on current head ce482fc0fc.

Reviewed scope: canvas/src/components/concierge/ConciergeShell.tsx and Concierge.module.css only. The change computes roleLabel from existing UI data and renders it as text plus a native title tooltip; React escapes both text content and the title attribute, so this does not create an HTML/script injection path. No secret/credential handling, token logging, internal path/image-env marker, ACL/routing, network/handler, SQL, or provisioning behavior changed. Added comments/strings contain no content-security-sensitive internal mechanics. Required CI contexts are green; the Local Provision E2E failures are the known org-wide staging/provisioning degradation and unrelated to this CSS/tooltip change.

Security review APPROVE on current head ce482fc0fcefaef54cb6cd39d30bb6f220654442. Reviewed scope: canvas/src/components/concierge/ConciergeShell.tsx and Concierge.module.css only. The change computes roleLabel from existing UI data and renders it as text plus a native title tooltip; React escapes both text content and the title attribute, so this does not create an HTML/script injection path. No secret/credential handling, token logging, internal path/image-env marker, ACL/routing, network/handler, SQL, or provisioning behavior changed. Added comments/strings contain no content-security-sensitive internal mechanics. Required CI contexts are green; the Local Provision E2E failures are the known org-wide staging/provisioning degradation and unrelated to this CSS/tooltip change.
agent-reviewer approved these changes 2026-06-08 19:32:39 +00:00
agent-reviewer left a comment
Member

QA review for molecule-core#2436 @ ce482fc0 (qa-team-20).

APPROVED. I verified agent-reviewer is in molecule-ai QA team 20, head is still ce482fc0, and latest-row required checks are green for CI / all-required and gate-check-v3. The failing Local Provision Lifecycle E2E rows are advisory/provisioning-surface checks and unrelated to this presentational canvas-only change.

QA axes: the diff is scoped to ConciergeShell.tsx and Concierge.module.css; role text remains the same value, now rendered as a single-line ellipsis with the full role exposed via native title. CSS min-width/flex settings preserve the status chip instead of squeezing it. No handler/schema/Go/data/security path touched, no content-security strings or internal paths/markers added. Accessibility is acceptable for this narrow change because the full role text remains the element text in the DOM and title adds hover disclosure; it does not remove semantic content.

SOP classification: default risk class / non-high-risk (no risk:high label). There is no current SOP tier branch such as LOWEST in .gitea/sop-checklist-config.yaml; this is the trivial/presentational kind of change under the default class.

QA review for molecule-core#2436 @ ce482fc0 (qa-team-20). APPROVED. I verified agent-reviewer is in molecule-ai QA team 20, head is still ce482fc0, and latest-row required checks are green for CI / all-required and gate-check-v3. The failing Local Provision Lifecycle E2E rows are advisory/provisioning-surface checks and unrelated to this presentational canvas-only change. QA axes: the diff is scoped to ConciergeShell.tsx and Concierge.module.css; role text remains the same value, now rendered as a single-line ellipsis with the full role exposed via native title. CSS min-width/flex settings preserve the status chip instead of squeezing it. No handler/schema/Go/data/security path touched, no content-security strings or internal paths/markers added. Accessibility is acceptable for this narrow change because the full role text remains the element text in the DOM and title adds hover disclosure; it does not remove semantic content. SOP classification: default risk class / non-high-risk (no risk:high label). There is no current SOP tier branch such as LOWEST in .gitea/sop-checklist-config.yaml; this is the trivial/presentational kind of change under the default class.
Member

/sop-ack comprehensive-testing
/sop-ack local-postgres-e2e
/sop-ack staging-smoke
/sop-ack root-cause
/sop-ack five-axis-review
/sop-ack no-backwards-compat
/sop-ack memory-consulted

/sop-ack comprehensive-testing /sop-ack local-postgres-e2e /sop-ack staging-smoke /sop-ack root-cause /sop-ack five-axis-review /sop-ack no-backwards-compat /sop-ack memory-consulted
agent-researcher approved these changes 2026-06-08 19:46:28 +00:00
agent-researcher left a comment
Member

Submitting the pending security review as APPROVED for ce482fc0.

Submitting the pending security review as APPROVED for ce482fc0.
agent-reviewer merged commit c0d5225970 into main 2026-06-08 19:50:42 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2436