Repository navigation
feat(stream): play as the saved profile in the browser - #84
Merged
Merged
Conversation
added 2 commits
November 14, 2026 00:21
The stream crates and the server leave 28c312102, so both halves build one core again. The newer core carries a profile's lock, the console kit's PIN screen and Hide for me; nothing here turns them on yet. The page's messages follow the pin: Italian and Brazilian Portuguese ship with it.
The library is read as the pick this browser keeps for a host. A profile the host no longer holds, or will not show this device, is read once more as the box, with no error. A profile that opens with a PIN or an account password is asked for it before its dial: the web shell's sheet, or the console's own screen. The unlock goes behind the device's answer to the host's challenge, where the browser plane reads it, and is not kept. The host's sentence for one it refused shows under the field. A profile's person hides a title from its tile and brings it back from the list of what the profile hides. The rules replay the monorepo's vectors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 4.4 of the profile-scoped features: the browser client plays as its profile. Both interfaces, the React shell and
?ui=console.GET /library/pageandGET /librarycarry the pick this browser keeps for the host asas. A 404profile_unknownis asked once more withoutasand shows no error. The web shell uses any saved pick, the console only one it was told to remember, as for a dial. A pick that moved reads the shelf again.unlockword decides: none dials,pinandpin_keyask for the PIN (4 to 8 digits, masked), anything else for the account password. The page holds no unlock key, so every unlock is typed. Aprofile-lockedclose reopens the prompt with the host's sentence as sent. The console draws its own screen (prompts_unlock), and what it types never leaves wasm.person: true. A tile's button hides (PUT /library/hidden/{id}?as=), with Undo; "Hidden for " lists what the profile hides, each with Show. A refusal with a code shows the host's sentence and changes nothing; one without a code is worded by the page. The console getshides,SetHiddenandFetchHidden.7ff5eeeed(from28c312102), in its own commit. The page's messages gain Italian and Brazilian Portuguese with it.Vectors from punktfunk
7ff5eeeed, copied verbatim and replayed:library-profile-vectors.json(all cases, through the realHost),hide-for-me-vectors.json(all three sections),profile-unlock-vectors.json(unlock_words,gate,after_refusal,pins). Itsmessages,refusedandchallenge_answerssections pin what an unlock key signs, and this page holds none.Two things only a real host showed
AuthResponsewith a reader that drops anyProfileUnlockin front of it, then waits 5 s and answersclose_lock_pin_unreadable. The hello still announces it (FEATURE_UNLOCK_FOLLOWS);pf_cred_signedsends it. The 2b contract says "right afterClientHello", which holds for the native plane only.Pendingfrom the host now also holds that clock, which is what an unlock's dial waits on while a profile's desktop starts.Screenshots
From the real page (Vite dev server, release wasm) against a real host built from punktfunk
7ff5eeeed, on loopback. The host's own sentences, as sent.profile_change_not_allowed)What the host was asked, from the same run:
Host audit log:
profile PIN checked … result="wrong_pin", thenresult="locked_out"inside the wait, thenresult="opened", and the device on the lock's list asfor_now.The console interface (
?ui=console), same host, same run. The PIN is typed on the console's own screen and crosses to the session inside wasm.States that run could not reach, from the Storybook fixtures (every new story is in the CI screenshot artifact, at both widths):
Decisions worth a look
profile-lockedtoo, and the prompt needs both forms. The vectors'unlock_wordsname both.Refusedcarries a message id, and this page words no refusal by id yet, the lock's included.EngineOptions.promptsUnlock: a consumer of@punktfunk/streamthat draws no prompt keeps the host's "update" sentence.Checked
Locally, on the final tree:
npm run check,npm test(140 + 19), the Storybook build and its screenshots (78),npm run build(release wasm, emsdk 4.0.9),scripts/pack-gate.sh,npm run cjk-e2e;cargo fmt --check, clippy (native and wasm,-D warnings) and tests forpackages/streamandserver.Against the real host, driven by Playwright Chromium, in both interfaces: pairing, the picker, the PIN prompt, a wrong PIN, the wait, the right PIN, the library as the profile, hide, the hidden list, Show. In the web shell also Undo's line and a refused hide; in the console also the library read as the remembered pick only.
After the right PIN the handshake completes: the host logs
profile PIN checked … result="opened",video codec negotiated codec=H265,handshake complete — streaming, and the page logssession live.Not checked
Pendingfor up to three minutes, then the redirect to the seat's plane). The rig's profiles play on the box's own session. The engine's side of it is covered by tests only.