From de643f021448aa25d63c48e0e790f77305428e8a Mon Sep 17 00:00:00 2001 From: brooksc Date: Sun, 24 May 2026 15:04:40 -0700 Subject: [PATCH] fix(prompt): use task name in input notification Co-Authored-By: OpenAI Codex --- src/components/PromptInput.tsx | 9 ++++++--- src/components/TaskPanel.tsx | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/PromptInput.tsx b/src/components/PromptInput.tsx index ad242a14..5b616c32 100644 --- a/src/components/PromptInput.tsx +++ b/src/components/PromptInput.tsx @@ -39,6 +39,7 @@ export interface PromptInputHandle { interface PromptInputProps { taskId: string; + taskName: string; agentId: string; coordinatedBy?: string; coordinatorMode?: boolean; @@ -563,8 +564,8 @@ export function PromptInput(props: PromptInputProps) { createEffect( on( // eslint-disable-next-line solid/reactivity - [questionActive, () => props.controlledBy] as const, - ([active, controlledBy], prev) => { + [questionActive, () => props.controlledBy, () => props.taskName] as const, + ([active, controlledBy, taskName], prev) => { const prevActive = prev?.[0] ?? false; // Trigger only when the question becomes newly active (false→true). // Do NOT re-take control when coordinator regains it while questionActive @@ -577,7 +578,9 @@ export function PromptInput(props: PromptInputProps) { ) { setTaskControl(props.taskId, 'human'); setTaskFocusedPanel(props.taskId, 'ai-terminal'); - showNotification('Claude needs input. Answer in the terminal, then Release Control.'); + showNotification( + `${taskName} needs input. Answer in the terminal, then Release Control.`, + ); } }, ), diff --git a/src/components/TaskPanel.tsx b/src/components/TaskPanel.tsx index c1f14aab..23ed6aa5 100644 --- a/src/components/TaskPanel.tsx +++ b/src/components/TaskPanel.tsx @@ -341,6 +341,7 @@ export function TaskPanel(props: TaskPanelProps) { >