Skip to content

Stream Deck: Architect Action key — scope the fleet to one architect's builders #1495

Closed

Description

@amrmelsayed

Problem

The deck can act on a single architect (Open Architect Terminal, #1463) but cannot navigate between them, and the fleet view mixes every architect's builders together. In a workspace with several architects the Row 1 window is a flat list of everyone's work, with no way to say "show me this architect's builders".

Shape: a scope, not a mode

An Architect Action key — the architect analogue of Builder Action. Press it and the deck's builder list is scoped to that architect; press the active one again to clear the scope. Row 1 then windows over the scoped list exactly as it does today.

This is deliberately not a view mode. Nothing re-flows, Row 2 keeps acting on the selected builder, the dials keep reviewing it, and the "one shared selection" invariant is untouched — the scope narrows which builders are listed, and the selection is still always a builder. The architect list itself is displayed by placing several of these keys (in a folder, on a spare page, or on a larger profile), which is what makes "a list of architects" a placement rather than a plugin mode.

Design

Self-ordering and self-sizing, reusing #1465. Placed Architect Action keys derive their order from KeyAction.coordinates (row, then column) exactly as Builder Action now does — key N shows the Nth architect. No manual slot field, no PI-pinned name to maintain when architects come and go. Reuse the mechanism rather than reimplementing it.

Derive the architect list from the builders, NOT from OverviewData.architects. The distinct non-null spawnedByArchitect values across the current overview's builders are the architects worth navigating to. #1463 deliberately stopped the deck consuming the live-architect view — it reports "architects Tower can currently see a session for" and carries three failure modes (empty during a restart window, transiently missing main, a live row behind a dead PTY). Deriving from builders needs no new wire data, no live-view dependency, and can only ever offer an architect that demonstrably owns visible work — which is exactly right for a fleet-scoping cursor. An idle architect with no builders does not appear, and should not; #1463's Main mode already reaches main regardless.

Face shows the architect name, with the active scope visually distinct (the accent treatment Row 1 uses for the selected builder). A key with no architect at its position renders visibly empty, never blank-but-live.

Press semantics: press an architect → scope to it; press the currently scoped architect → clear the scope (back to all builders). No separate "All" key needed, and no hidden state — the face says which scope is active.

Rulings

  1. Scope resets on workspace switch. A scope is about the fleet you are looking at; carrying it across workspaces would silently filter a different fleet by a name that may not exist there.
  2. An empty scope is visibly empty. If a scoped architect's builders vanish (all merged), Row 1 shows an empty state rather than falling back to all builders — a silent widening is worse than an obvious empty.
  3. No summoning. This key sets scope only; opening an architect's terminal remains Stream Deck: key to open the architect that spawned the selected builder #1463's key. Two keys, two verbs, no overloading.

Dependency

#1406 (spawn mis-attribution) puts builders under the wrong architect in this view whenever the CODEV_ARCHITECT_NAME prefix is missing. That bug now has a third route to being user-visible: wrong summon target (#1463), wrong attribution in afx status, and now a wrong fleet scope.

Later

Once bundled-profile authoring is solved (deferred in #1381/#1440), the same key drops into a bundled architect page and switchToProfile(deviceId, profile, page) makes the whole thing a one-press toggle from the board — no folder navigation, dials declared once, nothing about this key rebuilt.

Protocol

PIR — it is a new interaction on the physical board, and the scoping behaviour wants exercising on hardware with more than one architect owning builders.

Activity

  1. added
    area/streamdeck
    on Aug 18, 2026
  2. amrmelsayed commented on Aug 18, 2026

    @amrmelsayed
    CollaboratorAuthor

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

  3. added 14 commits that reference this issue on Aug 18, 2026
  4. added 3 commits that reference this issue on Aug 18, 2026
  5. amrmelsayed commented on Aug 18, 2026

    @amrmelsayed
    CollaboratorAuthor

    Shipping record: PR #1499 merged 2026-08-18T02:17:57Z (9129ab81c), 7/7 green against a stationary head.

    What shipped: an Architect Action key — self-ordering by placement (reusing #1465's positional mechanism), showing a live architect's name, opening that architect's terminal on press — plus switch artwork and a README procedure for wiring Stream Deck's own Switch Profile / Folder key to reach a second board. No plugin switch code: the native key does the flip.

    The design decision worth inheriting. The architect list enumerates OverviewData.architects (the live view), which reverses this issue's original derive-from-builders design. That derivation was justified by the scope model: when the board scoped the fleet, an architect owning no builders yielded an empty scope, so excluding it was correct. Once the owner's reframe made the board summon terminals, the justification went with it — a summon board that cannot open a live architect is broken for its purpose, and on the fleet at the time that was two of six.

    This is not an override of #1463's rule, and the distinction matters. #1463 records that the deck does not consume the live-architect view, because for a single-target key a stale list resolves the wrong architect while the face faithfully renders the wrong name — silently. An enumeration board cannot fail that way: the press relays a name, VS Code resolves it, and its "No 'X' architect found" warning fires. Stale enumeration fails loudly; stale resolution fails silently. The principle — the deck does not resolve liveness — holds in both. Do not "restore" the builders-derived list as a repair.

    Pinning main was proposed and declined. VS Code resolves an explicit 'main' as main-else-first, so a pinned key pressed while main is transiently invisible opens whichever architect sorts first — under the unqualified "Codev: Architect" label, the form that specifically denotes main. The visible gap of an absent key beats a silent substitution through the most-pressed key on the board. That trace is now #1497.

    Test-coverage gap found at the gate, worth recording as a shape rather than an incident: the four switch PNGs are the plugin's only shipped assets with no manifest reference, so the generic icon test — which walks manifest.Actions — structurally could not see them. Everything on our side of the "our code / the platform's feature" line had coverage, everything on Elgato's was correctly out of scope, and four files plus a documented procedure sat in the seam, belonging to us while looking like theirs. Now pinned explicitly, with a comment explaining why the generic form cannot cover them.

    #1462 reproduced live in this lane. Two porch bookkeeping commits (pr gate-approved, protocol complete) moved the head off the one the gate record was taken against and restarted all seven checks — the protocol wrote its own gate record onto the branch and invalidated the merge window that record had just opened. #1462 was filed off an inference; this is a clean reproduction.

    Release notes: entry added (deck-only lane, no apps/vscode/CHANGELOG.md entry).

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