anomalyco / anomalyco/opencode

feat(tui): add per-session tab indicator slot

Open
#42,416 0 comments 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Aug 13, 2026.

tui
Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Problem

V2 TUI plugins can contribute to shared surfaces such as the sidebar and prompt footer, but cannot attach compact metadata to individual session tabs. Integrations such as PR tracking need to show one status glyph for each tab's session without owning tab layout.

Proposed Direction

Publish a repeated typed slot such as session.tab.indicator with:

{
  sessionID: string
  orientation: "horizontal" | "vertical"
}

The host should mount it once per real session tab in both layouts and constrain it to one cell so plugin content cannot alter tab geometry, drag behavior, overflow, or scrolling.

Acceptance Criteria

  • Available in vertical and horizontal V2 session tabs.
  • Receives the associated session ID and orientation.
  • Not mounted for the new-session affordance.
  • Host-clipped to a stable one-cell footprint.
  • Covered by slot typing and tab rendering tests.

Scope

This is a generic TUI plugin seam. It should not contain PR- or GitHub-specific behavior.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.