mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
test: align rebased runtime defaults
This commit is contained in:
@@ -180,7 +180,7 @@ describe("resolvePdfModelConfigForTool", () => {
|
||||
} as OpenClawConfig;
|
||||
|
||||
expect(resolvePdfModelConfigForTool({ cfg, agentDir: TEST_AGENT_DIR })).toEqual({
|
||||
primary: "openai/gpt-5.4-mini",
|
||||
primary: "openai/gpt-5.5",
|
||||
fallbacks: ["minimax/MiniMax-M2.7", "minimax-portal/MiniMax-M2.7"],
|
||||
});
|
||||
});
|
||||
|
||||
@@ -31,6 +31,7 @@ export const DEFAULT_HEARTBEAT_ACK_MAX_CHARS = 300;
|
||||
* A file is considered effectively empty if it contains only:
|
||||
* - Whitespace / empty lines
|
||||
* - Markdown ATX headers (`#`, `##`, ...)
|
||||
* - One-line HTML comments (`<!-- ... -->`)
|
||||
* - Markdown fence markers such as ``` or ```markdown
|
||||
* - Empty list item stubs (`- `, `- [ ]`, `* `, `+ `)
|
||||
*
|
||||
@@ -58,6 +59,9 @@ export function isHeartbeatContentEffectivelyEmpty(content: string | undefined |
|
||||
if (/^#+(\s|$)/.test(trimmed)) {
|
||||
continue;
|
||||
}
|
||||
if (/^<!--.*-->$/.test(trimmed)) {
|
||||
continue;
|
||||
}
|
||||
// Skip empty markdown list items like "- [ ]" or "* [ ]" or just "- "
|
||||
if (/^[-*+]\s*(\[[\sXx]?\]\s*)?$/.test(trimmed)) {
|
||||
continue;
|
||||
|
||||
@@ -208,6 +208,8 @@ Add short tasks below the comments only when you want the agent to check somethi
|
||||
|
||||
await expect(fs.readFile(heartbeatPath, "utf-8")).resolves.toBe(
|
||||
`${[
|
||||
"<!-- Heartbeat template; comments-only content prevents scheduled heartbeat API calls. -->",
|
||||
"",
|
||||
"# Keep this file empty (or with only comments) to skip heartbeat API calls.",
|
||||
"",
|
||||
"# Add tasks below when you want the agent to check something periodically.",
|
||||
|
||||
Reference in New Issue
Block a user