Feature: Click pet to focus the agent app that sent the notification
[!NOTE] Yes, AI helped me create this feature request.
Yes, I stand by the words in it. OpenPets is awesome, btw
Summary
When clicking the desktop pet, bring the app/terminal that's running the agent to the foreground.
Use Case
I use OpenPets with OpenCode in a terminal. When the pet shows a notification (e.g., review or done), I click the pet expecting to jump to the terminal where the agent is running. Currently, clicking the pet doesn't do anything beyond what the pet itself handles.
Proposed Behavior
- Pet tracks which app/process sent the most recent (or active) notification via MCP or CLI.
- Clicking the pet activates that app (similar to
open -a "Warp"oropen -a "Terminal"). - If multiple agents have active bubbles, clicking a specific bubble focuses that agent's app. Clicking the pet itself could focus the most recent.
- Falls back gracefully if the source app can't be determined.
Alternatives Considered
- Action URLs on individual notifications — works but requires every notification to include a URL, and only works on the bubble, not the pet itself.
- CLI/scripting a post-action — manual and fragile.
Additional Context
This would make the pet feel like a true bridge between the agent's status and the workspace where the work is happening, rather than just a passive indicator.
Closing — solved this with the existing url + buttonLabel fields on the notify command.
Since OpenCode.app registers the opencode:// URL scheme, every notification can include:
url: "opencode://"
buttonLabel: "Open OpenCode"
Clicking the notification bubble brings OpenCode to focus. This works today via both CLI (openpets notify --url opencode:// --button "Open OpenCode") and MCP. No pet-level click handling needed.
Refined the feature request: if you ever want click-the-pet-itself (not the bubble) to focus the source app, that would still require detecting the calling process.