mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-21 03:21:11 -07:00
fix(cli): filter subagent sessions from resume history (#19698)
This commit is contained in:
@@ -276,6 +276,12 @@ export const getAllSessionFiles = async (
|
||||
return { fileName: file, sessionInfo: null };
|
||||
}
|
||||
|
||||
// Skip subagent sessions - these are implementation details of a tool call
|
||||
// and shouldn't be surfaced for resumption in the main agent history.
|
||||
if (content.kind === 'subagent') {
|
||||
return { fileName: file, sessionInfo: null };
|
||||
}
|
||||
|
||||
const firstUserMessage = extractFirstUserMessage(content.messages);
|
||||
const isCurrentSession = currentSessionId
|
||||
? file.includes(currentSessionId.slice(0, 8))
|
||||
|
||||
Reference in New Issue
Block a user