frontend: gate launch UI on OpencodeLaunch capability (#376) #393

Closed
opened 2026-07-19 10:33:26 +02:00 by dries · 0 comments
Owner

Parent

#388 (spec), #376. Spec AD-8.

What to build

Split the frontend's launch gating from tmux-UI gating so a future tmux-less (container) host can still offer launch.

  • Launch affordances (worktree launch, /wt, new-session-into-project) gate on the new OpencodeLaunch capability via useCapabilities().
  • tmux-session UI (sessions list view) continues to gate on Tmux.
  • Stays platform-agnostic (no session.platform === '...' branching; passes scripts/check-platform-branching.sh).

Acceptance criteria

  • useCapabilities() exposes opencodeLaunch and it comes from /api/capabilities.
  • Launch UI shows/hides based on opencodeLaunch, not tmux.
  • tmux-session UI still gated on tmux.
  • No platform branching; lint + check-platform-branching pass. Frontend tests cover the gating.

Blocked by

  • #390 (reshape ensure seam + hardened body — adds the capability field)
## Parent #388 (spec), #376. Spec AD-8. ## What to build Split the frontend's launch gating from tmux-UI gating so a future tmux-less (container) host can still offer launch. - Launch affordances (worktree launch, /wt, new-session-into-project) gate on the new `OpencodeLaunch` capability via `useCapabilities()`. - tmux-session UI (sessions list view) continues to gate on `Tmux`. - Stays platform-agnostic (no `session.platform === '...'` branching; passes `scripts/check-platform-branching.sh`). ## Acceptance criteria - [ ] `useCapabilities()` exposes `opencodeLaunch` and it comes from `/api/capabilities`. - [ ] Launch UI shows/hides based on `opencodeLaunch`, not `tmux`. - [ ] tmux-session UI still gated on `tmux`. - [ ] No platform branching; lint + check-platform-branching pass. Frontend tests cover the gating. ## Blocked by - #390 (reshape ensure seam + hardened body — adds the capability field)
dries closed this issue 2026-07-19 18:10:59 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#393
No description provided.