claude-code
claude-code copied to clipboard
[BUG] SDK-Agent don't start because license agreement is requested
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When running agents using the agent-sdk I randomly get errors because the "license changes from october 8th 2025 must be confirmend". The agents don't boot and crash the whole agent pipeline. I have accepted those terms multiple times, this message shouldn't appear. I use "setting-sources". MacOS 15.4, zsh, brew installation
What Should Happen?
agent should boot normaly in non-interactive mode
Error Messages/Logs
{"timestamp": "2026-01-10T19:27:16.958532", "agent_name": "Analysis-Generator", "agent_type": "generator", "level": "info", "message": "Starting execution", "inputs": ["statistics_report", "run_log_path", "workspace_path", "human_spec"], "backend": "claude"}
{"timestamp": "2026-01-10T19:27:16.960198", "agent_name": "Analysis-Generator", "agent_type": "generator", "level": "info", "message": "Built prompt (29105 chars)"}
{"timestamp": "2026-01-10T19:27:26.036771", "agent_name": "Analysis-Generator", "agent_type": "generator", "level": "info", "message": "Received: [stderr] \n[ACTION REQUIRED] An update to our Consumer Terms and Privacy Policy has taken effect on October 8, 2025. You must run `claude` to review the updated terms."}
Fatal error in message reader: Command failed with exit code 1 (exit code: 1)
Error output: Check stderr output for details
{"timestamp": "2026-01-10T19:27:26.848730", "agent_name": "Analysis-Generator", "agent_type": "generator", "level": "error", "message": "Execution failed: Execution failed: Command failed with exit code 1 (exit code: 1)\nError output: Check stderr output for details\n\nCLI stderr (1 lines, last 1 shown):\n\n[ACTION REQUIRED] An update to our Consumer Terms and Privacy Policy has taken effect on October 8, 2025. You must run `claude` to review the updated terms.", "error_type": "AgentExecutionError", "metrics": {"input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "cache_creation_tokens": 0, "cache_read_tokens": 0, "cost_usd": 0.0, "tool_calls": 0, "tool_call_names": [], "tool_executions": [], "turns": 0, "model": null, "duration_ms": 0, "duration_api_ms": 0, "errors": 1, "execution_time": 9.890212774276733, "start_time": 1768073236.958508}}
{"timestamp": "2026-01-10T19:27:26.848835", "loop_name": "Analysis-Loop", "iteration": 1, "level": "error", "message": "Loop failed: Generator 'analysis_generator' failed: Generator 'analysis_generator' failed: Execution failed: Command failed with exit code 1 (exit code: 1)\nError output: Check stderr output for details\n\nCLI stderr (1 lines, last 1 shown):\n\n[ACTION REQUIRED] An update to our Consumer Terms and Privacy Policy has taken effect on October 8, 2025. You must run `claude` to review the updated terms."}
{"timestamp": "2026-01-10T19:27:26.902181", "loop_name": "Analysis-Loop", "iteration": 1, "level": "info", "message": "Git workflow: Cleaned up run/2026-01-10-human-spec-i18n-41800c/loop-008 (not accepted)"}
{"timestamp": "2026-01-10T19:27:26.933587", "run_id": "2026-01-10-human-spec-i18n-41800c", "level": "info", "message": "Loop completed: Analysis-Loop", "status": "error", "iterations": 0, "tokens": 0, "cost_usd": 0}
[ERROR] Generator 'analysis_generator' failed: Generator 'analysis_generator' failed: Execution failed: Command failed with exit code 1 (exit code: 1)
Error output: Check stderr output for details
CLI stderr (1 lines, last 1 shown):
[ACTION REQUIRED] An update to our Consumer Terms and Privacy Policy has taken effect on October 8, 2025. You must run `claude` to review the updated terms.
{"timestamp": "2026-01-10T19:27:26.963265", "run_id": "2026-01-10-human-spec-i18n-41800c", "level": "info", "message": "Step 7 completed: Analysis", "status": "error", "iterations": 0, "tokens": 0}
Steps to Reproduce
run any agent with agent-sdk
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.76
Claude Code Version
2.1.3
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response