fix(coding-agent): removed system-reminder wrapper from file context

- Sent file contents as plain text instead of wrapping in `` tags.
- Joined file entries with single newlines instead of double.
This commit is contained in:
can1357
2026-06-08 05:15:18 +02:00
parent 0e78cac716
commit e1e75526d9
@@ -564,10 +564,8 @@ export function convertToLlm(messages: AgentMessage[]): Message[] {
const inner = file.content ? `\n${file.content}\n` : "\n";
return `<file path="${file.path}">${inner}</file>`;
})
.join("\n\n");
const content: (TextContent | ImageContent)[] = [
{ type: "text" as const, text: `<system-reminder>\n${fileContents}\n</system-reminder>` },
];
.join("\n");
const content: (TextContent | ImageContent)[] = [{ type: "text" as const, text: fileContents }];
for (const file of m.files) {
if (file.image) {
content.push(file.image);