Push owners about waiting devices and team requests (today they only see them with the page open) #104

Closed
opened 2026-10-03 06:38:02 +00:00 by jhgaylor · 1 comment
Owner

New-device approvals and team join requests only surface when the owner happens to have control's page open. The page polls every 10 s (web/src/control.ts). Server nudges go to daemons only (api.rs, teams.rs). So "an owner adds you when they're next here" can mean days, and a new phone sits on "Approve this browser" until you go back to your laptop.

Close it by a web push to the account's devices with push on:

  • New device: "A new browser wants into your account". It opens the approve prompt (with the fingerprint).
  • Team request: "{name} asks to join {team}". Sent to the team's owners.
  • Machine join waiting (a daemon printed a code but nobody opened the link): optional.

The payload holds no secrets, only that something is waiting. Approval still happens on the page with the fingerprint check.

New-device approvals and team join requests only surface when the owner happens to have control's page open. The page polls every 10 s (`web/src/control.ts`). Server nudges go to daemons only (`api.rs`, `teams.rs`). So "an owner adds you when they're next here" can mean days, and a new phone sits on "Approve this browser" until you go back to your laptop. **Close it by** a web push to the account's devices with push on: - **New device:** "A new browser wants into your account". It opens the approve prompt (with the fingerprint). - **Team request:** "{name} asks to join {team}". Sent to the team's owners. - **Machine join waiting** (a daemon printed a code but nobody opened the link): optional. The payload holds no secrets, only that something is waiting. Approval still happens on the page with the fingerprint check.
Author
Owner

Shipped in v0.9.0: pushes for a new device waiting and a team join request (owners only, no secrets in the payload). Not done: the optional push for a machine join nobody opened. Before approval a join has no account to notify.

Shipped in v0.9.0: pushes for a new device waiting and a team join request (owners only, no secrets in the payload). Not done: the optional push for a machine join nobody opened. Before approval a join has no account to notify.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#104
No description provided.