From be832ff01b445a33e8f7279ff0aceaab0b97c577 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 4 Oct 2026 02:14:54 +0800 Subject: [PATCH] =?UTF-8?q?gui:=20pi-default-note's=20agents=20are=20conne?= =?UTF-8?q?cted,=20so=20their=20row=20pickers=20list=20every=20choice=20?= =?UTF-8?q?=E2=80=94=20#709's=20test=20was=20written=20against=20the=20row?= =?UTF-8?q?=20before=20=E3=80=8C=E6=8E=A5=E5=85=A5=E3=80=8D,=20where=20the?= =?UTF-8?q?=20model=20field=20stood=20in=20the=20row;=20now=20the=20model?= =?UTF-8?q?=20a=20connected=20agent=20starts=20on=20is=20picked=20beside?= =?UTF-8?q?=20its=20switch,=20and=20Default=20there=20says=20Pi=20picks=20?= =?UTF-8?q?the=20model=20itself,=20as=20before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/gui/tests/pi-default-note.test.cjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/gui/tests/pi-default-note.test.cjs b/internal/gui/tests/pi-default-note.test.cjs index 4696e6dd..4369d888 100644 --- a/internal/gui/tests/pi-default-note.test.cjs +++ b/internal/gui/tests/pi-default-note.test.cjs @@ -5,7 +5,8 @@ // a model Pi would keep. Pi's and OmO's Default says it clears the default // and Pi picks one itself; other agents' says what it said. Pi's // openai-codex models are rows of their own beside openai's of the same -// name. In English and Chinese; no backend, the API is faked here. +// name. Both connected to magpie, so the pickers in their rows list every +// choice there is. In English and Chinese; no backend, the API is faked here. const assert = require("node:assert/strict"); const fs = require("node:fs/promises"); const path = require("node:path"); @@ -17,11 +18,12 @@ const piOptions = [ { value: "openai/gpt-6-astra", note: "GPT-6 Astra", group: "OpenAI" }, { value: "openai-codex/gpt-6-astra", note: "GPT-6 Astra", group: "OpenAI Codex" }, { value: "openai-codex/gpt-5.5", note: "GPT-5.5", group: "OpenAI Codex" }, + { value: "magpie/relay/m1", label: "m1", ref: "relay/m1", note: "Relay · via magpie" }, ]; const state = { agents: [ - { id: "pi", name: "Pi", icon: "generic", path: "/fixture/pi", fields: [{ key: "model", label: "model", value: "openai/gpt-6-astra", options: piOptions }] }, - { id: "claude", name: "Claude Code", icon: "generic", path: "/fixture/claude", fields: [{ key: "model", label: "model", value: "opus", options: [{ value: "opus" }, { value: "sonnet" }] }] }, + { id: "pi", name: "Pi", icon: "generic", path: "/fixture/pi", wired: true, fields: [{ key: "model", label: "model", value: "openai/gpt-6-astra", options: piOptions }] }, + { id: "claude", name: "Claude Code", icon: "generic", path: "/fixture/claude", wired: true, fields: [{ key: "model", label: "model", value: "opus", options: [{ value: "opus" }, { value: "sonnet" }, { value: "relay/m1", label: "m1", ref: "relay/m1", note: "Relay · via magpie" }] }] }, ], profiles: [], };