Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/opencode/src/session/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export namespace SessionPrompt {
{
type: "text",
text: template,
synthetic: true,
},
]
const files = ConfigMarkdown.files(template)
Expand Down Expand Up @@ -1941,7 +1942,15 @@ NOTE: At any point in time through this workflow you should feel free to ask the
prompt: templateParts.find((y) => y.type === "text")?.text ?? "",
},
]
: [...templateParts, ...(input.parts ?? [])]
: [
...templateParts,
{
type: "text" as const,
text: `Running skill: ${input.command}`,
ignored: true,
},
...(input.parts ?? []),
]

const userAgent = isSubtask ? (input.agent ?? (await Agent.defaultAgent())) : agentName
const userModel = isSubtask
Expand Down
Loading