Skip to content

Are interrupted messages lost from the context? #2171

@remorses

Description

@remorses

I think currently opencode will not add the interrupted assistant messages in the conversation, meaning that any action taken by opencode in the aborted message will not be in context. Is this the case?

If this is a limitation of the ai sdk I have a PR open that should fix issues like these. My PR will make sure that onFinish is called on aborted requests and that you can use convertToModelMessages on interrupted messages

vercel/ai#7902

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