3 ms·
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 Open
by jauntywundrkind 10mo 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!
- river_otter 10mo agoHaha I'm all about the KISS principle. I also set up a snapshot testing framework so that people can submit screenshots of any messed up status reports and I can easily add them to the test suite to make sure we fix any issues that someone sees.
- jauntywundrkind 10mo agoI'd love a cli subcommands that would just give me status, btw. Very neat to have.
- river_otter 10mo agoI need to add some better docs but the CLI of aoe supports it already!
- brimtown 10mo agoThere is a PermissionRequest hook [1], along with Notification https://code.claude.com/docs/en/hooks-guide#hook-events-overview 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