Skip to content

Devices: a tab with no anchor adopts the last kept device - #179

Merged
lannbot merged 1 commit into
mainfrom
devices/adopt-last-kept
Sep 8, 2026
Merged

Devices: a tab with no anchor adopts the last kept device#179
lannbot merged 1 commit into
mainfrom
devices/adopt-last-kept

Conversation

@lannbot

@lannbot lannbot commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

The anchor is per tab, so a typed URL, a bookmark or an installed app's
window minted a fresh device every time — "new tab, new stranger" — and
a user's own bookmark opened in a new tab of the same profile was
refused, because the fresh device held no route key. The glue now keeps
one more pointer in localStorage: the last device device.status
reported as durable. A tab with no anchor adopts it; only a profile with
no kept device, or an explicit switch-device(none), mints.

e2e: bookmark-in-a-new-tab; two-devices-entry distinguishes a lost
anchor (re-adopts) from an explicit new device (picker).

Gates: deno task check, deno task test, just e2e 20/20. Automerge armed.

The anchor is per tab, so a typed URL, a bookmark or an installed app's
window minted a fresh device every time — "new tab, new stranger" — and
a user's own bookmark opened in a new tab of the same profile was
refused, because the fresh device held no route key. The glue now keeps
one more pointer in localStorage: the last device `device.status`
reported as durable. A tab with no anchor adopts it; only a profile with
no kept device, or an explicit `switch-device(none)`, mints.

e2e: bookmark-in-a-new-tab; two-devices-entry distinguishes a lost
anchor (re-adopts) from an explicit new device (picker).
@lannbot
lannbot enabled auto-merge September 8, 2026 02:44
@lannbot
lannbot merged commit 35e5673 into main Sep 8, 2026
2 checks passed
@lannbot
lannbot deleted the devices/adopt-last-kept branch September 8, 2026 02:50
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.

2 participants