feat: add --continue/-c flag and exit hint for session resume#331
Open
jheronimus wants to merge 1 commit into
Open
feat: add --continue/-c flag and exit hint for session resume#331jheronimus wants to merge 1 commit into
jheronimus wants to merge 1 commit into
Conversation
a4adf7a to
0bbd47d
Compare
- 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
0bbd47d to
4297449
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A simple
-coption. Resumes the last session in the current folder.At quit Tau will print:
(unless it was an empty session that wasn't added to the registry)
For consistency I've added both
-c/--continue, and also-rto--resume.You can also continue and immediately start a prompt by running
tau -c "prompt message"ortau -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 -cwill simply start a new session.It also reuses most of the code already available for
--resume, so the fix is minimal.