fix: always include long-wait polling guidance in prompt

This commit is contained in:
Peter Steinberger
2026-02-16 03:51:32 +01:00
parent abd26b6e54
commit 17a148c8a8
2 changed files with 4 additions and 1 deletions

View File

@@ -120,6 +120,9 @@ describe("buildAgentSystemPrompt", () => {
workspaceDir: "/tmp/openclaw",
});
expect(prompt).toContain(
"For long waits, avoid rapid poll loops: use exec with enough yieldMs or process(action=poll, timeout=<ms>).",
);
expect(prompt).toContain("Completion is push-based: it will auto-announce when done.");
expect(prompt).toContain("Do not poll `subagents list` / `sessions_list` in a loop");
});