Commit Graph
500 Commits
Author SHA1 Message Date
G30 bb8d49ff31 fix: an attached webpage stays when file upload is not allowed (#32701) 2026-10-21 02:14:22 +09:00
Timothy Jaeryang Baek af34515131 refac 2026-10-16 04:07:18 +04:00
Timothy Jaeryang Baek c13de6395f refac 2026-10-16 01:55:24 +04:00
Classic298 f35b199327 fix: voice calls and dictation go silent on Android Chrome after about ten uses (#32417)
Voice calls and dictation on Android Chrome stopped working after about ten uses in one session: calls hung on "Listening" and spoken replies went silent until the page was reloaded. Each use left the microphone level display holding on to an audio output, and Chrome on Android allows only ten of those per page. The level display now releases it when a turn ends and when a call or recording stops.

Fixes #29969
2026-10-14 23:19:06 +04:00
Timothy Jaeryang Baek d51fffb468 refac 2026-10-14 15:28:19 +04:00
Timothy Jaeryang Baek 1045d74c75 refac 2026-10-14 15:20:25 +04:00
G30 3991035767 feat: rotate, pan and zoom the voice avatar (#32378) 2026-10-14 12:18:44 +04:00
Timothy Jaeryang Baek a9227421d8 refac 2026-10-12 17:57:07 +04:00
Timothy Jaeryang Baek 78613d86f7 refac 2026-10-11 15:55:57 +04:00
Timothy Jaeryang Baek 2bcf9cffe7 refac 2026-10-10 22:59:27 +04:00
Timothy Jaeryang Baek 79d376a1f3 refac 2026-10-10 21:28:33 +04:00
G30 056e2ac37e fix(ui): keep long translated menu labels aligned and inside their row (#32151) 2026-10-10 01:21:23 +04:00
Timothy Jaeryang Baek 9bbb95048b refac 2026-10-09 15:07:43 +04:00
Timothy Jaeryang Baek 7d205a86dc refac 2026-10-08 23:49:38 +04:00
Classic298 806644fcba fix: Cancel and Continue in the web search confirmation popup need two clicks (#31976)
With the admin setting Web Search Confirmation on, switching on Web Search from the Integrations menu opened the confirmation popup while the menu stayed open behind it. The first click on Cancel or Continue only closed the menu, so the buttons looked broken until clicked a second time. The menu now closes when the popup opens, so one click confirms or cancels.

Fixes #31963
2026-10-07 16:22:46 +04:00
Timothy Jaeryang Baek 1c74e20be9 refac 2026-10-07 14:05:17 +04:00
Timothy Jaeryang Baek f00aec79c3 refac 2026-10-07 14:04:48 +04:00
Timothy Jaeryang Baek 700431f870 refac 2026-10-07 14:03:56 +04:00
Timothy Jaeryang Baek d989375b48 refac 2026-10-07 13:54:06 +04:00
Timothy Jaeryang Baek 7401f41630 refac 2026-10-07 13:22:00 +04:00
Timothy Jaeryang Baek 4f1f385419 refac 2026-10-07 12:10:52 +04:00
Timothy Jaeryang Baek fa4c7fe5e8 refac 2026-10-07 00:57:06 +04:00
Timothy Jaeryang Baek efd94fde63 refac 2026-10-07 00:54:53 +04:00
Timothy Jaeryang Baek 093bfce2b6 refac 2026-10-07 00:39:16 +04:00
Timothy Jaeryang Baek e9cca320b4 refac 2026-10-06 22:02:23 +04:00
Timothy Jaeryang Baek 106aae70e9 refac 2026-10-06 21:45:10 +04:00
Timothy Jaeryang Baek d3913657df refac 2026-10-06 21:19:36 +04:00
G30 7dd9fc7076 fix: stop the rest of the reply when interrupting Voice mode (#31876) (#31877) 2026-10-05 11:13:38 +04:00
Classic298 1e834c09e2 fix: Web API dictation stops while you are still talking (#31891)
With the Web API speech-to-text engine, the two-second silence timer only restarted when the browser finished a phrase. If you paused briefly and then kept talking for more than two seconds, dictation stopped mid-sentence. The timer now restarts whenever the browser hears speech, so dictation only stops after two seconds of silence.

Fixes #19727
2026-10-05 06:45:11 +04:00
G30 51da3eefc9 fix: set up the Kokoro voice when Voice Mode opens, however it was opened (#31829) 2026-10-01 20:24:06 +04:00
Timothy Jaeryang Baek 8a4547104c refac 2026-10-01 08:13:45 +04:00
G30 b857eb8267 fix: find read-only shared notes when searching the chat's note picker (#30968) 2026-09-30 20:03:01 +04:00
G30 c8a3e10e13 fix: let Enter through when the message box's suggestion list has nothing to show (#31506) 2026-09-28 06:15:56 +04:00
Classic298 7924ce7d79 fix: unhandled play() rejection wedges the Read Aloud button; auto-playback silent on iOS (#30373)
On iOS and iPadOS, auto-playback of a finished reply is never heard and the speaker button stays stuck in "speaking", so the first tap only stops a playback that never started. WebKit rejects play() started from a network event, and the audio queue ignored that rejection, so its state never reset. Call mode on the same devices was silent too.

A rejected play() now resets the queue, returns the button to idle and shows a toast (an aborted play from stop or a message switch is ignored). The first user tap or keypress plays a 10 ms silent clip on the shared audio element, which WebKit then allows to play later without a gesture; if that attempt fails it retries on the next gesture. Call mode plays unmuted: WebKit pauses an element that is unmuted after play() outside a gesture, even once unlocked.

The unlock and call mode change follow the reporter's on-device tests (iPhone iOS 27, iPad iPadOS 26.6.2). Verified in Chromium with autoplay restricted: the base queue wedges and drops later chunks; with the fix it reports the error, recovers, the unlock plays once and never interrupts audio already playing, and chunks queued during the unlock still play.

Fixes #30262
2026-09-23 23:52:09 -04:00
Classic298 869a5b1035 fix: stop voice mode listening after leaving the chat page (#30405) (#30417)
Leaving the chat with voice mode active (Admin Panel, Workspace, Notes) left a hidden recorder running in the tab. The voice mode flag stays on when the chat page unmounts, so the overlay's teardown restarted recording on the destroyed component, which kept transcribing speech and sending prompts from other pages. Returning to the chat also opened an extra microphone stream that was never closed.

The overlay now marks itself destroyed on teardown and never starts or restarts recording after that, so leaving the chat shuts the microphone down fully.

Resetting the voice mode flag in the chat page cleanup was considered, but it changes behaviour for the controls panel on return and still runs after the overlay's own teardown.

Verified in Chromium with a fake microphone (14s per phase, transcription requests / live mic tracks):

| Phase | before | after |
|---|---|---|
| Call on chat | 3 / 1 | 3 / 1 |
| After moving to Workspace | 3 / 1 | 0 / 0 |
| Voice mode reopened | 3 / 3 | 3 / 1 |

Fixes #30405
2026-09-23 23:30:30 -04:00
Classic298 24c01bd76d fix: stop voice call hanging in "speaking" when TTS fails (#30372)
When the configured TTS provider fails during a voice call, the text answer arrives but the overlay stays in "speaking" with no audio and no error until the user taps to interrupt. The sentence that failed never reaches the audio cache, so the playback loop re-queues it every 200 ms forever.

A failed sentence now marks its message as failed. The playback loop drops that message's unplayed sentences, the rest of the turn requests no more TTS, and the overlay returns to listening once the text finishes. The OpenAI-compatible path now shows the provider error once per turn, the same way Read Aloud and the Kokoro path already do. The next turn tries TTS again.

Failure is tracked per message so an outage (the report shows 16 parallel requests all failing) costs one toast and no further requests. The trade-off is that a one-off failure mutes the rest of that reply.

Verified with the real fetch/playback code in a harness: base loops forever with no toast; with the fix, one toast, the loop ends, later sentences are not requested, a new turn plays normally, and a late failure from a previous turn does not affect the next one.

Fixes #30052
2026-09-22 16:57:10 -04:00
G30 25948ea213 fix: block saving a prompt's input form when a required dropdown has no option chosen (#30078) 2026-09-19 15:42:39 -05:00
Classic298 9923c53c10 fix: treat SVG uploads as documents instead of vision images (#30102)
Uploading an .svg to a chat attached it as a vision image input, so the model received a data URI it could not decode. PIL-backed servers answered "cannot identify image file" and OpenAI answered "The image data you provided does not represent a valid image". No setting made it work.

SVG now takes the ordinary file upload path, so its XML source is extracted and indexed and the model can answer questions about it. Rasterizing was the alternative and it would have discarded the part of an SVG a model reads best, the source itself. Raster formats are untouched and still go up as image inputs.

A shared helper replaces the ad hoc image/ prefix checks at the points that decide image input versus document, on both ends. It normalises the content type first, because a stored "image/SVG+xml" or a trailing charset parameter slipped past a plain comparison.

One behaviour change worth knowing: an SVG now needs the model to have the file upload capability, where before it rode in as an image.

Fixes #30100
2026-09-17 17:40:07 -04:00
Classic298 556e48e058 fix: honor false defaults on checkbox prompt variables (#30037)
A prompt template with `{{flag | checkbox:default=false}}` opened the input variables form with the checkbox already ticked, and the same happened for `False`, `"false"`, `0` and `"0"`. Template defaults arrive as strings and the checkbox was bound straight to that value, so any non-empty string counted as checked and there was no way to define a checkbox that starts unchecked once a default was given.

The checkbox now reads its ticked state from the value explicitly: it is checked only for `true` (boolean or string) and stays unchecked for anything else, while clicking it still writes a boolean like before. The seeded value itself is left alone, so what gets substituted into the prompt for an untouched form is unchanged, and typing `true` or `false` into the text field next to the checkbox now moves the tick accordingly.

Fixes #30036
2026-09-16 15:44:29 -04:00
Timothy Jaeryang Baek 58078ab304 refac 2026-09-14 15:47:50 -04:00
Timothy Jaeryang Baek e69236bccb refac 2026-09-13 23:33:22 -04:00
Timothy Jaeryang Baek 858ab727d2 refac 2026-09-04 18:31:59 -04:00
Timothy Jaeryang Baek 7b6562e335 refac 2026-09-04 17:39:34 -04:00
G30 4f419627f8 fix: remove the stray background band from the Attach Webpage modal footer (#29664) 2026-09-04 17:16:47 -04:00
Timothy Jaeryang Baek f677fdbf50 refac 2026-09-03 20:22:32 -04:00
Timothy Jaeryang Baek 1457000ba6 refac 2026-08-31 10:27:01 -04:00
Timothy Jaeryang Baek 3374b21a7d refac 2026-08-25 14:39:25 -04:00
Timothy Jaeryang Baek a4738e0459 refac 2026-08-25 12:45:12 -04:00
Timothy Jaeryang Baek 7a533d0d5b refac 2026-08-24 18:14:30 -04:00
Timothy Jaeryang Baek c1c81f8127 refac 2026-08-23 03:40:40 -04:00