My organization recently switched over to Enterprise Accounts and And now the session summary always fails because of the bare flag isn't compatible. In other steps, there is a fallback, but not for the session summary generation.
🗂️ Generating session summary...
🤖 ...⚠️ Failed to generate session summary: Claude CLI error: Command failed with exit code 1: claude --bare --settings
---
Command:
claude --bare --settings [REDACTED] -p --output-format stream-json --verbose --model sonnet --add-dir [REDACTED] --no-session-persistence --resume [REDACTED]
Relevant output:
{"type":"assistant","content":[{"type":"text","text":"Invalid API key · Fix external API key"}],"error":"authentication_failed"}
{"type":"result","is_error":true,"api_error_status":401,"result":"Invalid API key · Fix external API key","terminal_reason":"completed"}
Environment:
Claude Code version: 2.1.159
Model: claude-sonnet-4-6
My organization recently switched over to Enterprise Accounts and And now the session summary always fails because of the bare flag isn't compatible. In other steps, there is a fallback, but not for the session summary generation.