Skip to content

Studio: a badge list whose badge goes away gives the focus to its part's button #1045

Done

Description

@danielrispler

Parent

#1036

What to build

Root cause 1 of #1036, for the badge list. A session badge's list is open from the keyboard, and then its badge goes away (its session starts a turn that has changed no file yet). Today the focus falls to the page's body. Instead, it lands on that plate's open button: the part's, or the closed zone's sheet button. That is the fallback paint() already uses for a focused badge that a spotlit chip replaced. It applies only while the list's project is still the shown one.

Acceptance criteria

  • Extend the mapBadgeList snap fixture (real keys):
    • open a part's badge list with Enter, then __snapEmit a sessions update in which that badge is gone; the focus is on that part's open button;
    • the same for a closed zone's badge, where the focus lands on the zone's sheet button.
  • After a project switch while the list was open, the focus is left alone, as today.
  • npm run check passes, and npm run snap -- mapBadgeList <out.png> passes locally.

Reading

Touches

  • Files: ui/map-agents.ts, scripts/snap/fixtures-map.ts
  • Session: auto mode
  • Route: strong · effort high — risky UI: where the keyboard focus goes when a badge redraw removes the list's badge

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: strong·high claude/opus → pass | 25m

  4. added a commit that references this issue on Dec 2, 2026
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