Commit Graph
980 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 207c7735f4 refac 2026-11-17 22:24:21 +09:00
Classic298 d4128f0895 fix: a prompt from an embed goes to the wrong chat or to two chats at once (#34161)
* fix: a prompt from an embed goes to the wrong chat or to two chats at once

With a note open and its chat beside it, a prompt sent by an embed in that chat was picked up by that chat and by the main chat behind the note tab, so a tool embed's "ask the chat" button opened two confirmation dialogs. In a side chat the same button asked the prompt in the main chat. Each embed now belongs to the chat that shows it, and only that chat takes its prompt; a prompt from anywhere else goes to the page's main chat as before.

Fixes #34152

* fix: route a prompt from any embedded frame to the chat that shows it

The chat a prompt belongs to is now read from where the sending frame sits on the page, for every frame and not only tool embeds, so artifacts and inline HTML in a chat tab or beside a note also reach the right chat. A prompt that comes from no frame goes to the main chat.

* Name the message's source chat apart from the chat object
2026-11-17 22:20:06 +09:00
Timothy Jaeryang Baek 0dcf8ac53f refac 2026-11-17 22:11:01 +09:00
Timothy Jaeryang Baek c201472cf8 refac 2026-11-17 19:31:57 +09:00
Timothy Jaeryang Baek e1d2722520 refac 2026-11-17 18:48:38 +09:00
Classic298 c7dcba6b04 fix: a reply waiting for a tool approval is treated as finished (#34574)
When a reply stopped to wait for a tool approval, the chat treated it as finished: Regenerate showed up on it while the approval was still open, and in a voice call the answer that followed the approval was never spoken. The chat now shows such a reply as still in progress until the approval is answered and the answer is complete, so Regenerate stays hidden and a voice call speaks the answer.

Fixes #34572
2026-11-17 18:19:36 +09:00
Classic298 a0dda93bc0 fix: Stop button stays after Send now on a queued message (#34556)
After pressing Send now on a queued message, the Stop button sometimes stayed up once the answer had finished, and the chat looked busy until the page was reloaded; it showed up mostly in side chats. When the answer ended while the chat was still updating to show the queued message, the chat kept an outdated view of the answer and went on treating it as running. The chat now looks at the latest state of the answer once it has updated, so the Stop button goes away when the answer ends.

Fixes #34553
2026-11-17 12:45:37 +09:00
Classic298 93a7bbb185 fix: a folder whose terminal working directory is missing loses the first message and leaves an empty chat (#34552)
Sending the first message from a folder whose default terminal points at a working directory that does not exist showed "Working directory is unavailable", but it still created an empty New Chat in the folder and switched to it, with the typed message gone from the message box. Now the warning still shows, but no chat is created: the folder page stays open and the message stays in the message box, ready to send once the directory is fixed.

Fixes #34367
2026-11-17 02:37:51 +09:00
Timothy Jaeryang Baek e58dacf0cb refac 2026-11-17 01:57:18 +09:00
Timothy Jaeryang Baek 9a379eaa73 refac 2026-11-17 01:21:35 +09:00
Timothy Jaeryang Baek 8d7a8dbe54 refac 2026-11-17 00:47:42 +09:00
Timothy Jaeryang Baek c82ceaf1fc refac 2026-11-17 00:31:18 +09:00
Timothy Jaeryang Baek f14dca0eec refac 2026-11-17 00:14:38 +09:00
Timothy Jaeryang Baek 1588ce1bfc refac 2026-11-16 22:54:17 +09:00
Timothy Jaeryang Baek 03d8d3e353 refac 2026-11-16 22:39:24 +09:00
Classic298 94329cf79c fix: chats are not saved when Allow Temporary Chat is off but Enforce Temporary Chat is on (#34537)
With Enforce Temporary Chat switched on and Allow Temporary Chat switched off in the group permissions, all of that user's new chats were opened as temporary chats and never saved, even though the user has no Temporary Chat button at all. Enforce Temporary Chat now only applies to users who are allowed temporary chats, as in v0.13.3, so these users get normal saved chats again.

Fixes #34536
2026-11-16 22:14:57 +09:00
Timothy Jaeryang Baek 7be99d1e97 refac 2026-11-16 21:56:34 +09:00
Timothy Jaeryang Baek c82884453c refac 2026-11-16 21:43:35 +09:00
Timothy Jaeryang Baek abcebd7d0d refac 2026-11-16 20:02:16 +09:00
Timothy Jaeryang Baek 6afb1681c9 refac 2026-11-16 19:38:00 +09:00
Timothy Jaeryang Baek 21605e268d refac 2026-11-16 19:14:07 +09:00
Timothy Jaeryang Baek 5d55ce7246 refac 2026-11-16 18:36:13 +09:00
Timothy Jaeryang Baek 6f04d48166 refac 2026-11-16 14:21:04 +09:00
Timothy Jaeryang Baek 10e695004c refac 2026-11-15 17:20:16 +09:00
Timothy Jaeryang Baek d7b3d08b4f refac 2026-11-14 14:16:19 +09:00
Timothy Jaeryang Baek 694dc9796c refac 2026-11-14 01:15:47 +09:00
Timothy Jaeryang Baek 6378f94a65 refac 2026-11-14 00:45:43 +09:00
G30 9180f1e208 fix: deleting a chat closes the tabs that show it (#34229) 2026-11-13 23:21:54 +09:00
Timothy Jaeryang Baek 747af24b0d refac 2026-11-13 23:05:49 +09:00
Timothy Jaeryang Baek 95d98ac40b refac 2026-11-13 23:03:46 +09:00
Timothy Jaeryang Baek 24b8bb0e68 refac 2026-11-13 22:47:48 +09:00
Timothy Jaeryang Baek 06491f0132 refac 2026-11-13 22:40:53 +09:00
Timothy Jaeryang Baek c0b90785ea refac 2026-11-13 18:53:46 +09:00
G30 dceadf9db0 fix: cancelling "Discard unsaved changes?" no longer leaves the main chat blank (#34300) 2026-11-13 17:38:08 +09:00
Timothy Jaeryang Baek 4720ff19e7 refac 2026-11-13 17:36:00 +09:00
Timothy Jaeryang Baek aa01de6ede refac 2026-11-12 23:10:58 +09:00
Classic298 301a69d401 fix: Fork in a side chat never opens the copy (#34187)
In a side chat, the Fork chat button and /fork made the copy but the side chat stayed on the original conversation, while a fork in the main chat opens right away. The copy now opens in place of the side chat, with its whole conversation, and the sidebar lists it at once as it does for a fork from the main chat.

Fixes #34182
2026-11-12 22:14:29 +09:00
Classic298 2ccf69ceac fix: the chat beside a note raises notifications and loses input requests (#34159)
With a note open and its chat beside it, every finished answer in that chat also popped up as a notification, and a tool's request for input there was cancelled at once by the main chat, which stays loaded behind the note. The chat beside a note is now listed among the chats open beside the main chat, as a side chat already is, so its answers no longer pop up and its input requests stay with it. A chat left by picking another one, beside a note or in a side chat, comes off that list again.

Fixes #34153
Fixes #34154
2026-11-12 21:43:35 +09:00
Classic298 178a6df0dc fix: unsent text of a saved chat is lost on a page reload (#34147)
Text typed into the message box of a chat that already has messages, in the main view or in a side chat, was gone after a reload, while a new chat kept its text. The saved text was put back before the message box was shown, so the box came up empty and that empty text was then saved over it. It is now put back once the box is shown, the same way a new chat already does it.

Fixes #34023
2026-11-12 21:43:21 +09:00
Timothy Jaeryang Baek a14385816f refac 2026-11-12 21:42:52 +09:00
Timothy Jaeryang Baek 08a0472968 refac 2026-11-12 21:26:52 +09:00
Timothy Jaeryang Baek 3830d6ee56 refac 2026-11-11 16:00:25 +09:00
Timothy Jaeryang Baek 6bd86a1611 refac 2026-11-11 14:05:42 +09:00
Timothy Jaeryang Baek 8ccf182d7d refac 2026-11-11 12:04:44 +09:00
Timothy Jaeryang Baek e791cbdde7 refac 2026-11-11 10:29:17 +09:00
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 c15f286498 refac 2026-11-10 23:59:29 +09:00
Timothy Jaeryang Baek 41179ba85a refac 2026-11-10 23:43:38 +09:00
Timothy Jaeryang Baek 3d98e86e2d refac 2026-11-10 22:23:31 +09:00