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
[Bug]: Pty result injection drops session into Plan mode #22
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):
Activity
shekohex commentedon Feb 16, 2026
This how we are currently sending this message:
opencode-pty/src/plugin/pty/notification-manager.ts
Lines 19 to 27 in 82e1034
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.
JosXa commentedon Feb 16, 2026
Gotcha, yeah, I just had it happen for a different tool call aswell. Probably something in opencode. Thanks for checking :)