Skip to content

Commit 934c5b6

Browse files
committed
Update handoff prompt wording and tests
1 parent 3f3c3f2 commit 934c5b6

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

ai-code-task.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,9 @@ Return the relevant file paths, matched excerpts, and a concise summary."
282282
"Build a prompt to load handoff CONTENT.
283283
WHOLE-FILE-P controls whether CONTENT came from the whole task file."
284284
(format
285-
"Use this %s as portable agent handoff context for the current task.\n\
286-
Continue from the state described here. Treat it as backend-neutral context,
287-
not as a transcript to replay. Before making changes, restate the next action
288-
you plan to take.\n\n%s"
285+
"Load this %s as portable agent handoff context for future work on the current task.\n\
286+
Continue from the state described here. Treat it as backend-neutral reference
287+
context, not as a transcript to replay. Do not make any code change.\n\n%s"
289288
(if whole-file-p "whole task file" "agent handoff context")
290289
content))
291290

test/test_ai-code-task.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
(lambda (_label prompt)
321321
(setq sent-prompt prompt))))
322322
(ai-code-agent-handoff nil)))
323-
(should (string-match-p "Use this agent handoff context" sent-prompt))
323+
(should (string-match-p "Load this agent handoff context" sent-prompt))
324324
(should (string-match-p "Goal: finish backend-neutral handoff" sent-prompt))
325325
(should
326326
(string-match-p
@@ -342,7 +342,7 @@
342342
(lambda (_label prompt)
343343
(setq sent-prompt prompt))))
344344
(ai-code-agent-handoff '(4))))
345-
(should (string-match-p "Use this whole task file" sent-prompt))
345+
(should (string-match-p "Load this whole task file" sent-prompt))
346346
(should (string-match-p "Build handoff support" sent-prompt))
347347
(should (string-match-p "Carry all task notes forward" sent-prompt))))
348348

0 commit comments

Comments
 (0)