Skip to content

Chat mounts for visitors: speech may be left out, and the drawer opens where it is told - #2204

Merged
lbedner merged 1 commit into
mainfrom
chat-mount-speech
Nov 26, 2026
Merged

lbedner merged 1 commit into
mainfrom
chat-mount-speech

Conversation

@lbedner

@lbedner lbedner commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • ChatSurface.speech (default True). False drops /speech/transcripts, /speech/say and 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.html opens on chat_entry (default {chat_path}/drawer, unchanged for every existing include), and a chat:open window 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 project
  • Drawer entry and chat:open: exercised by Pulse's apex panel test (red before the change)

@illiana-review

illiana-review Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Illiana's review of e9a4fc3

Clear. Nothing new here holds the change.

Nothing new against any rule I hold. This has my seal of approval.

What this change touches
  • Parts: component:backend, service:auth
  • Depended on by: service:meetings, service:payment
  • Routes: route:POST /api/v1/auth/guest
  • In no part: 14 files

Earlier reviews

Illiana's review of `b928a6e`

Clear. Nothing new here holds the change.

Nothing new against any rule I hold. This has my seal of approval.

What this change touches
  • Parts: component:backend, service:auth
  • Depended on by: service:meetings, service:payment
  • Routes: route:POST /api/v1/auth/guest
  • In no part: 12 files
Illiana's review of `28e6761`

Clear. Nothing new here holds the change.

Nothing new against any rule I hold. This has my seal of approval.

What this change touches
  • Parts: component:backend, service:auth
  • Depended on by: service:meetings, service:payment
  • Routes: route:POST /api/v1/auth/guest
  • In no part: 11 files
Illiana's review of `d1987f8`

Clear. Nothing new here holds the change.

Nothing new against any rule I hold. This has my seal of approval.

What this change touches
  • In no part: 5 files
Illiana's review of `7d6c495`

Clear. Nothing new here holds the change.

Nothing new against any rule I hold. This has my seal of approval.

What this change touches
  • In no part: 3 files

@lbedner lbedner changed the title A chat mount may leave speech out Chat mounts for visitors: speech may be left out, and the drawer opens where it is told Nov 25, 2026
@lbedner
lbedner force-pushed the chat-mount-speech branch 3 times, most recently from 28e6761 to b928a6e Compare November 25, 2026 23:13
…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
lbedner merged commit 4974d43 into main Nov 26, 2026
108 of 111 checks passed
@lbedner
lbedner deleted the chat-mount-speech branch November 26, 2026 03:30
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