fix: stabilize slack http receiver import

This commit is contained in:
Peter Steinberger committed 2026-01-18 15:44:17 +00:00
1 parent c11b016d22
commit b546b2a48d
7 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ export async function runCliAgent(params: {
extraSystemPrompt,
ownerNumbers: params.ownerNumbers,
heartbeatPrompt,
docsPath,
docsPath: docsPath ?? undefined,
tools: [],
contextFiles,
modelDisplay,
+1 -1
View File
@@ -268,7 +268,7 @@ export async function compactEmbeddedPiSession(params: {
? resolveHeartbeatPrompt(params.config?.agents?.defaults?.heartbeat?.prompt)
: undefined,
skillsPrompt,
docsPath,
docsPath: docsPath ?? undefined,
promptMode,
runtimeInfo,
sandboxInfo,
+1 -1
View File
@@ -235,7 +235,7 @@ export async function runEmbeddedAttempt(
? resolveHeartbeatPrompt(params.config?.agents?.defaults?.heartbeat?.prompt)
: undefined,
skillsPrompt,
docsPath,
docsPath: docsPath ?? undefined,
reactionGuidance,
promptMode,
runtimeInfo,
+1 -2
View File
@@ -97,7 +97,6 @@ describe("buildAgentSystemPrompt", () => {
"Use `Read` to load the SKILL.md at the location listed for that skill.",
);
expect(prompt).toContain("Clawdbot docs: /tmp/clawd/docs");
expect(prompt).toContain("read the docs first using `Read`");
});
it("includes docs guidance when docsPath is provided", () => {
@@ -109,7 +108,7 @@ describe("buildAgentSystemPrompt", () => {
expect(prompt).toContain("## Documentation");
expect(prompt).toContain("Clawdbot docs: /tmp/clawd/docs");
expect(prompt).toContain(
"When a user asks about Clawdbot behavior, commands, config, or architecture",
"For Clawdbot behavior, commands, config, or architecture: consult local docs first.",
);
});