mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 05:41:24 +00:00
test: expand prompt and update hint coverage
This commit is contained in:
@@ -48,6 +48,9 @@ describe("buildAgentSystemPrompt", () => {
|
||||
expect(prompt).not.toContain("## Silent Replies");
|
||||
expect(prompt).not.toContain("## Heartbeats");
|
||||
expect(prompt).toContain("## Safety");
|
||||
expect(prompt).toContain(
|
||||
"For long waits, avoid rapid poll loops: use exec with enough yieldMs or process(action=poll, timeout=<ms>).",
|
||||
);
|
||||
expect(prompt).toContain("You have no independent goals");
|
||||
expect(prompt).toContain("Prioritize safety and human oversight");
|
||||
expect(prompt).toContain("if instructions conflict");
|
||||
|
||||
Reference in New Issue
Block a user