cmd/glue: glue run --continue reopens the most recent session (closes #366) - #373
Merged
Conversation
…366) Resume existed only as the TUI /resume picker; the CLI required remembering --id. --continue asks the store for the newest session (UpdatedAt ordering), prints the picked id with message count and age, and works for both interactive and one-shot runs. Mutually exclusive with an explicit --id. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
glue-reviewNo concerns — LGTM. 🤖 Posted by glue-review. |
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.
Implements #366 — daily-driver readiness under tracker #110.
glue run --continueresolves the most recently updated session in the store (ListSessionsalready orders byUpdatedAtdescending), reports which session it picked (glue run: continuing session "x" (N messages, last updated …)), and then proceeds exactly as if that--idhad been passed — TUI and one-shot--promptboth work.--continuewith an explicit--iderrors; an empty store errors with the store path.Tests: picks the newer of two seeded sessions and resumes its transcript; rejects
--continue --id; errors on an empty store. Live-verified against the scratch project store (picked the correct previous session).🤖 Generated with Claude Code