[PR #9110] feat: surface tui window focus events #12985

Open
opened 2026-02-16 18:17:52 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9110

State: open
Merged: No


What does this PR do?

Surfaces an event from TUI to indicate when the terminal gets blurred or focused, allowing better integration with plugins.

Closes #8697

How did you verify your code works?

  • Launch opencode: bun dev --hostname localhost --port 4096
  • In another terminal: curl -N http://localhost:4096/event
  • Blur/focus the opencode terminal. You should see the corresponding events getting published.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9110 **State:** open **Merged:** No --- ### What does this PR do? Surfaces an event from TUI to indicate when the terminal gets blurred or focused, allowing better integration with plugins. Closes #8697 ### How did you verify your code works? - Launch opencode: `bun dev --hostname localhost --port 4096` - In another terminal: `curl -N http://localhost:4096/event` - Blur/focus the opencode terminal. You should see the corresponding events getting published.
yindo added the pull-request label 2026-02-16 18:17:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12985