mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 22:03:45 +00:00
Rename immediate -> allowDuringStreaming for hook commands
This commit is contained in:
parent
454dd919be
commit
f8352bb7d7
4 changed files with 15 additions and 7 deletions
|
|
@ -309,7 +309,7 @@ const SNAKE_SAVE_TYPE = "snake-save";
|
|||
export default function (pi: HookAPI) {
|
||||
pi.registerCommand("snake", {
|
||||
description: "Play Snake!",
|
||||
immediate: true, // Run immediately, even during streaming
|
||||
allowDuringStreaming: true, // Run even during streaming, not queued
|
||||
handler: async (ctx) => {
|
||||
if (!ctx.hasUI) {
|
||||
ctx.ui.notify("Snake requires interactive mode", "error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue