Comment by jauntywundrkind
Comment by jauntywundrkind 17 hours ago
I'm always curious how folks do status detection. Here you use tmux capture-pane and detect off that! Whew! Simple & direct!
I've been really enjoying how OpenCode is so extensible, how you can make great plugins that can for example read the session.idle event & then go do whatever they want. That does require dropping in some config asking for the plugin, which takes some effort & requires a restart (but your session will be right there & you can continue). It's technically elegant imo, and nice that there is the extensibility.
But hard to beat using screen as a framebuffer & just reading it out, for doing absolutely whatever it is you could possibly want to do! For example you can also detect permissions prompts, which I don't believe there is an event for!
There is a PermissionRequest hook [1], along with Notification
https://code.claude.com/docs/en/hooks-guide#hook-events-over...
It must be newer because Opus never seems to know about it, and the claude-code-guide tool that fires occasionally misses it