Skip to content

An anonymous BrowserSession borrows a browser with no login - #323

Merged
czpython merged 1 commit into
mainfrom
anonymous-browser-borrow
Aug 24, 2026
Merged

An anonymous BrowserSession borrows a browser with no login#323
czpython merged 1 commit into
mainfrom
anonymous-browser-borrow

Conversation

@czpython

@czpython czpython commented Aug 24, 2026

Copy link
Copy Markdown
Owner

BrowserSession(site=..., anonymous=True) declares a session that needs no login. A borrow skips the ready check and opens the browser on a blank profile — the launcher already reads a version-zero state.meta.json as "nothing to unpack", so the borrow uploads only that. The seeding logic is now one function, seed_state, shared by the borrow and the login window.

The row still materializes on first borrow with the new anonymous status, and mark_used keeps recording, so the pane shows real last-used data. The pane shows the session as "Anonymous — no login needed" with no sign-in action. The login-window and state-import routes refuse an anonymous session with a 409 that says why.

anonymous=True with persist=True raises at class definition — there is no state to write back. BrowserSessionSignedOutError inside an anonymous borrow still fails the run, but the signed-out subscriber leaves the row anonymous instead of flipping it to stale.

ENG-876

@czpython
czpython force-pushed the anonymous-browser-borrow branch from 726e568 to d984151 Compare August 24, 2026 13:04
@czpython
czpython force-pushed the anonymous-browser-borrow branch from d984151 to cb62105 Compare August 24, 2026 13:07
@czpython
czpython merged commit 15c8976 into main Aug 24, 2026
2 checks passed
@czpython
czpython deleted the anonymous-browser-borrow branch August 24, 2026 13:10
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