Skip to content

Commit 166d88b

Browse files
cyrusagentclaude
andcommitted
fix: Use plain systemPrompt for Slack sessions to avoid empty text block error
The claude_code preset constructs context blocks (CLAUDE.md, git status) that are empty in Slack's non-git empty workspace directories, causing "cache_control cannot be set for empty text blocks" API errors. Using a direct systemPrompt string bypasses the preset entirely. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 086cd8f commit 166d88b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/edge-worker/src/EdgeWorker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ ${taskInstructions}
13701370
allowedDirectories: [session.workspace.path],
13711371
workspaceName: session.issue?.identifier || session.issueId,
13721372
cyrusHome: this.cyrusHome,
1373-
appendSystemPrompt: systemPrompt,
1373+
systemPrompt,
13741374
model: this.config.defaultModel,
13751375
fallbackModel: this.config.defaultFallbackModel,
13761376
logger: this.logger.withContext({
@@ -1443,7 +1443,7 @@ ${taskInstructions}
14431443
workspaceName:
14441444
existingSession.issue?.identifier || existingSession.issueId,
14451445
cyrusHome: this.cyrusHome,
1446-
appendSystemPrompt: this.buildSlackSystemPrompt(event),
1446+
systemPrompt: this.buildSlackSystemPrompt(event),
14471447
model: this.config.defaultModel,
14481448
fallbackModel: this.config.defaultFallbackModel,
14491449
resumeSessionId,

0 commit comments

Comments
 (0)