feat(coding-agent): reframed interrupted thinking prompt template

- Reframe interrupted-thinking prompt template to present preserved text as a natural user interruption.
- Update interrupted thinking session tests to match the new prompt format.
This commit is contained in:
can1357
2026-08-13 02:09:09 +02:00
parent dc283c0deb
commit 2f68fa6ebe
3 changed files with 6 additions and 8 deletions
@@ -160,8 +160,8 @@ describe("AgentSession interrupted thinking persistence", () => {
expect(hidden).toBeDefined();
expect(hidden?.display).toBe(false);
expect(hidden?.attribution).toBe("agent");
expect(typeof hidden?.content === "string" ? hidden.content : JSON.stringify(hidden?.content)).toContain(
REASONING_TEXT,
expect(typeof hidden?.content === "string" ? hidden.content : JSON.stringify(hidden?.content)).toBe(
`You were saying this but I interrupted you:\n\`\`\`\n${REASONING_TEXT}\n\`\`\``,
);
expect(hidden?.details).toMatchObject({
provider: "anthropic",