diff --git a/apps/desktop/src/plugins/kanban/board.tsx b/apps/desktop/src/plugins/kanban/board.tsx index 5b069703a2..2663fe7c86 100644 --- a/apps/desktop/src/plugins/kanban/board.tsx +++ b/apps/desktop/src/plugins/kanban/board.tsx @@ -78,6 +78,12 @@ import { } from './api' import { BoardSwitcher } from './board-switcher' import { TaskDrawer } from './drawer' +import { + EMPTY_OVERRIDE, + ModelOverrideField, + overrideCreateFields, + type TaskModelOverride +} from './model-override' import { OrchestrationPanel } from './orchestration' import { columnMeta, type KanbanBoard, type KanbanTask, type TaskEstimate } from './types' import { @@ -570,6 +576,7 @@ function NewTaskDialog({ // a path here overrides just this task. Only meaningful for dir/worktree. const [workspacePath, setWorkspacePath] = useState('') const [parent, setParent] = useState('') + const [modelOverride, setModelOverride] = useState(EMPTY_OVERRIDE) const [goalMode, setGoalMode] = useState(false) const [busy, setBusy] = useState(false) const [error, setError] = useState(null) @@ -602,6 +609,7 @@ function NewTaskDialog({ setWorkspaceKind(boardDefaultKind) setWorkspacePath('') setParent('') + setModelOverride(EMPTY_OVERRIDE) setGoalMode(false) setError(null) setBusy(false) @@ -637,6 +645,7 @@ function NewTaskDialog({ title: trimmed, triage: isTriage, workspace_kind: workspaceKind, + ...overrideCreateFields(modelOverride), // Empty → backend inherits the board's default project dir. workspace_path: workspaceKind !== 'scratch' && workspacePath.trim() ? workspacePath.trim() : undefined }) @@ -661,7 +670,15 @@ function NewTaskDialog({ return ( !open && onClose()} open={Boolean(target)}> - + {/* `overflow-visible`: DialogContent publishes ITSELF as the portal + container for popovers opened inside it (dialog-portal-context), and + its default `overflow-y-auto` then crops them at the dialog's edge — + the model menu below is born inside that scroll box. This dialog + already owns a scroller on its body div, so the shell's clip is + redundant here and dropping it is safe. The general fix to + DialogContent is in flight as #75600; when that lands this override + becomes a no-op and can go. */} + {target ? k.newTaskIn(columnLabel(k, target)) : k.newTask} @@ -742,6 +759,11 @@ function NewTaskDialog({ setSkills(event.target.value)} placeholder={k.skillsPlaceholder} value={skills} /> + + + {k.modelHint} + + {parents.length > 0 && (