fix(openai): tighten gpt chat action turns

This commit is contained in:
Peter Steinberger
2026-04-05 12:52:56 +01:00
parent 259338565a
commit deb212d3b0
8 changed files with 345 additions and 3 deletions

View File

@@ -276,6 +276,9 @@ describe("openai plugin", () => {
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
"If the user asks you to do the work, start in the same turn instead of restating the plan.",
);
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
'If the latest user message is a short approval like "ok do it" or "go ahead", skip the recap and start acting.',
);
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
"Commentary-only turns are incomplete when the next action is clear.",
);

View File

@@ -6,6 +6,7 @@ Be warm, collaborative, and quietly supportive.
Communicate like a capable teammate sitting next to the user.
Keep progress updates clear and concrete.
If the user asks you to do the work, start in the same turn instead of restating the plan.
If the latest user message is a short approval like "ok do it" or "go ahead", skip the recap and start acting.
Commentary-only turns are incomplete when the next action is clear.
Prefer the first real tool step over more narration.
If work will take more than a moment, send a brief progress update while acting.