Skip to content

Are interrupted messages lost from the context? #2171

Closed

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

Activity

  1. rekram1-node commented on Aug 22, 2025

    @rekram1-node
    Contributor

    I think this is a limitation of ai sdk

  2. thdxr commented on Aug 27, 2025

    @thdxr
    Member

    hm this shouldn't be the case, we're saving history as stuff comes in

  3. remorses commented on Aug 27, 2025

    @remorses
    ContributorAuthor

    Yes I tried just now and it was remembering the previous messages. When I opened this issue it looked like it was not remembering anything, not sure why, maybe related to tool calls. If i reproduce this again will reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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