Skip to content

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

refactor: update subagent model-choice source assertions for the image-binding argument

koeria59849e322971
diff --git a/apps/desktop/test/subagent-editor-presets.test.mjs b/apps/desktop/test/subagent-editor-presets.test.mjs
index 5841a4dd4..37bb842b2 100644
--- a/apps/desktop/test/subagent-editor-presets.test.mjs
+++ b/apps/desktop/test/subagent-editor-presets.test.mjs
@@ -95,7 +95,7 @@ test("the editor can prefill a create draft from a catalog definition", () => {
test("the model picker uses the configured provider catalog", () => {
// The picker uses the shared provider catalog and preserves an existing
// orphan pin instead of silently changing it to session inheritance.
- assert.match(editorSource, /subagentModelChoices\(providers\)/);
+ assert.match(editorSource, /subagentModelChoices\(providers, imageGenerationBindings\(/);
assert.match(editorSource, /groupSubagentModelChoices\(modelChoices\)/);
assert.match(editorSource, /subagentModelOrphanPin\(draft\.model, modelChoices\)/);
});
@@ -116,7 +116,7 @@ test("the model picker keeps existing pins visible", async () => {
test("the model picker offers every configured provider model, with no free-text path", () => {
// The picker is the only way to set a model: every option comes from the
// configured provider catalog, so a saved pin is always resolvable.
- assert.match(editorSource, /subagentModelChoices\(providers\)/);
+ assert.match(editorSource, /subagentModelChoices\(providers, imageGenerationBindings\(/);
assert.match(editorSource, /groupSubagentModelChoices\(modelChoices\)/);
assert.match(editorSource, /subagentModelOrphanPin\(draft\.model, modelChoices\)/);
assert.doesNotMatch(editorSource, /CUSTOM_SUBAGENT_MODEL_VALUE/);
diff --git a/apps/desktop/test/subagent-models.test.mjs b/apps/desktop/test/subagent-models.test.mjs
index 7b9ce5ca4..8a09f26a0 100644
--- a/apps/desktop/test/subagent-models.test.mjs
+++ b/apps/desktop/test/subagent-models.test.mjs
@@ -334,7 +334,7 @@ test("the editor model field is a configured-only searchable picker with an empt
// No hand-typed model id: the field never renders a free-text input.
assert.doesNotMatch(modelField, /<Input/);
assert.doesNotMatch(modelField, /modelPickCustom/);
- assert.match(source, /subagentModelChoices\(providers\)/);
+ assert.match(source, /subagentModelChoices\(providers, imageGenerationBindings\(/);
assert.match(source, /resetSubagentTemplate\(draft\)/);
});