Repository navigation
Done
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
Root cause 4 of #1036, on the page: text from agents and from Daniel has a bound fitted to what it is for.
- A permission's command. In the dock's permission card, the command is drawn whole: a block that keeps its line breaks and wraps anywhere (the existing
.step codetreatment). It is capped at about twelve lines, past which it scrolls on its own, with Allow and Deny always under it. The description follows on its own line. The decision history's entries draw the same command the same way, without the height cap. - The rename dialog. It counts characters the same way as the server (Unicode scalar values, Studio: the server caps a session name at 200 characters #1048), and has no
maxlength, which would count UTF-16 units. Past 200 characters:- Save is made unavailable through the page's
availability(), witharia-disabled, neverdisabled, as for every unavailable button; - a note under the field says "Names are at most 200 characters."
- Save is made unavailable through the page's
- Long names. The rename and Delete dialogs wrap long words and keep a maximum height with their own scroll, so a name stored before the cap stays inside the window.
Acceptance criteria
- A new snap fixture covers the dock:
- a two-line command and a 300-character one: the command's box lies inside the card's width, the two-line command's box is two or more lines tall, and Allow lies below the box;
- a decision history entry with the two-line command keeps its line break.
- A new snap fixture covers the rename dialog: with 201 emoji, Save has
aria-disabled="true"and the note shows; with 200, Save is available and there is no note. - A new snap fixture covers an older 4,800-character name: both the rename dialog and the Delete dialog stay inside the window, with their buttons visible.
- Screenshots of the dock and the dialogs are saved under
local-evidence/2026-12-01-qa-root-causes/screenshots/and listed in the PR. -
docs/studio/behaviour/cards.mdsays a permission's command is shown whole. -
npm run checkpasses, and the new fixtures passnpm run snaplocally.
Reading
- Studio: four root causes behind nine QA bugs (press, hints, focus, failures, Esc, top bar, untrusted text) #1036, "Implementation Decisions", root cause 4. Critic findings 2 (
maxlengthcounts UTF-16 units) and 7 (the decision history draws the command too) are answered inlocal-evidence/2026-12-01-qa-root-causes/reports/critic.md. local-evidence/2026-12-01-qa-root-causes/reports/qa-report.md, H1 and L4: the command's measured width and the Delete dialog's wall of text.- Cards: the dock and the answer hook's permission wait.
- Sessions: the rule for unavailable buttons (
aria-disabled).
Touches
- Files:
ui/questions.ts,ui/decisions.ts,ui/story.ts,ui/index.html,ui/style.css,scripts/snap/fixtures-page.ts,scripts/snap/fixtures.ts,docs/studio/behaviour/cards.md - Session: auto mode
- Route: medium · effort medium — settled presentational CSS and dialog copy over existing mechanisms, with the snap checks stated
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Studio: a permission shows its command whole, and the rename and Dele…
danielrispler commentedon Dec 1, 2026
Implemented on the integration branch, PR #1051.
Route outcome: medium·medium claude/sonnet → pass | 11m
Studio: four root causes behind nine QA bugs (#1036) (#1051)