Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(subagents): retain disabled provider names in fallback rows

inorilzy495aa7da4bfc
diff --git a/apps/desktop/src/components/settings/SubagentEditorSheet.tsx b/apps/desktop/src/components/settings/SubagentEditorSheet.tsx
index 325df202e..df7b6cf84 100644
--- a/apps/desktop/src/components/settings/SubagentEditorSheet.tsx
+++ b/apps/desktop/src/components/settings/SubagentEditorSheet.tsx
@@ -16,6 +16,7 @@ import {
type SubagentDefinition,
type SubagentPreset,
type SubagentThinkingLevel,
+ type ProviderPublic,
type UserSubagentRecord,
} from "@pi-desktop/shared";
import { useAppStore } from "../../stores/app-store";
@@ -395,12 +396,14 @@ function ModelField({
draft,
setDraft,
modelChoices,
+ providers,
modelGroups,
orphanModel,
}: {
draft: SubagentDraft;
setDraft: (next: SubagentDraft) => void;
modelChoices: ReturnType<typeof subagentModelChoices>;
+ providers: readonly ProviderPublic[];
modelGroups: ReturnType<typeof groupSubagentModelChoices>;
orphanModel: string | null;
}) {
@@ -468,6 +471,7 @@ function ModelField({
primary={draft.model}
values={draft.fallbackModels}
choices={modelChoices}
+ providers={providers}
onChange={(fallbackModels) => setDraft({ ...draft, fallbackModels })}
/>
</>
@@ -481,6 +485,7 @@ function AdvancedFields({
draft,
setDraft,
modelChoices,
+ providers,
modelGroups,
orphanModel,
}: {
@@ -489,6 +494,7 @@ function AdvancedFields({
draft: SubagentDraft;
setDraft: (next: SubagentDraft) => void;
modelChoices: ReturnType<typeof subagentModelChoices>;
+ providers: readonly ProviderPublic[];
modelGroups: ReturnType<typeof groupSubagentModelChoices>;
orphanModel: string | null;
}) {
@@ -510,6 +516,7 @@ function AdvancedFields({
draft={draft}
setDraft={setDraft}
modelChoices={modelChoices}
+ providers={providers}
modelGroups={modelGroups}
orphanModel={orphanModel}
/>
@@ -781,6 +788,7 @@ export function SubagentEditorSheet({
draft={draft}
setDraft={setDraft}
modelChoices={modelChoices}
+ providers={providers}
modelGroups={modelGroups}
orphanModel={orphanModel}
/>
diff --git a/apps/desktop/src/components/settings/SubagentFallbackModels.tsx b/apps/desktop/src/components/settings/SubagentFallbackModels.tsx
index 536952b16..4a29e75da 100644
--- a/apps/desktop/src/components/settings/SubagentFallbackModels.tsx
+++ b/apps/desktop/src/components/settings/SubagentFallbackModels.tsx
@@ -1,25 +1,27 @@
import { useTranslation } from "react-i18next";
+import type { ProviderPublic } from "@pi-desktop/shared";
import { Button, Field } from "../ui";
import { SubagentModelPicker } from "./SubagentModelPicker";
import {
groupSubagentModelChoices,
- pinMatchesChoice,
+ subagentModelDisplay,
subagentModelSelectValue,
type SubagentModelChoice,
} from "./subagent-models";
/** Ordered alternatives use the same configured-model catalog as the primary. */
-export function SubagentFallbackModels({ primary, values, choices, onChange }: {
+export function SubagentFallbackModels({ primary, values, choices, providers, onChange }: {
primary: string;
values: string[];
choices: SubagentModelChoice[];
+ providers: readonly ProviderPublic[];
onChange: (values: string[]) => void;
}) {
const { t } = useTranslation();
const selected = new Set([primary, ...values].map((pin) => subagentModelSelectValue(pin, choices)));
const available = choices.filter((choice) => !selected.has(choice.value));
const rows = values.map((pin) => {
- const choice = choices.find((candidate) => pinMatchesChoice(pin, candidate));
+ const choice = subagentModelDisplay(pin, providers);
return { choice, text: choice ? `${choice.providerName}/${choice.modelId}` : pin };
});
const move = (index: number, delta: number) => {
@@ -35,9 +37,13 @@ export function SubagentFallbackModels({ primary, values, choices, onChange }: {
const duplicate = rows.some((other, position) => position !== index && other.text === text);
const sameProvider = choice && rows.some((other, position) =>
position !== index && other.text === text && other.choice?.providerId === choice.providerId);
- const label = duplicate
+ const identity = duplicate
? `${text} (${!choice || sameProvider ? `${index + 1}: ${pin}` : choice.providerId})`
: text;
+ const status = choice?.status ?? "unavailable";
+ const label = status === "available" ? identity : `${identity} (${t(
+ status === "disabled" ? "settings.providerDisabledBadge" : "settings.catalogSourceEmpty",
+ )})`;
return (
<li key={`${index}:${pin}`} className="flex items-center gap-2">
<span className="min-w-0 flex-1 break-all text-sm">{index + 1}. {label}</span>
diff --git a/apps/desktop/src/components/settings/subagent-models.ts b/apps/desktop/src/components/settings/subagent-models.ts
index ecbd11446..c27515aa6 100644
--- a/apps/desktop/src/components/settings/subagent-models.ts
+++ b/apps/desktop/src/components/settings/subagent-models.ts
@@ -96,6 +96,34 @@ export function pinMatchesChoice(pin: string, choice: SubagentModelChoice): bool
);
}
+/** Saved-row identity is independent of whether the picker can offer it. */
+export function subagentModelDisplay(
+ pin: string,
+ providers: readonly ProviderPublic[],
+): { providerId: string; providerName: string; modelId: string; status: "available" | "disabled" | "unavailable" } | null {
+ const parts = subagentModelPinParts(pin);
+ if (!parts) return null;
+ const exact = providers.find((provider) => provider.id === parts.providerPart);
+ const alias = providerAlias(parts.providerPart);
+ const matches = exact ? [exact] : providers.filter((provider) => alias && (
+ providerAlias(provider.name) === alias ||
+ (alias !== "custom" && providerAlias(provider.vendorKey) === alias)
+ ));
+ // Resolve the provider before its model: a duplicate alias must not silently
+ // identify another account just because only that account has the binding.
+ if (matches.length !== 1) return null;
+ const provider = matches[0];
+ const model = defaultModelOptions([provider]).find((option) =>
+ sameComposerModelId(parts.modelId, option.modelId));
+ if (!model) return null;
+ return {
+ providerId: provider.id,
+ providerName: provider.name,
+ modelId: model.modelId,
+ status: !provider.enabled ? "disabled" : isSubagentModelProvider(provider) ? "available" : "unavailable",
+ };
+}
+
function uniqueProviderPart(
provider: ProviderPublic,
providers: readonly ProviderPublic[],
diff --git a/apps/desktop/test/subagent-fallback-label.test.mjs b/apps/desktop/test/subagent-fallback-label.test.mjs
index 3ea4ff32f..98694b6fc 100644
--- a/apps/desktop/test/subagent-fallback-label.test.mjs
+++ b/apps/desktop/test/subagent-fallback-label.test.mjs
@@ -28,12 +28,21 @@ test("fallback rows show provider names and disambiguate equal labels", async ()
fallbackMoveDown: "Move {{model}} down",
fallbackRemove: "Remove {{model}}",
} },
+ settings: { providerDisabledBadge: "Disabled", catalogSourceEmpty: "unavailable" },
} } } });
- const render = (values, choices) => renderToStaticMarkup(
+ const render = (values, choices, providers = choices.map((choice) => ({
+ id: choice.providerId,
+ name: choice.providerName,
+ vendorKey: choice.vendorKey,
+ enabled: true,
+ hasSecret: true,
+ models: [{ id: choice.modelId }],
+ }))) => renderToStaticMarkup(
createElement(I18nextProvider, { i18n }, createElement(SubagentFallbackModels, {
primary: "",
values,
choices,
+ providers,
onChange() {},
})),
);
@@ -75,6 +84,22 @@ test("fallback rows show provider names and disambiguate equal labels", async ()
const unavailable = render([pin], []);
assert.match(unavailable, /721fcc76-026e-4f35-a32d-5e2a8d204499\/deepseek-v4\.1-flash/);
+
+ // A saved ID pin must keep its identity when eligibility changes.
+ const disabledProvider = {
+ id: choices[1].providerId,
+ name: choices[1].providerName,
+ vendorKey: "custom",
+ enabled: false,
+ hasSecret: true,
+ models: [{ id: choices[1].modelId }],
+ };
+ const disabled = render([pin], [], [disabledProvider]);
+ assert.match(disabled, /DeepSeek Workspace\/deepseek-v4\.1-flash/);
+ assert.match(disabled, /Disabled/);
+ assert.match(disabled, /aria-label="Remove DeepSeek Workspace\/deepseek-v4\.1-flash \(Disabled\)"/);
+ assert.doesNotMatch(disabled, /721fcc76-026e-4f35-a32d-5e2a8d204499/);
+ assert.match(unavailable, /\(unavailable\)/);
} finally {
await server.close();
}
diff --git a/apps/desktop/test/subagent-fallback-user-path.test.mjs b/apps/desktop/test/subagent-fallback-user-path.test.mjs
new file mode 100644
index 000000000..380176739
--- /dev/null
+++ b/apps/desktop/test/subagent-fallback-user-path.test.mjs
@@ -0,0 +1,149 @@
+import assert from "node:assert/strict";
+import { spawn } from "node:child_process";
+import { createRequire } from "node:module";
+import { mkdtemp, rm, writeFile } from "node:fs/promises";
+import { join } from "node:path";
+import test from "node:test";
+import { repositoryRoot, resolveElectronBinary } from "../../../scripts/e2e/boot.mjs";
+
+const root = repositoryRoot();
+const { build } = createRequire(join(root, "packages/agent-runtime/package.json"))("esbuild");
+const fixture = String.raw`
+import React from "react";
+import { createRoot } from "react-dom/client";
+import { flushSync } from "react-dom";
+import i18n from "i18next";
+import { initReactI18next } from "react-i18next";
+import { catalogs, flattenCatalog } from "@pi-desktop/i18n";
+import { SubagentEditorSheet } from "../../apps/desktop/src/components/settings/SubagentEditorSheet";
+import { useAppStore } from "../../apps/desktop/src/stores/app-store";
+import "../../apps/desktop/src/styles/model-config.css";
+
+await i18n.use(initReactI18next).init({ lng: "en", keySeparator: false,
+ resources: { en: { translation: flattenCatalog(catalogs.en) } },
+ interpolation: { escapeValue: false } });
+window.piDesktop = { platform: "win32", on() { return () => {}; },
+ invoke() { throw new Error("Unexpected IPC in fallback display test"); } };
+const provider = (id, name) => ({ id, name, vendorKey: "custom", enabled: true,
+ hasSecret: true, hasOauth: false, authKind: "api_key_and_base_url", models: [{ id: "model" }] });
+const providers = [provider("account-a", "Shared Workspace"),
+ provider("account-b", "Shared Workspace"), provider("account-c", "Other Workspace")];
+useAppStore.setState({ providers });
+let draft = { id: "test", name: "Test", description: "Test delegate", tools: ["Read"],
+ inheritTools: false, model: "", fallbackModels: ["account-a/model", "account-b/model", "deleted/model"],
+ thinkingLevel: "", maxTokens: 0, enabled: true, body: "Read the workspace." };
+let saved;
+function Surface() {
+ const [value, setValue] = React.useState(draft);
+ return React.createElement(SubagentEditorSheet, { draft: value,
+ setDraft: (next) => { draft = next; setValue(next); }, editing: { id: "test" }, saving: false,
+ onClose() {}, onSave() { saved = [...draft.fallbackModels]; } });
+}
+const rootNode = createRoot(document.getElementById("root"));
+flushSync(() => rootNode.render(React.createElement(Surface)));
+const frame = () => new Promise(requestAnimationFrame);
+async function settle() { await frame(); await frame(); }
+function check(condition, message) { if (!condition) throw new Error(message); }
+const rows = () => [...document.querySelectorAll("ol > li")];
+const action = (label) => [...document.querySelectorAll("button")]
+ .find((button) => button.getAttribute("aria-label") === label);
+const labelA = "Shared Workspace/model (account-a)";
+const labelB = "Shared Workspace/model (account-b)";
+window.fallbackProbe = async () => {
+ await settle();
+ check(rows()[0].textContent.includes(labelA) && rows()[1].textContent.includes(labelB), "distinct provider identity missing");
+ check(rows()[0].querySelector("button").disabled, "first row move-up must stay disabled");
+ check(rows()[2].textContent.includes("deleted/model (unavailable)"), "unknown pin status missing");
+ flushSync(() => useAppStore.setState({ providers: providers.map((p, index) => ({ ...p, enabled: index === 2 })) }));
+ await settle();
+ check(rows()[0].textContent.includes(labelA + " (Disabled)"), "disabled provider name missing");
+ check(action("Remove " + labelB + " (Disabled)"), "disabled accessible identity missing");
+ flushSync(() => action("Move " + labelA + " (Disabled) down").click());
+ await settle();
+ check(JSON.stringify(draft.fallbackModels) === JSON.stringify(["account-b/model", "account-a/model", "deleted/model"]), "move rewrote saved pins");
+ flushSync(() => action("Remove " + labelB + " (Disabled)").click());
+ await settle();
+ check(JSON.stringify(draft.fallbackModels) === JSON.stringify(["account-a/model", "deleted/model"]), "remove rewrote remaining pins");
+ const add = action(i18n.t("extensions.subagents.fallbackAdd"));
+ flushSync(() => add.click());
+ await settle();
+ const menu = [...document.querySelectorAll('[role="listbox"]')]
+ .find((candidate) => candidate.getAttribute("aria-label") === i18n.t("extensions.subagents.fallbackAdd"));
+ check(menu, "fallback add menu did not stay open");
+ const options = [...menu.querySelectorAll('[role="option"]')];
+ check(options.length === 1 && menu.querySelector(".provider-service-group")?.textContent === "Other Workspace", "disabled provider offered for addition");
+ const search = menu.querySelector('input[aria-label="' + i18n.t("extensions.subagents.modelSearch") + '"]');
+ check(document.activeElement === search, "add picker did not focus search");
+ flushSync(() => search.dispatchEvent(new KeyboardEvent("keydown", { key: "ArrowDown", bubbles: true })));
+ await settle();
+ check(options[0].classList.contains("is-active"), "keyboard navigation did not select the eligible model");
+ flushSync(() => search.dispatchEvent(new KeyboardEvent("keydown", { key: "Enter", bubbles: true })));
+ await settle();
+ check(draft.fallbackModels[2] === "Other Workspace/model", "keyboard addition failed");
+ flushSync(() => useAppStore.setState({ providers }));
+ await settle();
+ check(rows()[0].textContent.includes("Shared Workspace/model") && !rows()[0].textContent.includes("Disabled"), "re-enabled display stayed disabled");
+ const save = [...document.querySelectorAll("button")].find((button) => button.textContent.trim() === i18n.t("common.save"));
+ flushSync(() => save.click());
+ check(JSON.stringify(saved) === JSON.stringify(["account-a/model", "deleted/model", "Other Workspace/model"]), "save changed pin identity or order");
+ flushSync(() => rootNode.unmount());
+ return { passed: true, saved };
+};
+`;
+
+test("saved fallback names survive provider disable, move, remove, keyboard add and save", {
+ skip: process.platform === "linux" && !process.env.DISPLAY ? "Electron requires a display" : false,
+}, async () => {
+ const temp = await mkdtemp(join(root, "apps/desktop/.fallback-ui-"));
+ try {
+ await build({
+ stdin: { contents: fixture, resolveDir: join(root, "scripts/e2e"), loader: "tsx" },
+ outfile: join(temp, "renderer.js"), bundle: true, platform: "browser", format: "esm", jsx: "automatic",
+ define: { "process.env.NODE_ENV": '"production"' },
+ alias: {
+ "@pi-desktop/i18n": join(root, "packages/i18n/src"),
+ "@pi-desktop/shared": join(root, "packages/shared/src"),
+ react: join(root, "apps/desktop/node_modules/react"),
+ "react-dom": join(root, "apps/desktop/node_modules/react-dom"),
+ i18next: join(root, "apps/desktop/node_modules/i18next"),
+ "react-i18next": join(root, "apps/desktop/node_modules/react-i18next"),
+ },
+ nodePaths: [join(root, "apps/desktop/node_modules")],
+ });
+ await writeFile(join(temp, "index.html"), '<!doctype html><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src \'self\'; style-src \'self\' \'unsafe-inline\'"><link rel="stylesheet" href="renderer.css"><div id="root"></div><script type="module" src="renderer.js"></script>');
+ await writeFile(join(temp, "main.cjs"), `
+const { app, BrowserWindow } = require("electron");
+const path = require("node:path");
+app.setPath("userData", path.join(__dirname, "profile"));
+app.whenReady().then(async () => {
+ const win = new BrowserWindow({ show: false, width: 1000, height: 760,
+ webPreferences: { sandbox: true, contextIsolation: true, nodeIntegration: false, backgroundThrottling: false } });
+ try {
+ await win.loadFile(path.join(__dirname, "index.html"));
+ console.log("FALLBACK_PROBE " + JSON.stringify(await win.webContents.executeJavaScript("window.fallbackProbe()")));
+ app.exit(0);
+ } catch (error) { console.error(error?.stack ?? error); app.exit(1); }
+});`);
+ const env = { ...process.env };
+ delete env.ELECTRON_RUN_AS_NODE;
+ const child = spawn(resolveElectronBinary(root).electronBinary, [join(temp, "main.cjs")], { env, stdio: ["ignore", "pipe", "pipe"] });
+ let output = "";
+ for (const stream of [child.stdout, child.stderr]) {
+ stream.setEncoding("utf8");
+ stream.on("data", (chunk) => { output += chunk; });
+ }
+ const timer = setTimeout(() => child.kill("SIGKILL"), 45_000);
+ let code;
+ try {
+ code = await new Promise((resolve, reject) => { child.once("error", reject); child.once("close", resolve); });
+ } finally { clearTimeout(timer); }
+ assert.equal(code, 0, output.slice(-6000));
+ const line = output.split(/\r?\n/).find((item) => item.startsWith("FALLBACK_PROBE "));
+ assert.ok(line, output.slice(-6000));
+ assert.deepEqual(JSON.parse(line.slice("FALLBACK_PROBE ".length)), {
+ passed: true, saved: ["account-a/model", "deleted/model", "Other Workspace/model"],
+ });
+ } finally {
+ await rm(temp, { recursive: true, force: true });
+ }
+});
diff --git a/apps/desktop/test/subagent-models.test.mjs b/apps/desktop/test/subagent-models.test.mjs
index 83d8d2735..7b9ce5ca4 100644
--- a/apps/desktop/test/subagent-models.test.mjs
+++ b/apps/desktop/test/subagent-models.test.mjs
@@ -17,6 +17,7 @@ const {
groupSubagentModelChoices,
isSubagentModelProvider,
subagentModelChoices,
+ subagentModelDisplay,
subagentModelOrphanPin,
subagentModelPin,
subagentModelPinParts,
@@ -44,6 +45,43 @@ const provider = (over = {}) => ({
...over,
});
+test("saved model identity survives disable and re-enable without changing picker eligibility", () => {
+ const configured = provider();
+ const pin = "p1/claude-haiku-4-5";
+ const available = subagentModelDisplay(pin, [configured]);
+ assert.deepEqual(available, {
+ providerId: "p1", providerName: "Anthropic", modelId: "claude-haiku-4-5", status: "available",
+ });
+ const disabled = { ...configured, enabled: false };
+ assert.deepEqual(subagentModelDisplay(pin, [disabled]), { ...available, status: "disabled" });
+ assert.deepEqual(subagentModelChoices([disabled]), []);
+ assert.deepEqual(subagentModelDisplay(pin, [configured]), available);
+ assert.deepEqual(subagentModelDisplay(pin, [{ ...configured, hasSecret: false }]), { ...available, status: "unavailable" });
+});
+
+test("display resolution accepts unique legacy aliases and rejects ambiguous account identity", () => {
+ const first = provider({ name: "Shared Workspace", vendorKey: "custom" });
+ const second = provider({ id: "p2", name: "Shared Workspace", vendorKey: "custom", enabled: false });
+ assert.equal(subagentModelDisplay("Shared Workspace/claude-haiku-4-5", [first]).providerId, "p1");
+ assert.equal(subagentModelDisplay("Shared Workspace/claude-haiku-4-5", [first, second]), null);
+ assert.equal(subagentModelDisplay("p2/claude-haiku-4-5", [first, second]).providerId, "p2");
+ assert.equal(subagentModelDisplay("custom/claude-haiku-4-5", [first]), null);
+ const vendor = provider({ vendorKey: "shared_workspace", name: "Different", models: [] });
+ assert.equal(subagentModelDisplay("Shared Workspace/claude-haiku-4-5", [first, vendor]), null);
+ // An exact ID beats another provider's normalized name or vendor alias.
+ assert.equal(subagentModelDisplay("p1/claude-haiku-4-5", [first, provider({ id: "p2", name: "p1" })]).providerId, "p1");
+ assert.equal(subagentModelDisplay("Anthropic/CLAUDE-HAIKU-4-5", [provider()]).modelId, "claude-haiku-4-5");
+ assert.equal(subagentModelDisplay("anthropic/claude-haiku-4-5", [provider(), provider({ id: "p2", enabled: false })]), null);
+});
+
+test("missing providers and bindings preserve unresolved pins instead of inventing identity", () => {
+ assert.equal(subagentModelDisplay("deleted/claude-haiku-4-5", [provider()]), null);
+ assert.equal(subagentModelDisplay("p1/deleted-model", [provider()]), null);
+ assert.equal(subagentModelDisplay("not-a-pin", [provider()]), null);
+ const legacy = provider({ models: [], defaultModelId: "legacy-model", enabled: false });
+ assert.equal(subagentModelDisplay("p1/legacy-model", [legacy]).status, "disabled");
+});
+
test("a pin uses the vendor key a person would type, not the UUID", () => {
assert.equal(
subagentModelPin({ vendorKey: "anthropic", name: "Anthropic" }, "claude-haiku-4-5"),
diff --git a/docs/spec/03-runtime/13-model-catalog-and-selection.md b/docs/spec/03-runtime/13-model-catalog-and-selection.md
index 245e8c76f..1be12ad23 100644
--- a/docs/spec/03-runtime/13-model-catalog-and-selection.md
+++ b/docs/spec/03-runtime/13-model-catalog-and-selection.md
@@ -183,13 +183,21 @@ provider disappears from the picker.
The sheet also offers an ordered **Fallback models** list using that same
configured-model picker. Users can add, move up/down, or remove alternatives.
-Already-selected models are excluded from the add menu. Each saved row shows the
-configured provider display name and model ID when the catalog still contains it.
+Already-selected models are excluded from the add menu. Saved-row display
+identity is resolved from all configured providers, independently of which
+models are currently selectable. A configured provider keeps its display name
+and the saved model ID after it is disabled, with a localized disabled status;
+disabling it must not turn its label back into a raw provider UUID. Other
+unavailable bindings are marked unavailable. Exact stored provider IDs take
+precedence over aliases, and ambiguous aliases are not guessed. Only an
+unresolved provider or model binding retains the raw pin as its display label. The add
+menu continues to offer only the existing runnable model choices.
When selected fallback rows have the same visible label, resolved rows include
the provider ID; unresolved or same-provider duplicates include their position
-and stored pin instead. The stored pin is unchanged. Saved pins that become
-unavailable stay visible and removable; reopening or editing another field
-must not drop them. Clearing the list saves `fallbackModels: []`. Inherit-session
+and stored pin instead. Display labels and move/remove accessible names use
+the same resolved identity and status. The stored pin is unchanged. Saved pins
+that become unavailable stay visible and removable; reopening or editing another
+field must not drop them. Clearing the list saves `fallbackModels: []`. Inherit-session
remains a primary-only choice. The hint explains that alternatives run after
model retries fail, completed tool results are kept, and Stop cancels the whole
task. See runtime §5f and ADR subagent-model-fallback.
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 945ec6f30..85847e370 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -11536,7 +11536,16 @@ This test plan spec is accepted when:
while the saved pin still identifies the chosen provider. Add the second
provider with the same model ID and confirm both rows and their accessible
names include their provider IDs to distinguish them. Disable one provider
- and confirm its unavailable pin stays visible and removable.
+ and confirm its row and move/remove accessible names retain the configured
+ provider name and model ID, with a localized disabled status; the row must
+ not revert to a raw UUID label. Confirm the disabled provider is absent
+ from the add menu, while its saved row remains movable and removable.
+ Save and reopen, then re-enable the provider: its name remains visible,
+ the disabled status clears, and its stored pin is unchanged. A genuinely
+ missing or ambiguous provider binding keeps its raw pin with an unavailable
+ status rather than borrowing another provider's name. Reorder or remove
+ that row, save and reopen, and confirm all remaining pins and their order
+ are preserved exactly.
5. Confirm the picker offers no **Custom (provider/model)…** entry and the
field renders no free-text input, so a model id can only come from the
configured catalog. Switch the picker to **Inherit session model**, save,