feat: --resume And --save Command-line Arguments#201
Closed
shuxueshuxue wants to merge 16 commits intoQwenLM:mainfrom
Closed
feat: --resume And --save Command-line Arguments#201shuxueshuxue wants to merge 16 commits intoQwenLM:mainfrom
--resume And --save Command-line Arguments#201shuxueshuxue wants to merge 16 commits intoQwenLM:mainfrom
Conversation
--resume And --save Command-line Arguments--resume And --save Command-line Arguments
c837bfb to
6de556e
Compare
… include-directories features
halfaipg
pushed a commit
to AIPowerGrid/grid-code
that referenced
this pull request
Aug 16, 2025
…at should now work in all scenarios (QwenLM#201) * env flags SANDBOX_{MOUNTS,ENV}, improved debugging through sandbox that should now work in all scenarios * Merge remote-tracking branch 'origin/main' into sandbox_flags_improved_debugging
Contributor
|
Hi! FYI—a series of PRs are being merged which add automatic save/resume support to Gemini CLI, as well as a |
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.
TLDR
This PR adds --resume and --save command-line arguments to enable checkpoint-based conversation persistence in non-interactive mode. Users can now save their conversation history to named checkpoints and resume from them later.
This is crucial for developing sdk similar to Claude Code.
Dive Deeper
This implementation adds two new features to the CLI:
- Accepts either a checkpoint tag (e.g., "session1") or a full file path
- Restores the full conversation context so the model can continue where it left off
- Saves the complete conversation history in the logger checkpoint format
- Can be used together with --resume to continue and save sessions
- Checkpoint files are stored in ~/.qwen/tmp//checkpoint-.json
The implementation follows the existing patterns in the codebase:
Reviewer Test Plan
To test this feature:
Testing Matrix