Skip to content

feat: add --continue/-c flag and exit hint for session resume#331

Open
jheronimus wants to merge 1 commit into
huggingface:mainfrom
jheronimus:feat/continue-flag
Open

feat: add --continue/-c flag and exit hint for session resume#331
jheronimus wants to merge 1 commit into
huggingface:mainfrom
jheronimus:feat/continue-flag

Conversation

@jheronimus

@jheronimus jheronimus commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

A simple -c option. Resumes the last session in the current folder.

At quit Tau will print:

To continue this session: tau -c  |  tau --resume c5e203a09eaf4604bc7c3c61ff581be7

(unless it was an empty session that wasn't added to the registry)

For consistency I've added both -c/--continue, and also -r to --resume.

You can also continue and immediately start a prompt by running tau -c "prompt message" or tau -r <session id> "prompt message".

It also resumes with the same model that was used for the session before. If no session exists for this folder, tau -c will simply start a new session.

It also reuses most of the code already available for --resume, so the fix is minimal.

@jheronimus jheronimus requested a review from alejandro-ao as a code owner July 10, 2026 00:45
@jheronimus jheronimus force-pushed the feat/continue-flag branch 2 times, most recently from a4adf7a to 0bbd47d Compare July 13, 2026 13:15
- Add --continue/-c flag that resumes the most recent session in cwd
  via SessionManager.latest_session_for_cwd(); falls through to new
  session if none exists
- Add -r alias for the existing --resume flag
- Allow positional prompt after -c/-r to pre-fill in TUI (e.g.
  tau -c 'finish the auth module')
- Print exit hint after TUI: 'To continue this session: tau -c  |
  tau --resume <session-id>' — only when session has conversation
  (updated_at > created_at), following Pi/Codex convention
- run_tui_app returns the active session_id for the hint
- Remove dead resume_picker plumbing (nothing ever sets it)
- Add .DS_Store to gitignore
@jheronimus jheronimus force-pushed the feat/continue-flag branch from 0bbd47d to 4297449 Compare July 16, 2026 20:11
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