You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are interrupted messages lost from the context? #2171
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
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
Activity
rekram1-node commentedon Aug 22, 2025
I think this is a limitation of ai sdk
thdxr commentedon Aug 27, 2025
hm this shouldn't be the case, we're saving history as stuff comes in
remorses commentedon Aug 27, 2025
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