Commit graph

11 commits

Author SHA1 Message Date
Natalie
9888fb1a31 feat(@scripts): add unique timestamp to tmux session names
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-26 15:47:26 -07:00
Natalie
4b63a48d05 rclaude: add --version (git sha + date + repo path; -dirty if uncommitted) 2026-04-26 01:11:39 -07:00
Natalie
1f7f0779bd rclaude: launch path no longer forces --continue; resume path keeps it
Conflating launch and resume was wrong: tmux already provides 'reattach to
the live conversation' (named session keyed by dir). Adding --continue to
the launch path also caused surprise replays of stale conversations and
clashed with other claude processes holding the same on-disk session.

- launch (rclaude HOST DIR): plain 'claude' — fresh session
- transport-drop reattach: tmux session reattach (automatic, same command)
- explicit on-disk resume: 'rclaude resume <pattern>' — sets RCLAUDE_RESUME=1
  when re-execing, which adds --continue to the launch invocation
2026-04-26 01:01:37 -07:00
Natalie
509cdbbeec rclaude: keep tmux pane open on fast/nonzero claude exit
Wraps the inner claude invocation so a fast (under 2s) or nonzero exit shows
'[rclaude] claude exited in Ns with code N' and waits for enter, instead of
silently dying and dragging the whole tmux session + ssh transport down with
it (surfaces to user as bare 'Connection closed.'). Normal interactive exits
still close cleanly.
2026-04-26 00:17:14 -07:00
Natalie
77cd1c74b1 rclaude: pre-flight remote dir existence; loud error instead of silent ssh-close
Catches typos and Claude-instruction-style aliases (@proj/@apps/@pkg) that
look like paths but only resolve in the assistant's mental model, not in any
shell. Without the check the cd inside the tmux command failed silently, the
pane died, the session closed, ssh exited — surfaced to the user as a bare
'Connection to <host> closed.'
2026-04-26 00:10:02 -07:00
Natalie
47434868e0 rclaude: list/resume now cover on-disk Claude sessions, not just tmux
- new bin/_claude-projects helper: prints tab-sep mtime/cwd/count for every
  ~/.claude/projects/ dir (parses .jsonl entries for cwd field)
- list_tmux_on / list_disk_on / list_all_on: unified enumeration with KIND col
- rclaude list [all|tmux|disk]: filterable view, sorted by recency
- rclaude resume <pattern>: matches against tmux + disk; tmux match attaches,
  disk match re-execs self to spawn fresh tmux + claude --continue at the cwd
- helper streamed to remote via 'ssh host python3 -' so no install required
  on the remote side beyond python3
2026-04-26 00:04:09 -07:00
Natalie
29dcfce7b6 rclaude: add list and resume subcommands
list: tabular view of active claude-* tmux sessions across local + RCLAUDE_HOSTS
resume [pattern]: substring match → unique attach, multi → list+exit, none → error
also: graceful fallback when local tmux is missing
2026-04-25 23:53:42 -07:00
Natalie
ebf578dc3f rclaude: bare invocation and '.' default to local + $PWD 2026-04-25 23:41:33 -07:00
Natalie
8a55bef58a rclaude: support local tmux mode (host=local|localhost|hostname) 2026-04-25 23:39:21 -07:00
Natalie
ad7359b18e add rclaude: remote durable Claude Code session wrapper 2026-04-25 23:24:02 -07:00
Natalie
74e7f5529c initial: remote-run + tssh + installer 2026-04-25 22:13:25 -07:00