feat(core): restore per-request system prompt (#34335)

This commit is contained in:
Kit Langton
2026-06-28 14:02:46 -04:00
committed by GitHub
parent 94e3a29d2f
commit 04c6bed240
9 changed files with 103 additions and 2 deletions
+1
View File
@@ -492,6 +492,7 @@ const resolvePrompt = (input: PromptInput.Prompt) =>
Prompt.make({
text: input.text,
agents: input.agents,
system: input.system,
files: input.files?.map((file) => {
const dataMime = file.uri.match(/^data:([^;,]+)[;,]/i)?.[1]
const target = URL.canParse(file.uri) ? new URL(file.uri).pathname : (file.name ?? file.uri)