Repository navigation
Sonny: /background lists triggers and lookout subscriptions, with a ↻ count per agent - #267
Conversation
…ounts /background (also /triggers and /lookout) opens its own screen, like /status: the project's agents' triggers (when they fire, whom, the message, what the last fire did) and lookout subscriptions (checks in the last day). f fires a trigger now, d twice removes one; the lead's own tasks subscription stays. The footer says "↻ N in background" for the window's agent, and /status rows add "↻ 2 triggers". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGESsMgEpG3dVsCgRSU
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7738d7d73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…at moves it forgets it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGESsMgEpG3dVsCgRSU
|
@codex review Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e8ec90ba4e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…thing Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGESsMgEpG3dVsCgRSU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGESsMgEpG3dVsCgRSU
…-0a48mk # Conflicts: # sonny/src/main.rs
/status stays a card in the pane on the full screen; /background keeps the screen of its own #267 gave it, now an optional one on Watch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGUYN2TzGMxH4MDZ3K
George asked for a way to see the triggers that exist, kept separate from /status if it lets you edit them, and for a sign that a bot has something running in the background.
What changes
/backgroundopens its own screen, built like /status./triggersand/lookoutopen the same screen, so the old/lookoutdump is folded in. It lists what runs for the project's agents with nobody typing, covering the same agents /status covers:--if.taskssubscription is marked as Sonny's own.Keys: ↑/↓ picks a row, and
ffires a trigger now (an ask to launchd, the same astrigger fire).dremoves a trigger or subscription; it asks once ("d again removes NAME · any other key keeps it") and only a seconddgoes ahead. Sonny's own lead subscription can't be removed, because opening the project writes it back.background screen
removing asks twice
Indicator:
↻ N in backgroundbefore the bot's name while the window's agent has triggers or subscriptions of its own. Sonny counts them again every 10 s, from files only, with no daemon call.↻ 2 triggers, 1 subscriptionto their details line.footer
/status rows
Code changes:
trigger::on_store: lists the triggers on a store, with the bots each one is for.lookout::checks: replaceslookout::subscriptions.subs::remove: removes one subscription.Not in this PR
Shell commands an agent started with
background=truearen't listed. The daemon has no way to read them per bot today, so showing them needs a small daemon change.Testing
cargo test -p sonny --bin sonny: 259 passed. New tests cover counting (Sonny's own subscription left out), trigger facts, the card's layout and the two-pressd,on_storefiltering by store and naming every bot a trigger is for, and per-subscription checks.cargo clippy -p sonny --all-targetsis clean.prswith d, d, checked that it was gone from the file, and saw /status show the counts. I couldn't exercisefand launchd unloading on Linux. They call the samefire_now/removethatsonny triggeruses.