Skip to content

feat(tui): add persistent main Claude session via ':' keybinding#6

Draft
Ragazoor wants to merge 13 commits into
mainfrom
583-main-claude-session
Draft

feat(tui): add persistent main Claude session via ':' keybinding#6
Ragazoor wants to merge 13 commits into
mainfrom
583-main-claude-session

Conversation

@Ragazoor
Copy link
Copy Markdown
Owner

@Ragazoor Ragazoor commented May 6, 2026

Summary

  • Adds a : keybinding that opens a persistent, general-purpose Claude Code session from anywhere on the board — for ad-hoc questions and quick tasks that don't warrant a dedicated worktree
  • On first use, an inline text prompt collects the working directory; subsequent presses attach directly to the existing tmux window (or create a fresh one if the window was killed)
  • The session runs claude --plugin-dir <dispatch> so MCP tools and skills are available, but no task prompt and no --permission-mode restriction
  • Survives TUI restarts: the window name is stored in the settings DB (main_session.window) and liveness is checked at startup — a dead window is cleared silently so the next : re-prompts

Test plan

  • 21 new tests covering keybinding, text input, message handlers, and runtime lifecycle (cargo test main_session)
  • Manual: start TUI, press :, enter a directory, confirm claude opens with dispatch plugin dir in a tmux window
  • Manual: exit and restart TUI, press : — should re-attach to the same window
  • Manual: kill the tmux window manually, press : — should create a fresh session in the same directory

Notes

The session is deliberately not a task card — it can't be accidentally archived or deleted. The working directory is user-configured once and persisted; to change it, clear main_session.dir from the settings DB (no TUI for this in v1).

Implements #583.

Ragazoor and others added 13 commits May 6, 2026 18:59
Adds Step 2.5 to the wrap-up skill: if code files were changed in the
branch (committed or uncommitted), invokes the code-simplifier agent to
clean up the implementation before committing and finishing. Skips
automatically when only docs, configs, or snapshots changed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace Agent{code-simplifier} with Skill{simplify} — the /simplify
built-in skill runs three parallel review agents (reuse, quality,
efficiency) and fixes findings, which is the intended behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a general-purpose Claude Code session accessible from anywhere on
the board. ':' prompts for a working directory on first use, then opens
a tmux window running claude with dispatch plugins loaded. Survives TUI
restarts by storing the window name in the settings DB and reconnecting
on startup if the window is still alive.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant