Commit Graph
650 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 044a5fd0a5 refac 2026-10-25 16:11:51 +09:00
Classic298 75c4421b3a fix: knowledge, note and chat attach entries open while file upload is off (#32968)
* fix: knowledge, note and chat attach entries open while file upload is off

When a user may not attach files (no file upload permission, or a selected model without "File Upload"), the "+" menu greys out "Attach Knowledge", "Reference Chats" and "Attach Notes", but they still opened, and the picked item vanished from the input without a message. Knowledge picked from the "#" and "@" lists vanished the same way, and the "#" list offered a pasted link to users without the web upload permission, which only answered "You do not have permission to upload web content". The greyed entries now do nothing on click, like "Attach Files" next to them, and the "#" and "@" lists leave out what the user cannot attach.

Refs #32830

* refac: drop type annotations on the upload flag to match neighbours

The new upload flag declarations now follow the untyped style of the lines around them.

* fix: hide attach entries in the # and @ lists from the first keystroke

The chat input now works out on its own whether files can be attached, so the lists no longer wait for the + menu to report it.
2026-10-25 13:15:59 +09:00
Classic298 b02ff54459 fix: Call button shows while speech-to-text is unavailable (#32970)
* fix: Call button shows while speech-to-text is unavailable

Unless realtime voice is set up, a call needs the server to turn the user's speech into text. The Call button still showed when the speech-to-text engine is "Web API", where clicking it only answered "Call feature is not supported when using Web STT engine", and to users without the speech-to-text permission, where the call opened but nothing they said was transcribed. The button now shows only when a call can work: realtime voice is on, a call is already running, or the engine is not "Web API" and the user has the speech-to-text permission.

Refs #32830

* fix: keyboard shortcut also needs the speech-to-text permission for calls

The call shortcut and call links now follow the same speech-to-text rule as the Call button.

* refac: keep the whole Call button condition in one place

Also drops the Web API speech-to-text message from the Call button, since the button no longer shows for that engine.

* refac: keep the call permission check unchanged in the call shortcut

The speech-to-text rule for the call shortcut is now its own check after the existing call permission check, which stays as it was.
2026-10-25 07:32:45 +09:00
Classic298 f36ed91371 fix: /skills:create shows for models that cannot create skills (#32971)
* fix: /skills:create shows for models that cannot create skills

"/skills:create" showed when the model had the "Builtin Tools" capability or its "Skills" built-in tool turned off, and the model then answered that skill creation is disabled. The command now shows only when every selected model has both turned on.

Refs #32830

* refac: keep the skill creation check with the other model capability checks

Moves the check next to the other per-model capability checks so it reads like them.

* refac: add type annotations to the skill creation check

Restores the type on the new option and types the new check.
2026-10-25 07:20:41 +09:00
Timothy Jaeryang Baek 049d75e176 refac 2026-10-25 05:47:26 +09:00
Classic298 3e9d6cb950 fix: saved direct tool servers still apply after direct integrations is turned off (#32996)
Tool servers and Open Terminal connections a user added in their Integrations settings kept loading and were still used in every chat after the admin turned Direct Integrations off, which only hid the settings tab. They are now ignored while Direct Integrations is off, for admins and users alike, and the server ignores them even when a request still includes them. The saved connections stay in each user's settings and come back as soon as the switch is turned on again.
2026-10-24 06:05:51 +09:00
Classic298 9e5a355fd2 fix: Capture shows for models without Vision (#32969)
"Capture" in the "+" menu showed when no selected model supports images, and after picking a screen the user only got "Selected model(s) do not support image inputs". It now shows only when at least one selected model has "Vision", which is also what attaching an image requires.

Refs #32830
2026-10-23 10:44:51 +09:00
Classic298 1a49220797 fix: Fork chat in a temporary chat fails with an error (#32839)
A temporary chat offered Fork chat under every reply and Fork in the / menu, but a temporary chat is never stored, so there was nothing to copy and every attempt ended in "We could not find what you're looking for :/". Both are now left out of temporary chats, the same way rating already is, and typing /fork there answers with "No chat to fork". Saved chats fork as before.

Fixes #32833
2026-10-22 02:12:55 +09:00
Timothy Jaeryang Baek 6dbd375c26 refac 2026-10-21 08:34:45 +09:00
G30 46cdd70d7b fix: a pipe model's Valves button follows the Allow Chat Valves permission (#32772) 2026-10-21 03:23:16 +09:00
G30 60953f66a6 fix: the Send button and other chat input icons get names for screen readers (#32602) 2026-10-21 02:18:55 +09:00
Timothy Jaeryang Baek af34515131 refac 2026-10-16 04:07:18 +04:00
Timothy Jaeryang Baek 9cf48f4fb0 refac 2026-10-16 03:28:17 +04:00
Timothy Jaeryang Baek 7ca62fdf93 refac 2026-10-15 22:51:14 +04:00
Timothy Jaeryang Baek 0d895443b4 refac 2026-10-14 18:02:58 +04:00
Timothy Jaeryang Baek b412b1b20b refac 2026-10-14 16:12:30 +04:00
Timothy Jaeryang Baek d51fffb468 refac 2026-10-14 15:28:19 +04:00
Timothy Jaeryang Baek edb16ed946 refac 2026-10-14 15:22:47 +04:00
Timothy Jaeryang Baek 1045d74c75 refac 2026-10-14 15:20:25 +04:00
Timothy Jaeryang Baek 1786d6cdb0 refac 2026-10-13 00:43:00 +04:00
Timothy Jaeryang Baek 3a54306c50 refac 2026-10-12 19:24:52 +04:00
Timothy Jaeryang Baek f3756997f6 refac 2026-10-10 23:27:31 +04:00
Timothy Jaeryang Baek 1a8bb4bb7a refac 2026-10-10 23:26:58 +04:00
Timothy Jaeryang Baek d470b8e1e4 refac 2026-10-10 23:14:32 +04:00
Timothy Jaeryang Baek 82f142d376 refac 2026-10-10 21:11:33 +04:00
Timothy Jaeryang Baek 350fbce932 refac 2026-10-09 17:52:02 +04:00
Timothy Jaeryang Baek 7d205a86dc refac 2026-10-08 23:49:38 +04:00
Timothy Jaeryang Baek 7b7dba6eec refac 2026-10-08 23:36:51 +04:00
Timothy Jaeryang Baek f5e9e58109 refac 2026-10-08 15:56:46 +04:00
Timothy Jaeryang Baek 1e9dd6e330 refac 2026-10-08 15:29:52 +04:00
Timothy Jaeryang Baek 00530b7a62 refac 2026-10-07 00:55:46 +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 c4e885bf1e refac 2026-10-06 17:54:13 +04:00
Timothy Jaeryang Baek fb741ebcd2 refac 2026-10-05 10:56:06 +04:00
G30 41ca360ccf fix: stop Ctrl+Shift+Enter from sending the message when Ctrl+Enter to Send is on (#31864) 2026-10-05 06:43:14 +04:00
Classic298 95dd3321af fix: images stored inside a chat trigger needless context compaction (#31915)
Images stored inside the chat record itself (chats from older versions, images that could not be saved as files, temporary chats) had their encoded data counted as text when estimating how full the context is, so a single 3 MB image counted as about a million tokens. That pushed the chat over the compaction threshold, summarizing older messages while the chat was well under the limit, and made the context usage indicator jump. The encoded image data is now left out of the token estimate, both for compaction and for the indicator.

Fixes #31913
2026-10-05 06:41:50 +04:00
Timothy Jaeryang Baek f50f9e6252 refac 2026-10-01 03:31:20 +04:00
G30 e797a44806 fix: don't bring up the keyboard when menus open or close on mobile (#31657) 2026-10-01 03:09:14 +04:00
Classic298 6c322941d1 fix: iPhone HEIC photos are rejected by vision models (#31649)
iPhone photos were only converted to JPEG when the browser reported their type as exactly image/heic. Firefox reports image/heif and some browsers report no type at all, so those photos were uploaded as HEIC and vision models failed with an error. When conversion did run, the JPEG was still uploaded with the HEIC file name and type, so the model was told it was HEIC anyway. HEIC and HEIF photos are now converted whatever type the browser reports and are uploaded as a .jpg with the JPEG type, in chats, channels and notes.

Fixes #28411
2026-09-30 21:03:07 +04:00
Timothy Jaeryang Baek 332237662f refac 2026-09-27 23:18:46 +04:00
G30 b233d0d94b fix: paste the clipboard as is for {{CLIPBOARD}}, keeping dollar signs (#31364) 2026-09-26 07:28:02 +04:00
Classic298 c402acb404 fix: skills picked from the / menu are not applied to the reply (#31429)
Picking a skill from the / menu in the chat input inserted it as an @ mention, so the skill was never loaded and its raw tag ended up in the message the model received. Picking the same skill from the $ menu worked. A skill chosen through / is now sent the same way as through $ and gets applied.

Fixes #29978
2026-09-26 07:19:56 +04:00
Classic298 e6e9fc9721 fix: keep the composer's + and Integrations buttons visible at larger UI Scale on mobile (#30374)
On a phone with UI Scale at 1.2x or higher, the model selector in the chat composer covers the Integrations button, so it cannot be seen or tapped. From 1.3x it covers the + button too, which leaves no way to attach files or open integrations.

The model selector's width cap is rem based, so it grows with UI Scale, and the left button group could shrink to nothing, so the selector took the space first. The + and Integrations buttons now sit in a group that keeps its width, and only the toggled chips stay in the scrolling strip. When space runs out the model name truncates, and chips scroll as before.

Measured in the real app at a 360px mobile viewport: before, Integrations is covered at 1.2x and both buttons at 1.3x and 1.5x; after, both are tappable at every scale, with the model name truncated (114px at 1.3x). Button positions at 1x and on desktop are unchanged to the pixel, with and without chips.

Fixes #29989
2026-09-23 23:08:48 -05:00
Classic298 e14f245586 fix: keep the M mute shortcut working during voice calls (#30421)
In voice mode, pressing M after a turn typed an "m" into the chat box instead of muting. After each voice message the chat input pulled keyboard focus back to itself, and the call overlay ignores M while focus is in a text field so typing still works.

The chat input now leaves focus alone while a call is open: clearing it after a send, the remount on the first message of a new chat and the editor's autofocus all skip focusing during a call. Clicking into the box and typing during a call still works, and outside a call the input focuses exactly as before.

Checked in a browser with a fake microphone: M mutes after the first, second and third turn, in new and existing chats; "m" typed into a focused input during a call still types.

Fixes #30406
2026-09-23 23:55:21 -04:00
G30 aa65f55692 fix: insert the whole emoji when its shortcode is a codepoint sequence (#30213) 2026-09-21 08:07:45 -04:00
Timothy Jaeryang BaekandG30 67adde3193 refac
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
2026-09-19 17:26:40 -04:00
G30 5d7c17f41a fix: stop the Generate Message Pair shortcut from also submitting the message input form (#30167) 2026-09-18 23:54:10 -04:00