Skip to content

Commit 882426b

Browse files
committed
Title agent do not use user supplied prompt
1 parent 951d6b1 commit 882426b

File tree

1 file changed

+2
-2
lines changed
  • packages/opencode/src/session

1 file changed

+2
-2
lines changed

packages/opencode/src/session/llm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export namespace LLM {
7474
...(input.agent.prompt ? [input.agent.prompt] : isCodex ? [] : SystemPrompt.provider(input.model)),
7575
// any custom prompt passed into this call
7676
...input.system,
77-
// any custom prompt from last user message
78-
...(input.user.system ? [input.user.system] : []),
77+
// any custom prompt from last user message (skip for title agent)
78+
...(input.user.system && input.agent.name !== "title" ? [input.user.system] : []),
7979
]
8080
.filter((x) => x)
8181
.join("\n"),

0 commit comments

Comments
 (0)