Skip to content

Bug : Can't make new sessions #147

@JonathanRiche

Description

@JonathanRiche

Any time I try to make a new session i get this error: AI_APICallError: A maximum of 4 blocks with cache_control may be provided. Found 5

I see the following logs when I run --print-logs

2025-06-16T18:25:55 +40ms service=default version=0.1.59 args=--print-logs opencode
2025-06-16T18:25:55 +0ms service=app cwd=/home/rtg/development/blinkx-projects/ai-worker creating
2025-06-16T18:25:55 +3ms service=app git=/home/rtg/development/blinkx-projects/ai-worker git
2025-06-16T18:25:55 +6ms service=app name=provider registering service
2025-06-16T18:25:55 +1ms service=app name=config registering service
2025-06-16T18:25:55 +2ms service=config path=/home/rtg/development/blinkx-projects/ai-worker/opencode.json found
2025-06-16T18:25:55 +0ms service=config $schema=http://opencode.ai/config.json loaded
2025-06-16T18:25:55 +1ms service=models.dev refreshing
2025-06-16T18:25:55 +0ms service=provider init
2025-06-16T18:25:55 +2ms service=provider providerID=groq found
2025-06-16T18:25:55 +0ms service=provider providerID=anthropic found
2025-06-16T18:25:55 +0ms service=provider providerID=openai found
2025-06-16T18:25:55 +0ms service=app name=share registering service
2025-06-16T18:25:55 +0ms service=bus type=storage.write subscribing
2025-06-16T18:25:55 +0ms service=app name=bus registering service
2025-06-16T18:25:55 +34ms service=server method=GET path=/event request
2025-06-16T18:25:55 +0ms service=server event connected
2025-06-16T18:25:55 +2ms service=bus type=* subscribing
2025-06-16T18:25:55 +1ms service=server duration=3 response
2025-06-16T18:25:55 +1ms service=server method=POST path=/file_search request
2025-06-16T18:25:55 +6ms service=server method=POST path=/path_get request
                                                                          2025-06-16T18:25:55 +0ms service=server duration=0 response
                                                                                                                                     2025-06-16T18:25:55 +4ms service=server duration=10 response
                                                       2025-06-16T18:25:55 +1ms service=server method=POST path=/provider_list request
                                                                                                                                      2025-06-16T18:25:55 +1ms service=server duration=1 response
                                                       2025-06-16T18:27:06 +65144ms service=bus type=* unsubscribing
2025-06-16T18:27:06 +0ms service=server event disconnected
2025-06-16T18:27:06 +0ms service=app name=mcp shutdown

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions