Skip to content

Stream Deck: Zoom Navigator cycles dormant workspaces; filter the dial to active ones #1403

Closed

Description

@amrmelsayed

Problem

Rotating the Zoom Navigator at the workspace altitude walks every workspace ever registered, dormant ones included. Confirmed by the owner on hardware and traced in code.

Mechanism: the plugin store fetches its list via the sdk's listWorkspaces() (apps/streamdeck/src/store.ts:79), which hits Tower's GET /api/workspaces. That handler maps over getInstances() (packages/codev/src/agent-farm/servers/tower-routes.ts:509), i.e. every registration in the user-global ~/.agent-farm/global.db, and includes an active: i.running flag per entry. The plugin stores the array unfiltered and the zoom cursor counts workspaces.length, so the TowerWorkspace.active field is delivered on every response and never consulted.

Dormant entries are dead stops on the dial: zooming into one yields no meaningful overview, and any action from there fails because commands require the workspace active in Tower. There is no activate-on-zoom behavior that would justify showing them.

Requirement

Filter the store's workspace list to active === true (strict filter; owner-ratified 2026-08-11). The alternative of showing dormant entries demoted after active ones was considered and rejected: they have no actionable content, and the dashboard is the right surface for browsing registrations.

Care points for the implementation:

  • Cursor indices: the zoom cursor and selectedWorkspacePath() index into the stored array, so filtering must happen at (or before) storage, not per-render, to keep indices coherent.
  • A workspace deactivating while selected: after a refresh removes it, the cursor must land on a valid index (reset to 0 is fine), not point past the end.
  • Focus-follow (workspaceByPath lookup when the user focuses a VS Code window): a path that is registered but dormant should now behave like an unknown path (no-op), which is the existing fallback.
  • Regression test: list with a mix of active and dormant entries renders and cycles only the active ones.

Suggested protocol

AIR: small, fully described, no architectural decisions.

Activity

  1. added
    area/streamdeck
    on Aug 11, 2026
  2. added 2 commits that reference this issue on Aug 11, 2026
  3. added 2 commits that reference this issue on Aug 11, 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