Commit Graph
9515 Commits
Author SHA1 Message Date
Classic298 befdd86eb1 refac: share one guarded helper for chat branch descent (#30070)
The branch navigation handlers each carried their own copy of the loop that walks a message's childrenIds down to the deepest child, eleven copies in total across the single-response view, the multi-response view and Chat.svelte. They now call one getDeepestChildId helper in the frontend utils, which tracks the ids it has already visited and stops when one repeats, the same way the message list build already does.

The helper also absorbs the "start from the last root message" fallback that two of the call sites repeated inline, so every site is now a single call.
2026-09-16 15:41:56 -04:00
qwist1233-cpuandqwist1233-cpu a0c8593c92 i18n(tr-TR): translate 1056 missing Turkish strings (#30034)
Co-authored-by: qwist1233-cpu <267938209+qwist1233-cpu@users.noreply.github.com>
2026-09-16 10:26:16 -04:00
tsumon e669f8aefe i18n: improve Simplified Chinese translations (#30043) 2026-09-16 10:19:44 -04:00
Timothy Jaeryang Baek 88e78b7819 refac 2026-09-16 08:35:01 -04:00
Timothy Jaeryang Baek 6d8e63e366 refac 2026-09-16 00:02:48 -04:00
Timothy Jaeryang Baek dfde08aa73 refac 2026-09-15 23:53:41 -04:00
Timothy Jaeryang Baek 1cdd7aa459 refac 2026-09-15 22:51:15 -04:00
Timothy Jaeryang Baek 66addbd6b4 refac 2026-09-15 22:47:03 -04:00
Timothy Jaeryang Baek 9a93b44495 refac 2026-09-14 17:18:34 -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
Classic298 5af01fe604 refac: make markdown embed rendering opt-in (#29985)
The embed flag defaults to off and is now forwarded through every markdown render path, including the standalone tool-call branch, colon fences and alerts, so embeds render only where a call site opts in. Assistant responses opt in for the viewer's own chat; channel messages pass it explicitly off.
2026-09-13 20:21:00 -04:00
Timothy Jaeryang Baek 6786ae1797 refac 2026-09-13 20:00:29 -04:00
Timothy Jaeryang Baek daf2295932 refac 2026-09-12 19:23:27 -04:00
Timothy Jaeryang Baek 15e2259a2a refac 2026-09-12 19:18:36 -04:00
Timothy Jaeryang Baek 5d66dd6ad2 refac 2026-09-12 19:17:11 -04:00
Classic298 ee25b7d42d fix: cancelled responses no longer keep rendering as still running (#29495)
Pressing stop saved the assistant message as finished while its output items were still marked as running, so the affected block kept showing "Thinking...", "Analyzing..." or "Executing...". That state was written to the database, so it came back after every reload. A tool call cancelled mid-execution was affected as well: it is marked completed as soon as its arguments finish streaming, well before the tool returns, and the client reads that as still executing until the result item arrives.

Cancelling now closes those items before the message is saved, marking them incomplete, which is the status the client already treats as finished without flagging an error. Tool calls waiting for approval are left untouched so their approval prompt survives a reload. The corrected output is sent on the chat:tasks:cancel event that was already being emitted, so an open tab settles immediately instead of only after a reload.

Emitting a chat:completion event instead would have fired response auto-copy, text to speech playback and the chat finished listeners on a response the user had just cancelled.

Verified on a running instance against a mock upstream: cancelling mid-response leaves no item marked as running in the saved message, and the identical run on unpatched code leaves one.

Fixes #29281
2026-09-12 17:57:58 -05:00
Classic298 ca8f151a12 fix: show which file and why knowledge directory sync failed (#29507)
Syncing a knowledge base from a local directory only ever showed a
generic "Error accessing directory" toast when a per-file read
failed, and production builds strip console.error, so nothing else
recorded the cause either. On Windows this hides a real Chromium bug
where files with very long absolute paths throw a NotFoundError from
the File System Access API, leaving no way to tell which file failed
or why.

Both per-file read paths (the directory picker and drag-and-drop) now
wrap read failures with the file's relative path and the underlying
browser error before they reach the toast, so the message actually
names the file and the reason. Reuses the existing translated toast
text instead of adding a new i18n key, so the fix doesn't orphan
existing translations of that string.
2026-09-12 18:55:31 -04:00
Timothy Jaeryang Baek 199490eadb refac 2026-09-12 18:16:19 -04:00
Timothy Jaeryang Baek 5bb321de06 refac 2026-09-12 17:43:01 -04:00
Classic298 08578557de refac: share one community origin allowlist across window message handlers (#29918)
The three community origins were repeated inline in five window message handlers and now come from a single COMMUNITY_ORIGINS constant in constants.ts.

The sync stats modal uses that same list in both directions: it reads messages only from a community origin, replies to the origin the message came from, and names the community origins as the targets of the messages it sends. Its chat id goes into the request as one encoded path segment.
2026-09-12 16:35:16 -05:00
G30 887372aca5 fix: apply the selection highlight only when the editor is unfocused and keep it out of the chat input (#29952) 2026-09-12 16:19:09 -05:00
Timothy Jaeryang Baek 0edd731c74 refac 2026-09-12 17:11:37 -04:00
Classic298 2a44c9d384 refac: validate the URL scheme before rendering a link href (#29890)
Link URLs rendered from markdown, citations and web search results now pass a scheme check before they reach an anchor. A new safeLinkUrl helper sits beside isValidHttpUrl and keeps http, https, mailto, tel and relative URLs, returning undefined for anything else so the label renders without a link. Markdown links with an unusual scheme (ftp, sms, and application deep links such as obsidian or vscode) render as plain text from now on.

The citation checks move off a substring test for "http" onto isValidHttpUrl, which is what Citations.svelte already uses for the same question. That also drops two long-standing quirks: an uppercase HTTP:// source never rendered as a link, and a filename merely containing "http" rendered as a dead external one.
2026-09-12 16:06:58 -05:00
Dolores af54ea6283 i18n: update zh-TW (#29885) 2026-09-12 13:54:00 -05:00
Timothy Jaeryang BaekandG30 7aaa4a692e refac
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
2026-09-10 19:05:36 -04:00
joaoback 5e7e38c035 i18n: add pt-BR translations for newly added UI items and consistency pass (#29870)
New **pt-BR** translations for items introduced in the latest releases, plus a consistency/quality pass across existing strings (grammar, tone, capitalization, pluralization). Placeholders and hotkeys preserved. No logic changes.
2026-09-10 13:57:43 -04:00
Timothy Jaeryang Baek 4948842bea chore: i18n 2026-09-09 23:34:25 -04:00
G30 eb9b7b659f fix: render mentions whose ID contains any non-whitespace character as chips (#29864)
* fix: render channel mentions whose ID contains spaces or parentheses, such as workspace model IDs

* fix: accept any non-whitespace mention ID, matching the model ID rule on dev
2026-09-09 19:27:35 -04:00
Timothy Jaeryang Baek 540467b90a refac 2026-09-09 19:16:16 -04:00
Timothy Jaeryang Baek 8a19e2f867 refac 2026-09-09 17:09:45 -04:00
G30 14e30933af fix: render code blocks in channel model replies with the same editor as every other message (#29861) 2026-09-09 16:56:48 -04:00
G30 b198c94efb fix: open the thread when a notification toast for a thread reply is clicked (#29856) 2026-09-09 16:24:10 -04:00
G30 5b0f8a73ca fix: keep the select chevron clear of the text in shrink-to-fit selects (#29866) 2026-09-09 16:22:00 -04:00
Timothy Jaeryang Baek d70053e449 refac 2026-09-09 12:51:29 -04:00
G30 a253bf0c32 fix: drop tool IDs from the tools and tool-ids URL parameters that do not match a known tool (#29803) 2026-09-09 12:30:32 -04:00
G30 b38755b21c fix: keep sticky code block headers at the top of channel scroll containers (#29836)
* fix: keep sticky code block headers at the top of channel scroll containers

* fix: clip the sticky code block header to the block's rounded corners

* fix: give channel scroll containers their own layer so firefox clips sticky code headers
2026-09-09 12:12:15 -04:00
G30 e4d65d0351 fix: close modal shortcut closes only the top modal (#29830) 2026-09-09 12:11:38 -04:00
Timothy Jaeryang Baek 12b14124b9 refac 2026-09-08 23:18:48 -04:00
Timothy Jaeryang Baek 307b9b9133 refac 2026-09-08 21:16:10 -04:00
Timothy Jaeryang Baek a23b579233 refac 2026-09-08 21:01:26 -04:00
Timothy Jaeryang Baek 3808eace6c refac 2026-09-08 20:44:23 -04:00
Timothy Jaeryang Baek 8556033c6b refac 2026-09-08 20:34:42 -04:00
Timothy Jaeryang Baek 674760bfc1 refac 2026-09-08 16:54:15 -04:00
Timothy Jaeryang Baek 4cc0d48b4d refac 2026-09-08 16:49:54 -04:00
Timothy Jaeryang Baek f80ef8bd00 refac 2026-09-08 16:47:01 -04:00
spoofy 94073b1f16 i18n: complete Japanese translations (ja-JP) (#29798)
* i18n: fill empty Japanese translations

* i18n: restore Japanese translation placeholders

* i18n: polish Japanese UI wording for clarity
2026-09-08 15:59:23 -04:00
Timothy Jaeryang Baek d8f27e745b refac 2026-09-08 13:25:16 -04:00
spoofy 56de6dd792 i18n: es es new UI strings (#29795)
* i18n: translate new UI strings into Spanish

* i18n: use precise Spanish term for Shell
2026-09-08 13:23:51 -04:00
spoofy 02efa6ed10 i18n: ru uk new UI strings (#29794)
* i18n: translate new UI strings into Russian and Ukrainian

* i18n: preserve established Ukrainian Valves terminology

* i18n: shorten Russian Modified label

* i18n: shorten Ukrainian Modified label

* i18n: shorten Russian and Ukrainian default labels
2026-09-08 13:23:41 -04:00