bug(core): Strip thoughts when loading history. (#7167)

This commit is contained in:
joshualitt
2025-08-28 10:25:13 -07:00
committed by GitHub
parent c35aebe109
commit 600151cc2c
2 changed files with 40 additions and 2 deletions

View File

@@ -393,9 +393,9 @@ export const useSlashCommandProcessor = (
}
}
case 'load_history': {
await config
config
?.getGeminiClient()
?.setHistory(result.clientHistory);
?.setHistory(result.clientHistory, { stripThoughts: true });
fullCommandContext.ui.clear();
result.history.forEach((item, index) => {
fullCommandContext.ui.addItem(item, index);