We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76e52a5 + 7c1fe2d commit 514cbd4Copy full SHA for 514cbd4
packages/cli/src/ui/hooks/useGeminiStream.ts
@@ -1101,6 +1101,11 @@ export const useGeminiStream = (
1101
break;
1102
case ServerGeminiEventType.HookSystemMessage:
1103
// Display system message from Stop hooks with "Stop says:" prefix
1104
+ // First commit any pending AI response to ensure correct ordering
1105
+ if (pendingHistoryItemRef.current) {
1106
+ addItem(pendingHistoryItemRef.current, userMessageTimestamp);
1107
+ setPendingHistoryItem(null);
1108
+ }
1109
addItem(
1110
{
1111
type: 'stop_hook_system_message',
0 commit comments