mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 11:16:46 +00:00
core: hide internal agents from desktop agent selector
This commit is contained in:
@@ -78,7 +78,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const agent = (() => {
|
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<{
|
const [store, setStore] = createStore<{
|
||||||
current: string
|
current: string
|
||||||
}>({
|
}>({
|
||||||
|
|||||||
@@ -1295,12 +1295,12 @@ export namespace SessionPrompt {
|
|||||||
input.history.filter((m) => m.info.role === "user" && !m.parts.every((p) => "synthetic" in p && p.synthetic))
|
input.history.filter((m) => m.info.role === "user" && !m.parts.every((p) => "synthetic" in p && p.synthetic))
|
||||||
.length === 1
|
.length === 1
|
||||||
if (!isFirst) return
|
if (!isFirst) return
|
||||||
const agent = await Agent.get("summary")
|
const agent = await Agent.get("title")
|
||||||
if (!agent) return
|
if (!agent) return
|
||||||
const result = await LLM.stream({
|
const result = await LLM.stream({
|
||||||
agent,
|
agent,
|
||||||
user: input.message.info as MessageV2.User,
|
user: input.message.info as MessageV2.User,
|
||||||
system: [agent.prompt!],
|
system: [],
|
||||||
small: true,
|
small: true,
|
||||||
tools: {},
|
tools: {},
|
||||||
model: await iife(async () => {
|
model: await iife(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user