Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(palette): a disabled command's reason is a note, not a searchable hint
enes9ce0c2b3e1c9
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex baca21d4f..59ad5769a 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -4224,9 +4224,11 @@ export function Canvas() {id: 'worktree-new',label: 'New worktree…',icon: <IconBranch />,- // The palette has no disabled row, so the hint carries the reason and `openWorktreeDialog`- // refuses with a banner — the command never silently does nothing.- hint: isSshProject ? WORKTREE_SSH_HINT : undefined,+ // The palette has no disabled row, so the reason rides along and `openWorktreeDialog`+ // refuses with a banner — the command never silently does nothing. `note`, not `hint`:+ // a hint is part of the search corpus, and "Not supported in SSH projects yet" made this+ // row answer queries like "ssh" or "supported".+ note: isSshProject ? WORKTREE_SSH_HINT : undefined,run: () => openWorktreeDialog(null)},{ id: 'new-project', label: 'New project', icon: <IconProject />, run: () => addProject() },diff --git a/src/renderer/components/CommandPalette.tsx b/src/renderer/components/CommandPalette.tsxindex e90f6c89d..fb410dd0c 100644--- a/src/renderer/components/CommandPalette.tsx+++ b/src/renderer/components/CommandPalette.tsx@@ -6,7 +6,14 @@ import { IconEditor } from './icons'export interface Command {id: stringlabel: string+ /** Right-aligned metadata that IS part of the search corpus (e.g. a file's directory). */hint?: string+ /**+ * Right-aligned metadata that is NOT searchable — a reason, not a key. A disabled affordance still+ * has to say why (worktrees on an SSH project), and putting that sentence in `hint` fed it to the+ * fuzzy matcher, so the row answered queries like "ssh" or "supported". Shown when `hint` is unset.+ */+ note?: stringsection?: stringicon?: ReactNode/** Searchable body text (e.g. a terminal's visible output) — matched by substring. */@@ -151,7 +158,9 @@ export function CommandPalette({{!labelHit(c) && contentHit(c) ? (<span className="palette__hint">found in output</span>) : (- c.hint && <span className="palette__hint">{c.hint}</span>+ (c.hint ?? c.note) && (+ <span className="palette__hint">{c.hint ?? c.note}</span>+ ))}{c.onSecondary && (<span