Skip to content

Let Drive take phone tasks over one ntfy topic - #6

Merged
ishu86 merged 2 commits into
mainfrom
phone-ntfy
Sep 1, 2026
Merged

Let Drive take phone tasks over one ntfy topic#6
ishu86 merged 2 commits into
mainfrom
phone-ntfy

Conversation

@ishu86

@ishu86 ishu86 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

What and why

Drive can now run tasks sent from a phone over a single ntfy topic: inbound text starts or steers the Phone thread, or answers a pending handoff; Drive posts Working and the result back to the same topic. Off unless CASE_NTFY_CHAT=1 plus a topic and a box key. The listener subscribes from now and skips seen message ids, so restarts never replay the topic's cached backlog. README documents topic setup (the name is the credential) and the Android/iOS send paths.

Checklist

  • I have signed the CLA (my GitHub username is in CLA-SIGNERS) — see CONTRIBUTING.md
  • New source files carry the SPDX-License-Identifier of their directory
  • Unit tests pass: .venv/bin/python tests/test_lifecycle.py (and the others in CI)
  • No secrets in the diff: tokens, API keys, ntfy topics, hostnames

Touches credentials?

No vault, link-token, or injection paths touched. New surfaces: CASE_NTFY_TOKEN goes out only as a bearer header to the configured ntfy server, and CASE_DRIVE_API_KEY stays in the ui container env and goes only to the configured provider. Case-originated ntfy posts are tagged and ignored on the way back in, and cased refuses to answer-listen when the answer topic equals the alert topic (loop guard).

Made with Cursor

Handoffs still ping the phone; inbound text on the same topic starts or
steers the Phone thread, or answers a pending challenge. Drive subscribes
from now and skips seen message ids, so a restart never replays the
topic's cached backlog.
@ishu86
ishu86 merged commit 1f3c94b into main Sep 1, 2026
3 checks passed
@ishu86
ishu86 deleted the phone-ntfy branch September 1, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant