From d4ae130ccd4108c7a06c93260ba03b08a5f97356 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 12 Sep 2026 17:56:38 -0500 Subject: [PATCH] test: expect current task briefs in Codex resume prompts Co-Authored-By: Paperclip --- server/src/__tests__/codex-local-execute.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/__tests__/codex-local-execute.test.ts b/server/src/__tests__/codex-local-execute.test.ts index 22c3463266..2d85c3e54b 100644 --- a/server/src/__tests__/codex-local-execute.test.ts +++ b/server/src/__tests__/codex-local-execute.test.ts @@ -1301,7 +1301,7 @@ process.exit(1); }, context: { conversationMode, - paperclipTaskMarkdown: `Full description that must not replay\n${policy}`, + paperclipTaskMarkdown: `Current task description\n${policy}`, paperclipTaskMarkdownCompact: policy, issueId: "issue-1", taskId: "issue-1", @@ -1357,9 +1357,8 @@ process.exit(1); expect(capture.prompt).toContain("Second comment"); expect(capture.prompt).toContain(policy); expect(invocationPrompt).toContain(policy); - if (resumedSession) expect(capture.prompt).not.toContain("Full description that must not replay"); - else expect(capture.prompt).toContain("Full description that must not replay"); - expect(promptMetrics.taskContextChars).toBe(resumedSession ? policy.length : `Full description that must not replay\n${policy}`.length); + expect(capture.prompt).toContain("Current task description"); + expect(promptMetrics.taskContextChars).toBe(`Current task description\n${policy}`.length); if (conversationMode) { expect(invocationPrompt).toContain(AGENT_CHAT_DIRECTIVE); expect(invocationPrompt).toContain("baseRevisionId set to that latestRevisionId");