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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user