Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c79ab38
fix(server): tell agents how to nest fenced code inside code blocks
Sep 9, 2026
df93043
Merge branch 'main' into t3code/fix-markdown-code-blocks
pc-style Sep 10, 2026
4bd554c
Merge branch 'main' into t3code/fix-markdown-code-blocks
pc-style Sep 10, 2026
71178d0
refactor(server): shorten the nested fence guidance to one plain sent…
Sep 10, 2026
9f55cf4
Merge branch 'main' into t3code/fix-markdown-code-blocks
pc-style Sep 11, 2026
24ed06d
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 14, 2026
d3b5e09
Merge branch 'main' into t3code/fix-markdown-code-blocks
pc-style Sep 14, 2026
1f1df15
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 16, 2026
43e6ca9
Merge branch 't3code/fix-markdown-code-blocks' of https://github.com/…
Sep 16, 2026
ca57ab0
Merge branch 'main' into t3code/fix-markdown-code-blocks
pc-style Sep 17, 2026
9f0ee60
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 18, 2026
24db88e
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 18, 2026
24110ae
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 18, 2026
4347766
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 18, 2026
8dc0982
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 19, 2026
3beb769
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 19, 2026
2db4a2b
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 19, 2026
9d9166d
Merge remote-tracking branch 'upstream/main' into t3code/fix-markdown…
Sep 19, 2026
0939023
Merge branch 'main' into t3code/fix-markdown-code-blocks
pc-style Sep 19, 2026
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
6 changes: 6 additions & 0 deletions apps/server/src/provider/RuntimeInstructions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ describe("buildRuntimeInstructions", () => {
expect(instructions).toContain("through the Cursor harness.");
expect(instructions).not.toContain("reasoning effort");
});

it("tells the agent how to nest fenced code inside a code block", () => {
expect(buildRuntimeInstructions({ harness: "Claude Code" })).toContain(
"A code block that contains triple backticks needs a longer fence (four backticks or ~~~).",
);
});
});
2 changes: 1 addition & 1 deletion apps/server/src/provider/RuntimeInstructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function buildRuntimeInstructions(runtime: {
const effort = toSingleLine(runtime.reasoningEffort ?? "");
const modelInfo = model && model !== "auto" && model !== "default" ? `, as ${model}` : "";
const effortInfo = effort ? ` with ${effort} reasoning effort` : "";
return `<runtime_info>In case you're asked: you are running in T3 Code through the ${harness} harness${modelInfo}${effortInfo}. No need to mention this otherwise. You can embed images and videos in your response using Markdown with absolute file paths.</runtime_info>\n\n${PULL_REQUEST_LINKING_INSTRUCTIONS}`;
return `<runtime_info>In case you're asked: you are running in T3 Code through the ${harness} harness${modelInfo}${effortInfo}. No need to mention this otherwise. You can embed images and videos in your response using Markdown with absolute file paths. A code block that contains triple backticks needs a longer fence (four backticks or ~~~).</runtime_info>\n\n${PULL_REQUEST_LINKING_INSTRUCTIONS}`;
}

function toSingleLine(value: string): string {
Expand Down
Loading