mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 05:00:46 +00:00
refactor stop hook
This commit is contained in:
parent
a0a0a70b12
commit
43d64e26ca
32 changed files with 5387 additions and 6 deletions
|
|
@ -945,6 +945,15 @@ export const useGeminiStream = (
|
|||
clearRetryCountdown();
|
||||
}
|
||||
break;
|
||||
case ServerGeminiEventType.HookSystemMessage:
|
||||
// Display system message from hooks (e.g., Ralph Loop iteration info)
|
||||
// This is handled as a content event to show in the UI
|
||||
geminiMessageBuffer = handleContentEvent(
|
||||
event.value + '\n',
|
||||
geminiMessageBuffer,
|
||||
userMessageTimestamp,
|
||||
);
|
||||
break;
|
||||
default: {
|
||||
// enforces exhaustive switch-case
|
||||
const unreachable: never = event;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue