feat: 扫描 Gemini history/ 目录并支持按模型名搜索会话#10
Merged
xintaofei merged 2 commits intoxintaofei:mainfrom Mar 12, 2026
Merged
Conversation
…corust, minion, stakpak - Add ClineMono and GooseMono from @lobehub/icons (already in the library but not wired up) - Add hand-crafted SVG fallbacks for agents not yet in @lobehub/icons: autohand, codebuddy_code, corust_agent, minion_code, stakpak - All 20 agent types now render a distinct icon instead of a plain dot
- gemini.rs: list_chat_files() 同时扫描 tmp/(进行中)和 history/ (已归档)目录,修复已完成的 Gemini 会话不可见的问题 - conversations.rs: 搜索过滤新增 model 字段匹配, 支持按模型名搜索会话(如 'gemini-2.5-pro'、'claude-sonnet')
Owner
|
平常gemini cli用的少,感谢补齐。 |
xintaofei
added a commit
that referenced
this pull request
Mar 12, 2026
xintaofei
added a commit
that referenced
this pull request
Mar 12, 2026
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.
问题
1.Gemini CLI 历史会话不可见:Gemini CLI 将已完成的会话归档到 ~/.gemini/history/,但解析器只扫描 ~/.gemini/tmp/,导致大量历史会话在 Codeg 中无法看到。
2.搜索无法按模型名过滤:输入 gemini-2.5-pro 或 claude-sonnet 等模型名时无法找到对应会话。
改动
src-tauri/src/parsers/gemini.rs list_chat_files() 同时扫描 tmp/(进行中)和 history/(已归档)两个目录
src-tauri/src/commands/conversations.rs list_conversations_sync() 的搜索过滤新增 model 字段匹配