Skip to content

Text content blocks must contain non-whitespace text #1681

@IshanArya

Description

@IshanArya

I am running the Claude Pro Max model with Opencode. Whenever I try to run /compact , I get the error:

AI_APICallError: system: text content blocks must contain non-whitespace text

And this ruins the formatting of the opencode terminal so I have to restart the command prompt. Eventually this makes opencode unusable because the auto-compact doesn't seem to work either.

I think the error originates from node_modules/@ai-sdk/provider/dist/index.js:62:5 .
At least, that is the minimal error I can see in the messed up opencode terminal.

Any thoughts?

Image

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