Skip to content

Studio: a permission shows its command whole, and the rename and Delete dialogs bound long names #1049

Done

Description

@danielrispler

Parent

#1036

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 code treatment). 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(), with aria-disabled, never disabled, as for every unavailable button;
    • a note under the field says "Names are at most 200 characters."
  • 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.md says a permission's command is shown whole.
  • npm run check passes, and the new fixtures pass npm run snap locally.

Reading

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

Activity

  1. added
    ready-for-agent
    on Dec 1, 2026
  2. self-assigned this
    on Dec 1, 2026
  3. danielrispler commented on Dec 1, 2026

    @danielrispler
    OwnerAuthor

    Implemented on the integration branch, PR #1051.

    Route outcome: medium·medium claude/sonnet → pass | 11m

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

Metadata

Metadata

Assignees

Labels

ready-for-agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions