opencode-pty icon indicating copy to clipboard operation
opencode-pty copied to clipboard

[Bug]: Pty result injection drops session into Plan mode

Open JosXa opened this issue 9 months ago • 2 comments

I don't know if this is an OpenCode-related issue or something with oc-pty, but whenever the <pty_exited> gets injected into my session, it changes my main agent from whatever it was (yellow) to plan mode (purple):

Image

Has anyone seen this before?

OpenCode 1.2.5 opencode-pty 0.1.5

JosXa avatar Feb 16 '26 11:02 JosXa

This how we are currently sending this message: https://github.com/shekohex/opencode-pty/blob/82e10344bba8cf217f3440fe284c40fba5b12c26/src/plugin/pty/notification-manager.ts#L19-L27

no change of the agent or anything else, do you see the agent change at your status bar?

I guess I noticed that recently, but it only changed the variant. Could be a bug in opencode, since it never did that before.

shekohex avatar Feb 16 '26 12:02 shekohex

Gotcha, yeah, I just had it happen for a different tool call aswell. Probably something in opencode. Thanks for checking :)

JosXa avatar Feb 16 '26 15:02 JosXa