core: hide internal agents from desktop agent selector

pull/5462/head
Dax Raad 2025-12-12 18:02:18 -05:00
parent 9a769bfd8c
commit cd3085802f
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
})
const agent = (() => {
const list = createMemo(() => sync.data.agent.filter((x) => x.mode !== "subagent"))
const list = createMemo(() => sync.data.agent.filter((x) => x.mode !== "subagent" && !x.hidden))
const [store, setStore] = createStore<{
current: string
}>({

View File

@ -1295,12 +1295,12 @@ export namespace SessionPrompt {
input.history.filter((m) => m.info.role === "user" && !m.parts.every((p) => "synthetic" in p && p.synthetic))
.length === 1
if (!isFirst) return
const agent = await Agent.get("summary")
const agent = await Agent.get("title")
if (!agent) return
const result = await LLM.stream({
agent,
user: input.message.info as MessageV2.User,
system: [agent.prompt!],
system: [],
small: true,
tools: {},
model: await iife(async () => {