From 602fc5f9f5aded91102ea3003931dbe40a6103ea Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Sat, 1 Aug 2026 16:10:25 -0500 Subject: [PATCH] feat(kanban): pick a task's model and thinking depth from the board MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The desktop board had no model control at all: a task ran whatever the profile you assigned it to happened to be configured with, and the only way to point one task elsewhere was `hermes kanban set-model` or the browser dashboard's flat provider:model select. Adds a Model row to New Task and to the task drawer, rendering the composer's own picker via the SDK — same search, same provider groups, same submenu — so the board and the chat bar cannot drift. Unset reads "Profile default" and changes nothing; a pin reads "provider: model · High" with an inline clear. Presets are read-only here: picking a model seeds the depth from what you last used for it, but a per-task choice never rewrites what the composer opens at. Fast mode is omitted rather than shown-and-ignored — it's a live-session request parameter with no worker-spawn equivalent. The New Task dialog opts out of DialogContent's clip: the dialog publishes itself as the portal container for popovers opened inside it, so its overflow-y-auto cropped the menu at the dialog's edge. The general fix is in flight as #75600; this override is scoped to one dialog to avoid conflicting with it and disappears when that lands. --- apps/desktop/src/plugins/kanban/board.tsx | 24 ++- apps/desktop/src/plugins/kanban/drawer.tsx | 11 ++ apps/desktop/src/plugins/kanban/i18n.ts | 20 +++ .../plugins/kanban/model-override.test.tsx | 148 +++++++++++++++ .../src/plugins/kanban/model-override.tsx | 170 ++++++++++++++++++ apps/desktop/src/plugins/kanban/types.ts | 5 + 6 files changed, 377 insertions(+), 1 deletion(-) create mode 100644 apps/desktop/src/plugins/kanban/model-override.test.tsx create mode 100644 apps/desktop/src/plugins/kanban/model-override.tsx 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 && (