Skip to content

Commit 82ff539

Browse files
committed
feat: better prompt
1 parent 922063f commit 82ff539

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

registry/coder-labs/modules/codex/main.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ describe("codex", async () => {
264264
"-c",
265265
`cat /home/coder/.codex-module/agentapi-start.log`,
266266
]);
267-
expect(resp.stdout).toContain(
268-
`Complete the task at hand and at every step of the way, report tasks to Coder with proper summary and statuses. Your task at hand: ${prompt}`,
269-
);
267+
expect(resp.stdout).toContain(prompt);
270268
});
271269

272270
test("start-without-prompt", async () => {

registry/coder-labs/modules/codex/scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi
5858

5959
if [ -n "$ARG_CODEX_TASK_PROMPT" ]; then
6060
printf "Running the task prompt %s\n" "$ARG_CODEX_TASK_PROMPT"
61-
PROMPT="Complete the task at hand and at every step of the way, report tasks to Coder with proper summary and statuses. Your task at hand: $ARG_CODEX_TASK_PROMPT"
61+
PROMPT="Complete the task at hand in one go. Every step of the way, report your progress using coder_report_task tool with proper summary and statuses. Your task at hand: $ARG_CODEX_TASK_PROMPT"
6262
CODEX_ARGS+=("$PROMPT")
6363
else
6464
printf "No task prompt given.\n"

0 commit comments

Comments
 (0)