mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 15:34:29 -07:00
feat(cli): overhaul thinking UI (#18725)
This commit is contained in:
@@ -905,17 +905,14 @@ export const useGeminiStream = (
|
||||
);
|
||||
|
||||
const handleThoughtEvent = useCallback(
|
||||
(eventValue: ThoughtSummary, userMessageTimestamp: number) => {
|
||||
(eventValue: ThoughtSummary, _userMessageTimestamp: number) => {
|
||||
setThought(eventValue);
|
||||
|
||||
if (getInlineThinkingMode(settings) === 'full') {
|
||||
addItem(
|
||||
{
|
||||
type: 'thinking',
|
||||
thought: eventValue,
|
||||
} as HistoryItemThinking,
|
||||
userMessageTimestamp,
|
||||
);
|
||||
addItem({
|
||||
type: 'thinking',
|
||||
thought: eventValue,
|
||||
} as HistoryItemThinking);
|
||||
}
|
||||
},
|
||||
[addItem, settings, setThought],
|
||||
|
||||
Reference in New Issue
Block a user