fix: gemini cli resume session can have project_dir#2240
Merged
Conversation
tisonkun
commented
Apr 22, 2026
46b6a60 to
af9ea48
Compare
Signed-off-by: tison <wander4096@gmail.com>
af9ea48 to
911786b
Compare
Contributor
Author
Run out of space. Doesn't seem related. |
ManLOK-Chu
pushed a commit
to ManLOK-Chu/cc-switch
that referenced
this pull request
May 11, 2026
Signed-off-by: tison <wander4096@gmail.com>
dfbb
pushed a commit
to dfbb/cc-switch
that referenced
this pull request
May 20, 2026
Signed-off-by: tison <wander4096@gmail.com>
delta-lo
pushed a commit
to delta-lo/cc-switch-mod
that referenced
this pull request
May 31, 2026
Signed-off-by: tison <wander4096@gmail.com>
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.
google-gemini/gemini-cli#17901 这个 PR 改了一下
$HOME/.gemini/tmp的组织逻辑。按理说是
.gemini/projects.json和.gemini/tmp/<project_name>/.project_root两种都可以拿到project_dir.我顺着现在的 iter 逻辑先用第二种实现。还是不知道本地怎么编译测试,我研究一下 ><
这个不是公开的接口,所以未来 Gemini CLI 应该也随时可能静默 break ..
BTW 旧版的 Gemini CLI 虽然是
.gemini/tmp/<project_hash>/的结构,我记得也有这个.project_root的文件。