Skip to content

feat(tui): expose session header slot#37520

Merged
kitlangton merged 1 commit into
v2from
session-header-slot
Jul 17, 2026
Merged

feat(tui): expose session header slot#37520
kitlangton merged 1 commit into
v2from
session-header-slot

Conversation

@kitlangton

@kitlangton kitlangton commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What

Adds a V2 TUI plugin slot at the top of the active session view. Plugins can use session.header for persistent session-level context such as environment, branch, workflow mode, or warnings.

context.ui.slot("session.header", ({ sessionID }) => (
  <text>Review mode · {String(sessionID)}</text>
))

How

  • Mounts PluginSlot before the session transcript region.
  • Passes the active sessionID to every registered contribution.
  • Adds a CLI patch changeset.

Scope

This PR only exposes the generic host position. It does not add a built-in contribution or change plugin loading.

Testing

  • bun typecheck in packages/tui.
  • bun run test in packages/tui: 265 passed, 1 skipped.
  • Pre-push bun turbo typecheck --concurrency=3: 32 package tasks passed.
  • git diff --check passed.

Demo

A temporary local plugin renders session-level review state through session.header. The demo contribution is not included in this PR.

Session header plugin slot

@kitlangton
kitlangton merged commit 48adb95 into v2 Jul 17, 2026
11 checks passed
@kitlangton
kitlangton deleted the session-header-slot branch July 17, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant