Skip to content

Stream Deck: merge Fleet Slot into Builder Action (phase-aware press) #1404

Closed

Description

@amrmelsayed

Problem

Covering one builder today takes two keys: a Fleet Slot (live status tile, press = fixed verb, default open-terminal) and a Builder Action (second fixed verb, default view-diff). The owner's direction (2026-08-11): one key per builder should cover what a builder needs, so merge the two actions into a single Builder Action whose default press opens the artifact that matters for the builder's current state. Approval stays on the existing Approve Gate singleton key; the builder key never approves (decided 2026-08-11 after considering press-escalation and long-press variants: both rejected, escalation guesses hidden editor state and breaks re-opening, long/short press is confusing).

Ground truth

  • Fleet Slot and Builder Action already differ only in default verb and title rendering (apps/streamdeck/src/actions.ts); both share the slot+verb settings plumbing and PI dropdown.
  • The store has protocolPhase and blocked per builder; Fleet Slot renders both today.
  • All needed verbs exist in the VS Code relay allowlist (apps/vscode/src/command-relay.ts): open-spec, open-plan, open-review, view-diff, open-terminal. Deck-side change only.
  • The bundled SD+ profile (com.cluesmith.codev.sdPlugin/Codev.streamDeckProfile) references fleet-slot on 3 keys and builder-action on 1, so it must be revved in the same PR.

Requirements

  1. One action. Remove Fleet Slot from the manifest; Builder Action (com.cluesmith.codev.builder-action) absorbs its live-tile rendering: issue number (or builder id), phase or blocked-reason, state colouring. PI keeps Slot plus the On-press dropdown.
  2. New default On-press: Automatic. Explicit verb choices remain available in the dropdown and are never overridden by automatic behavior.
  3. Automatic behavior: press opens the current state's artifact, and pressing again always re-opens it (stateless, repeatable).
    • specify phase (or blocked at the spec gate) → open-spec
    • plan phase (or blocked at the plan gate) → open-plan
    • implement / review phases (or blocked at dev-approval / pr gates) → view-diff
    • no artifact yet / unknown state → open-terminal
    • Exact phase/blocked strings derive from the overview wire values, not hardcoded guesses; unknown values take the fallback.
  4. No approval semantics on this key. Gate approval remains the Approve Gate singleton's job (workspace-wide badge + jump to next pending gate). Out of scope here beyond leaving it untouched.
  5. Profile rev. Update the bundled SD+ profile: the 3 fleet-slot keys become builder-action keys with Automatic on-press (hand-edit of the profile zip's inner manifest is acceptable; verify by importing on hardware). This merge's profile change is independent of the Stream Deck: phase-aware review dials — canvas navigation reuses the diff dials (deck half; bridge is #1401) #1400 profile work.
  6. Manifest hygiene. Tooltips describe the shipped behavior truthfully.
  7. Tests over the verb resolution: phase mapping, blocked-state mapping, unknown-value fallback, explicit-verb keys unaffected.

Distribution note

No released user base: the Elgato submission is pending review and packs are on-demand, so removing the fleet-slot action UUID is acceptable now and this is the cheapest moment to do it. Ships as a normal plugin update.

Relation to #1400

Not sequenced on #1400/#1401. The revised profile riding #1400's PR should assume the merged smart key exists.

Suggested protocol

PIR: the profile import and the merged key's behavior across phases must be verified on hardware before the PR (same reasoning as #1381's hardware steps).

Activity

  1. added
    area/streamdeck
    on Aug 11, 2026
  2. changed the title [-]Stream Deck: phase-aware primary-artifact press for builder slot keys[/-] [+]Stream Deck: merge Fleet Slot into Builder Action (phase-aware press, gate escalation)[/+] on Aug 11, 2026
  3. amrmelsayed commented on Aug 11, 2026

    @amrmelsayed
    CollaboratorAuthor

    Body rewritten per owner direction (2026-08-11): scope grew from 'add an Automatic option' to merging Fleet Slot into Builder Action with gate escalation on repeat press, plus the bundled SD+ profile rev (it references fleet-slot on 3 keys). Protocol suggestion changed AIR → PIR accordingly (hardware verification of profile import and the two-press gate flow).

  4. changed the title [-]Stream Deck: merge Fleet Slot into Builder Action (phase-aware press, gate escalation)[/-] [+]Stream Deck: merge Fleet Slot into Builder Action (phase-aware press)[/+] on Aug 11, 2026
  5. amrmelsayed commented on Aug 11, 2026

    @amrmelsayed
    CollaboratorAuthor

    Implementation note discovered while reviewing PR #1405: the phase-aware verb resolution this issue wants for the key press already exists for the Zoom Navigator's touch-strip zoom-in — zoomInVerb (covered by 'zoomInVerb (phase-aware zoom-in)' tests in apps/streamdeck/src/__tests__/actions.test.ts, e.g. spec at spec-approval/specify). The merged Builder Action's Automatic mode should reuse/extract that resolver rather than writing a second phase→verb mapping.

  6. amrmelsayed commented on Aug 11, 2026

    @amrmelsayed
    CollaboratorAuthor

    On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).

  7. added 6 commits that reference this issue on Aug 11, 2026
  8. added a commit that references this issue on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/streamdeck

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions