feat(notify): a push's buttons work from the browsers and the app, not only Home Assistant #22
Closed
gabrielvidal
wants to merge 0 commits from
push-buttons-everywhere into main
pull from: push-buttons-everywhere
merge into: gabrielvidal:main
gabrielvidal:main
gabrielvidal:no-plugin-white-flash
gabrielvidal:agy-tasks
gabrielvidal:home-declutter
gabrielvidal:perf-plugin-batching
gabrielvidal:fresh-context-plugin
gabrielvidal:remove-hooks-page
gabrielvidal:palette-plugins
gabrielvidal:linear-projects
gabrielvidal:agent-messaging
gabrielvidal:model-router
gabrielvidal:conv-card-layout
gabrielvidal:ask-more-options
gabrielvidal:agent-limits
gabrielvidal:generic-ui-strings
gabrielvidal:android-push-bridge
gabrielvidal:auto-translate
gabrielvidal:filter-chips
gabrielvidal:plugin-catalog
gabrielvidal:file-viewers
gabrielvidal:plugins-page-rework
gabrielvidal:hub-mcp-plugin
gabrielvidal:translation-plugin
gabrielvidal:scheduled-doors
gabrielvidal:cron-jobs-plugin
gabrielvidal:context-skills-plugin
gabrielvidal:files-plugins
gabrielvidal:worker-names
gabrielvidal:details-panel-perf
gabrielvidal:services-plugin-only
gabrielvidal:fix-test-env-leaks
gabrielvidal:bg-shells-plugin
gabrielvidal:feat-commits-plugins
gabrielvidal:fix-branch-line-tag-rows
gabrielvidal:retire-dead-leftovers
gabrielvidal:runner-into-harness-pi
gabrielvidal:retire-tool-proxy
gabrielvidal:new-project-policy-plugin-only
gabrielvidal:guest-jobs-sonnet
gabrielvidal:mail-send-plugin
gabrielvidal:ui-polish-batch
gabrielvidal:command-palette-plugin
gabrielvidal:keyboard-shortcuts-plugin
gabrielvidal:prompt-shortcuts-plugin
gabrielvidal:matomo-site-grants
gabrielvidal:lab-chrome-plugin
gabrielvidal:performance-plugin
gabrielvidal:whats-new-plugin
gabrielvidal:skills-agents-plugin
gabrielvidal:goals-plugin-only
gabrielvidal:storage-server-side
gabrielvidal:plugin-scheduled-conversations
gabrielvidal:plugin-fences
gabrielvidal:handoff-plugin
gabrielvidal:plugin-commands
gabrielvidal:plugin-speed
gabrielvidal:cleanup-provider-harness
gabrielvidal:plugin-conversation-labels
gabrielvidal:plugin-plan-usage
gabrielvidal:fix-worker-harness-sync
gabrielvidal:plugin-gcloud-reauth
gabrielvidal:feat/plugin-cards-in-thread
gabrielvidal:feat/plugin-proxy-wake
gabrielvidal:unify-subagents-children
gabrielvidal:wave3d-frontend-typed-plugins
gabrielvidal:wave3c-sidecar-strict-plugins
gabrielvidal:wave3a-catalog-accounts-profiles
gabrielvidal:wave3b-pricing-usage-cutover
gabrielvidal:wave1a-typed-plugins
gabrielvidal:wave1b-sidecar-runtime
gabrielvidal:fix-ios-overlay-scroll
gabrielvidal:batch2-work-resources-core
gabrielvidal:batch2-apikeys
gabrielvidal:plugin-blue-green-deploy
gabrielvidal:plugin-ship
gabrielvidal:plugin-project-env
gabrielvidal:plugin-memories
gabrielvidal:plugin-activity
gabrielvidal:plugin-templates
gabrielvidal:plugin-desk-phone
gabrielvidal:batch1-platform
gabrielvidal:plugins-list-view
gabrielvidal:dash-plugins
gabrielvidal:pets-plugin
gabrielvidal:ha-push-channel
gabrielvidal:mail-agents
gabrielvidal:graph-fix
gabrielvidal:graph-plugin
gabrielvidal:services-plugin
gabrielvidal:left-to-do-plugin
gabrielvidal:plugins-gallery
gabrielvidal:home-conv-menu
gabrielvidal:meta-business
gabrielvidal:agy-rdrand
gabrielvidal:bg-lag
gabrielvidal:conv-load-perf
gabrielvidal:askform-instant
gabrielvidal:fix/drawer-menu-done-chip
gabrielvidal:pi-midrun-compaction
gabrielvidal:interrupt-menu-btn
gabrielvidal:authz
gabrielvidal:inkling
gabrielvidal:repo-plugins
gabrielvidal:work-sync
gabrielvidal:leftovers
gabrielvidal:fix/agy-guest-guard
gabrielvidal:feat/model-presets
gabrielvidal:scroll-back
gabrielvidal:feedback-bell
gabrielvidal:feat/movies-tool
gabrielvidal:feat/running-thread-padding
gabrielvidal:feat/drawer-filter-button-card-chat
gabrielvidal:burn-rate
gabrielvidal:guest-install
gabrielvidal:guest-usage
gabrielvidal:guest-palette
gabrielvidal:guest-form-links
gabrielvidal:form-open-buttons
gabrielvidal:clarifier-lean
gabrielvidal:auto-archive
gabrielvidal:guests-profile
gabrielvidal:conv-motion
gabrielvidal:share-target
gabrielvidal:terminal-sync
gabrielvidal:work-context-past
gabrielvidal:work-context-brief
gabrielvidal:enroll-codes
gabrielvidal:open-image-file
gabrielvidal:worker-uploads
gabrielvidal:conv-drawer-search
gabrielvidal:stack-motion-v3
gabrielvidal:notif-stack-fixes
gabrielvidal:home-motion
gabrielvidal:i18n-fr
gabrielvidal:local-electricity-cost
gabrielvidal:cache-pill-thread
gabrielvidal:cache-scenarios
gabrielvidal:fresh-start
gabrielvidal:msg-select
gabrielvidal:shortcuts-setup
gabrielvidal:ui-0-40-3
gabrielvidal:outbox-landing
gabrielvidal:resume-scope
gabrielvidal:conv-filter-range
gabrielvidal:fix-subagent-form-session
gabrielvidal:ask-form-integration
gabrielvidal:form-visual-options
gabrielvidal:watcher-perf
gabrielvidal:last-msg-summary
gabrielvidal:secret-fields
gabrielvidal:commit-review
gabrielvidal:summary-mode-fixes
gabrielvidal:service-tag-parser
gabrielvidal:clarifier
gabrielvidal:fetch-diet-2
gabrielvidal:fetch-diet
gabrielvidal:conv-look
gabrielvidal:pwa-links
gabrielvidal:tool-widgets
gabrielvidal:worker-autoupdate
gabrielvidal:usage-rings
gabrielvidal:opencode-harness
gabrielvidal:notif-diet
gabrielvidal:conv-resources
gabrielvidal:scheduled-tasks
gabrielvidal:profiles
gabrielvidal:notify-exact-cost
gabrielvidal:usage-measuring
gabrielvidal:guest-projects
gabrielvidal:usage-calibration
gabrielvidal:account-switch
gabrielvidal:multiuser-improve
gabrielvidal:form-groups
gabrielvidal:multiuser
gabrielvidal:motion-reel
gabrielvidal:dashboards-fixes
gabrielvidal:split-big-files
gabrielvidal:held-regex
gabrielvidal:subagent-interrupts
gabrielvidal:form-html
gabrielvidal:tokunia-video
gabrielvidal:settings-uniform
gabrielvidal:worker-ask-fix
gabrielvidal:worker-generic-mac
gabrielvidal:runner-shortcuts
gabrielvidal:notify-unify
gabrielvidal:perf-list-cache
gabrielvidal:mac-worker
gabrielvidal:model-switch
gabrielvidal:pipeline-paths
gabrielvidal:multi-account
gabrielvidal:feature-flags
gabrielvidal:qwen38-support
gabrielvidal:url-prompt
gabrielvidal:running-pages
gabrielvidal:homelab-tag
gabrielvidal:root-project
gabrielvidal:or-models
gabrielvidal:deploying-loader
gabrielvidal:worktree-diff
gabrielvidal:conv-tags
gabrielvidal:tags-page
gabrielvidal:agents-page
gabrielvidal:icon-picker-shortcuts
gabrielvidal:conv-cta
gabrielvidal:stamp-refine
gabrielvidal:post-task-cache
gabrielvidal:post-tidy-completed
gabrielvidal:form-badge
gabrielvidal:hooks-delay-seconds
gabrielvidal:cost-dashboard
gabrielvidal:plan-forms
gabrielvidal:form-mobile
gabrielvidal:guidelines-dag
gabrielvidal:skills-view
gabrielvidal:navbar-hold
gabrielvidal:spawnbox-status
gabrielvidal:hold-editable-expand
gabrielvidal:drawer-transparent
gabrielvidal:hold-fix
gabrielvidal:hold-editable
gabrielvidal:charroll-bump
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
gabrielvidal (Gabriel Vidal)
Clear assignees
No Assignees
gabrielvidal
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gabrielvidal/ai-agent#22
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
On 2026-11-27 Gabriel tapped Merge & deploy on auto-ship's Merge & deploy 3 PRs? push and nothing happened. The buttons existed only on the Home Assistant notification, and the companion app sends a tap to
ha.labover the tailnet. The Pixel's Tailscale was off, so the tap never reached the lab, and nothing said so. The PWA's web push and the app showed the push without buttons. Now a push's buttons are also on the owner's browsers (web push) and in the app (the Waiting for feedback card and the bell). The first tap wins wherever it happens, and the push then leaves the other devices.Companion PR: ai-agent-plugins
auto-ship-waiting-card(auto-ship lists its open question with the push's id).Key changes
backend/notifications/service.py_deliver: the owner's web push payload carries the push's button titles (actions). Guests' payloads don't: these pushes are the owner's, and/api/notify/{id}/actionis owner only.frontend/public/push-sw.js: draws anotifypush'sactionslike an ask's options (up tomaxActions), keeps it on screen (requireInteraction), and a tap POSTs/api/notify/{id}/action {index}. A failed answer opens the push's link, as an ask does.backend/notifications/routes.pynotify_action: the first tap wins. A second tap on an already-acted push returns it and dispatches nothing. A tap clears the push off the other devices (deliver.clear: web push + the HA channel), the way an answered ask is cleared.backend/plugins/waiting.py: aninbox.waitingitem may carrynotifyId(ntf_+ 12 hex), owner only.frontend:WaitingItem.notifyId, andactOnPush()(api.ts). InWaitingForFeedbackandFeedbackBell, the options of such an item tap the push, not/api/ask/…. InsseBus,plugin-dataalso refetches the inbox, so the card leaves once the plugin's state says it's answered.docs/plugins.md: thenotify.actionsection explains how to put a push's buttons in the app.Key decisions
inbox.waiting), not from the hub's push log. Only the plugin knows whether its question is still open: auto-ship re-asks (supersedes) its push when a PR joins, and Later re-asks in 2 h. A card built from "pushes with buttons not tapped yet" would leave stale Merge & deploy buttons that do nothing, the very bug being fixed.channels.pyalready documented "first answer wins", so this makes that documentation true.ai-agent.labwhile the phone is off the tailnet (the service worker can't reach the hub either; it falls back to opening the link). The app card does: it works from any open app,hub.gabvdl.xyzincluded.Changelog
Test notes
shipasking,GET /api/inbox/waitingreturned the card withnotifyId, and screenshots show it on home and in the bell. A real click on Later (Puppeteer) sentPOST /api/notify/ntf_…/action {"index":1}. The plugin moved the batch tolater, requeued the PRs and calledhub/changed, and the card left the page with no reload (screenshots below).test_typed_plugins.py::test_records_carry_kind, which fails identically onmain. New tests: web push payload carries the titles (plain push doesn't), first tap wins, tap clears the other devices,notifyIdpassthrough (owner only, push ids only).tsc --noEmitis clean. vitest: 1077 pass. The 3 failures (useShareTarget×2,CacheExpiredNotice) also fail onmain, andreachability.test.tsis flaky (2 of 3 runs pass; file untouched). New tests:src/lib/pushSw.test.tsrunspush-sw.jsin a fake worker scope (buttons drawn, tap →/api/notify/{id}/action, ask unchanged, failure → link), and the bell's push tap.pushSw.test.ts, the payload by the backend test.ai-agent-deploy), never from the EVOX2. Reload auto-ship (companion PR) after this deploy. Before it, the card's buttons would call/api/ask/auto-ship:…and fail.🤖 Generated with Claude Code
Screenshots
The auto-ship push 'Merge & deploy N PRs?' carried its buttons only on the Home Assistant notification, whose taps reach the lab over the tailnet: with the phone off the tailnet (2026-11-27), the tap went nowhere and nothing said so. - web push: the owner's browsers get a push's button titles (`actions`); push-sw.js draws them and a tap answers POST /api/notify/{id}/action (a failure opens the push's link), like an ask's options - /api/notify/{id}/action: the first tap wins (a second device's goes nowhere, the plugin hears it once) and the push is cleared off the other devices - inbox.waiting items may name their push (`notifyId`, owner only): the Waiting for feedback card and the bell then tap that push's buttons - a plugin's hub/changed also refetches the inbox (its card leaves once answered) - tests: push-sw.js in a fake worker scope, the bell's push tap, the web push payload, first tap wins + clear, notifyId passthrough Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Merged into
mainas75e069aa00by the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/af7fc8c3-5bfc-4a65-bc7f-2eb0cb1ed0d6.Pull request closed