Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/components/PromptInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface PromptInputHandle {

interface PromptInputProps {
taskId: string;
taskName: string;
agentId: string;
coordinatedBy?: string;
coordinatorMode?: boolean;
Expand Down Expand Up @@ -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
Expand All @@ -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.`,
);
}
},
),
Expand Down
1 change: 1 addition & 0 deletions src/components/TaskPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ export function TaskPanel(props: TaskPanelProps) {
>
<PromptInput
taskId={props.task.id}
taskName={props.task.name}
agentId={firstAgentId()}
coordinatedBy={props.task.coordinatedBy}
coordinatorMode={props.task.coordinatorMode}
Expand Down
Loading