Commit Graph
52 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 8588bd2a72 refac 2026-11-11 10:20:45 +09:00
Classic298 b428dbaf2d refac: side chat uses the same chat as the main view (#34064)
* refac: chat input reads its terminal from the chat it belongs to

The message input with its menus, skills dialog and command lists read the selected terminal and the terminal's skills from one page-wide place. They now get both from the chat they are part of. Every chat still hands over the same page-wide selection, so nothing changes for users. This prepares for chats that run next to the main chat and keep their own terminal; the text editor inside the input, the message list, the model list and the current side chat's own request still look the terminal up page-wide.

* refac: the chat builds the key for its unsent input in one place

The chat spelled out the storage key for its unsent input in six places. One function builds it now, with the same keys as before, so nothing changes for users. This prepares for chats that run next to the main chat and keep their unsent input apart.

* fix: two chats on one page take each other's unsent text, input requests and regenerate shortcut

With a chat open next to a note, three things reached the wrong chat. Text typed into a new chat next to a note replaced the unsent text of a new main chat. An input request from a tool was answered as cancelled by the other chat on the page before its dialog could show. The regenerate shortcut, pressed in the main chat's input, regenerated the note chat's answer. Each chat now keeps its own unsent text and leaves the other chat's input requests alone, and the shortcut takes the main chat's last answer.

* refac: let the chat run inside a side chat tab

A second copy of the chat can already run on the same page, next to a note. This prepares it to run in a side chat tab too: it can be opened with a given conversation, unsent input and first message, and it sends the parent chat's messages to the model as context while showing only what was written in the side chat. A chat in a side tab keeps away from what belongs to the main chat: it uses the main chat's terminal without changing it, and it leaves the last used model, sign-in redirects and prompts sent by embeds to the main chat. Nothing opens a chat in a side tab yet, so the main chat and the chat next to a note behave as before.

* refac: side chat uses the same chat as the main view

The side chat was a separate, reduced version of the chat with its own code for sending, streaming and loading, so many chat features were missing or behaved differently there. A side chat tab now runs the same chat as the main view and the separate version is removed. Message buttons, sources, token usage, follow-ups, slash commands, queued messages, chat variables and tool events such as code execution and input requests now work in a side chat. Chats saved by the old side chat still open, and in most places where the old side chat had its own rules it now follows the main chat, for example it can answer with several models at once and shows errors as notifications. A new chat opened in a tab on its own, for example from a pinned model, no longer gets the neighbouring chat's system prompt and the side conversation instruction saved as its own.

Fixes #34029
2026-11-11 10:10:53 +09:00
Timothy Jaeryang Baek 41179ba85a refac 2026-11-10 23:43:38 +09:00
Timothy Jaeryang Baek c647f3f42e refac 2026-11-10 23:38:17 +09:00
Timothy Jaeryang Baek f4cf2ca0c7 refac 2026-11-10 22:56:33 +09:00
Timothy Jaeryang Baek 3d98e86e2d refac 2026-11-10 22:23:31 +09:00
Timothy Jaeryang Baek 6f2fc7bc7a refac 2026-11-10 21:18:18 +09:00
Timothy Jaeryang Baek 98f94057bb refac 2026-11-10 13:05:45 +09:00
Timothy Jaeryang Baek a518ff1630 refac 2026-11-09 06:43:11 +09:00
Timothy Jaeryang Baek 5d868f91ac refac 2026-11-08 11:06:22 +09:00
Timothy Jaeryang Baek 8721605ad8 refac 2026-11-08 01:54:58 +09:00
Timothy Jaeryang Baek 686307f757 refac 2026-11-08 01:33:20 +09:00
Timothy Jaeryang Baek 834c47ee02 refac 2026-11-08 01:28:41 +09:00
Timothy Jaeryang Baek c40609a753 refac 2026-11-08 00:29:27 +09:00
Timothy Jaeryang Baek 4ec22e6636 refac 2026-11-08 00:26:03 +09:00
Timothy Jaeryang Baek d49756cf13 refac 2026-11-08 00:23:22 +09:00
Classic298 0df6058503 fix: per-chat terminal can be selected in a temporary chat and sending then fails (#33866)
Selecting a per-chat workspace terminal in a temporary chat was possible until the first message was sent, and the message then failed with a terminal unavailable error. Per-chat terminals are now hidden while Temporary mode is on, and one that is already selected, including a model default, is deselected when Temporary mode is enabled. Direct terminals and terminals with a default context keep working in temporary chats. Checked in the browser against dev: the picker no longer lists the per-chat terminal and the message gets its reply.

Fixes #33861
2026-11-07 23:06:50 +09:00
Timothy Jaeryang Baek 36e1748c9c refac 2026-11-07 21:35:36 +09:00
Timothy Jaeryang Baek 3209b56dd3 refac 2026-11-07 19:54:09 +09:00
Timothy Jaeryang Baek debac9abfd refac 2026-11-07 19:53:32 +09:00
Timothy Jaeryang Baek 7d4dda2704 refac 2026-11-07 19:50:51 +09:00
G30 def1d048bc chore: remove the Show Files on Terminal Select setting (#33855) 2026-11-07 16:47:42 +09:00
Timothy Jaeryang Baek 89b924aaea refac 2026-11-06 13:35:38 +09:00
Timothy Jaeryang Baek 10ae22ec69 refac 2026-11-05 13:35:07 +09:00
Timothy Jaeryang Baek 76b1ce4f14 refac 2026-11-05 13:26:17 +09:00
Timothy Jaeryang Baek fd7b5cabc0 refac 2026-11-05 13:21:39 +09:00
Timothy Jaeryang Baek a06aa230f7 refac 2026-11-01 21:30:24 +09:00
Timothy Jaeryang Baek 2d7cf5ec99 refac 2026-11-01 20:15:19 +09:00
Timothy Jaeryang Baek 2b1fb53f4d refac 2026-10-30 18:41:19 +09:00
Timothy Jaeryang Baek c5981aaea6 refac 2026-10-29 18:46:35 +09:00
G30 5cc0ed71d6 fix(a11y): opening the Terminal menu focuses its first terminal, not the Add Terminal button, and the arrow keys move through the terminals (#33153) 2026-10-25 00:14:04 -05: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
G30 89e04684d8 fix: valves, show files and terminal buttons in the chat input menus get names for screen readers (#32613) 2026-10-21 02:28:41 +09: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
Timothy Jaeryang Baek 8a42aa53e8 refac 2026-08-19 22:48:32 -07:00
Timothy Jaeryang Baek d4461bd6f3 refac 2026-08-10 18:52:18 -06:00
Timothy Jaeryang Baek 009999f363 refac 2026-08-08 15:47:10 -06:00
Timothy Jaeryang Baek 89caa7c849 refac 2026-07-27 01:19:34 -04:00
G30 ef197de0d7 fix: open settings deep links on client-side navigation and open Add Terminal settings directly (#27552) 2026-07-26 17:26:34 -04:00
Timothy Jaeryang Baek d364101761 refac 2026-07-14 02:55:01 -04:00
Timothy Jaeryang Baek 6e14d0d627 refac 2026-07-14 01:39:40 -04:00
Timothy Jaeryang Baek f1584b5a37 refac 2026-07-14 00:48:40 -04:00
Timothy Jaeryang Baek 5f76c250f8 refac 2026-04-21 15:20:28 +09:00
Timothy Jaeryang Baek 25898116ea chore: format 2026-04-12 18:12:59 -05:00
G30 8977789177 fix(ui): remove capitalize class from terminal menu selected label (#23518) 2026-04-08 12:48:51 -07:00
Timothy Jaeryang Baek 38cc6e4762 refac 2026-03-15 22:25:22 -05:00
Timothy Jaeryang Baek 43c30428a6 refac 2026-02-28 21:16:53 -06:00
Timothy Jaeryang Baek 9544a80aa0 refac 2026-02-27 17:14:54 -06:00
Timothy Jaeryang Baek 3a6c88ade9 refac 2026-02-27 16:47:36 -06:00