mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
fix: move "hook" from idleAsks to interactiveAsks to prevent false TaskIdle emissions
This commit is contained in:
parent
e30746ec94
commit
e8dc425c89
1 changed files with 7 additions and 2 deletions
|
|
@ -55,7 +55,6 @@ export const idleAsks = [
|
|||
"resume_completed_task",
|
||||
"mistake_limit_reached",
|
||||
"auto_approval_max_req_reached",
|
||||
"hook",
|
||||
] as const satisfies readonly ClineAsk[]
|
||||
|
||||
export type IdleAsk = (typeof idleAsks)[number]
|
||||
|
|
@ -84,7 +83,13 @@ export function isResumableAsk(ask: ClineAsk): ask is ResumableAsk {
|
|||
* Asks that put the task into an "user interaction required" state.
|
||||
*/
|
||||
|
||||
export const interactiveAsks = ["followup", "command", "tool", "use_mcp_server"] as const satisfies readonly ClineAsk[]
|
||||
export const interactiveAsks = [
|
||||
"followup",
|
||||
"command",
|
||||
"tool",
|
||||
"use_mcp_server",
|
||||
"hook",
|
||||
] as const satisfies readonly ClineAsk[]
|
||||
|
||||
export type InteractiveAsk = (typeof interactiveAsks)[number]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue