Skip to content

feat(tui): add thread commands and session graph #32298

@mrbickle98

Description

@mrbickle98

Problem

Users need a way to explore specific parts of a conversation in isolation without losing context. Currently there is no way to fork a discussion thread from selected text or visualize the relationship between related sessions.

Proposed Solution

Add two new slash commands:

  1. /thread - Creates a child thread from selected text

    • Captures selected text and parent conversation context
    • Shows ThreadFooter with navigation (parent/prev/next) and selected text excerpt
    • Injects parent context as synthetic system reminder on first prompt
  2. /graph - Shows session hierarchy tree

    • Displays threads and subagents in a tree view
    • Shows selected text excerpts for each thread
    • Click-to-navigate to any session

Verification

  • Typecheck passes: bun typecheck in packages/tui
  • Unit tests pass: bun test test/util/session.test.ts

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions