Rename immediate -> allowDuringStreaming for hook commands

This commit is contained in:
Mario Zechner 2025-12-28 15:00:52 +01:00
parent 454dd919be
commit f8352bb7d7
4 changed files with 15 additions and 7 deletions

View file

@ -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");