Repository navigation
Chat mounts for visitors: speech may be left out, and the drawer opens where it is told - #2204
Merged
Merged
Conversation
Illiana's review of
|
lbedner
force-pushed
the
chat-mount-speech
branch
3 times, most recently
from
November 25, 2026 23:13
28e6761 to
b928a6e
Compare
…s where it is told Dictation and read-aloud are paid per use, and a mount's turns are held to its budget while its speech routes were not: on a mount open to signed-out visitors, /speech/say read any text aloud for anyone holding a session. ChatSurface.speech (default on) leaves the microphone, the read-aloud buttons and both speech routes out when False; speaks() is the one place that asks. The drawer opens on chat_entry (default: the mount's /drawer), so a mount can show something first, such as a notice a visitor reads before a guest session starts; a chat:open event on the window opens it from anywhere on the page. Once a visitor's session is gone, a drawer with an entry of its own reopens there (data-signed-out, reopenedSignedOut in auth.js) for its htmx requests and its own fetches, never sending them to /login. A visitor's turn read its session twice (its mount through get_visitor, its owner's id through get_optional_user): both now build on get_session_user, which FastAPI resolves once a request. Every page that starts a guest words its refusals from one reason: the sign-in's 429 says guest_limited itself, so no caller maps status codes, and guest_starter is the one way a page starts a guest. The human check has one home too: turnstile.site_key() for the key and the human_check macro for the widget.
lbedner
force-pushed
the
chat-mount-speech
branch
from
November 26, 2026 00:57
b928a6e to
e9a4fc3
Compare
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.
Summary
ChatSurface.speech(default True). False drops/speech/transcripts,/speech/sayand a message's/speech, and the drawer renders no microphone or read-aloud. Why: on a mount open to signed-out visitors (guest_chat.for_visitors), turns are held to the mount's budget but speech was not;/speech/say?text=read any text aloud for anyone with a guest session.chat_drawer.htmlopens onchat_entry(default{chat_path}/drawer, unchanged for every existing include), and achat:openwindow event opens it from a button elsewhere on the page.Test plan
tests/web/test_chat_surface_mounts.py::test_a_mount_may_leave_speech_out(red without the field), plus the mount, live-call and Overseer chat tests in a generated projectchat:open: exercised by Pulse's apex panel test (red before the change)