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:
-
/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
-
/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
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:
/thread - Creates a child thread from selected text
/graph - Shows session hierarchy tree
Verification
bun typecheckin packages/tuibun test test/util/session.test.ts