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(settings): Custom discovery row lit /v1/models — checked is single-owner while Custom mode is active
Darren Kattanf7b859d82253
diff --git a/src/renderer/components/settings/sections/ModelGatewaySection.tsx b/src/renderer/components/settings/sections/ModelGatewaySection.tsxindex eab8bf3cf..75ecee8f9 100644--- a/src/renderer/components/settings/sections/ModelGatewaySection.tsx+++ b/src/renderer/components/settings/sections/ModelGatewaySection.tsx@@ -263,10 +263,15 @@ export function ModelGatewaySection({ isActive }: { isActive: boolean }): React.{ option: 'custom', label: 'Custom path…', hint: 'Enter an exact path below.' }] as const).map((opt) => {+ // Custom is a MODE, not a stored alias value: `customMode` (this render+ // session's Custom selection) OR a persisted non-canonical path claims the+ // custom row. A custom seed of '/v1/models' before typing must NOT light the+ // first row — checked is single-owner: while customMode, the canonical rows+ // never light, whatever the field currently contains.const checked =opt.option === 'custom'- ? isCustomValue- : (gateway.discoveryPath ?? '/v1/models') === opt.option+ ? customMode || isCustomValue+ : !customMode && !isCustomValue && (gateway.discoveryPath ?? '/v1/models') === opt.optionreturn (<divkey={opt.option}@@ -288,8 +293,12 @@ export function ModelGatewaySection({ isActive }: { isActive: boolean }): React.checked={checked}onChange={() => {if (opt.option === 'custom') {+ // Seed the input with the CURRENT stored path (or the conventional+ // default) so the box never shows empty over a live value. The+ // stored path is NOT rewritten here — Custom is only a mode until+ // the input itself is edited.setCustomMode(true)- patchGateway({ discoveryPath: customPath || '/v1/models' })+ setCustomPath(gateway.discoveryPath ?? '/v1/models')} else {setCustomMode(false)setCustomPath('')