Commit 166d88b
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1370 | 1370 | | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | | - | |
| 1373 | + | |
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
| |||
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | | - | |
| 1446 | + | |
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
| |||
0 commit comments