Skip to content

feat: include TTY and tmux pane in session list#90

Open
benvinegar wants to merge 2 commits intomainfrom
feat/session-tty-metadata
Open

feat: include TTY and tmux pane in session list#90
benvinegar wants to merge 2 commits intomainfrom
feat/session-tty-metadata

Conversation

@benvinegar
Copy link
Member

Summary

  • Add tty and tmuxPane fields to session registration so hunk session list and hunk session get show which terminal each session belongs to
  • TTY path resolved via the tty command at registration time; tmux pane read from TMUX_PANE env var
  • Fields are optional — omitted when not available (e.g. non-TTY or non-tmux environment)

Closes #89

Test plan

  • Typecheck passes
  • New unit tests: list/get formatters show tty/tmux when present, omit when absent
  • New unit tests: daemon state passes fields through to listed sessions
  • TTY smoke test passes
  • Format check passes

🤖 Generated with Claude Code

benvinegar and others added 2 commits March 23, 2026 15:26
Add tty and tmuxPane fields to HunkSessionRegistration and
ListedSession so `hunk session list` and `hunk session get` can
show which terminal a session belongs to. This makes it easier
to identify sessions when multiple are running.

Closes #89

Co-Authored-By: Claude Opus 4.6 (1M context) <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.

Session list: include TTY and tmux pane metadata

1 participant