[Bug]: Pty result injection drops session into Plan mode
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):
Has anyone seen this before?
OpenCode 1.2.5 opencode-pty 0.1.5
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.
Gotcha, yeah, I just had it happen for a different tool call aswell. Probably something in opencode. Thanks for checking :)