Commit Graph
8053 Commits
Author SHA1 Message Date
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
Timothy Jaeryang BaekandG30 7aaa4a692e refac
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
2026-09-10 19:05:36 -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
Timothy Jaeryang Baek d8f27e745b refac 2026-09-08 13:25:16 -04:00
Timothy Jaeryang Baek 254e29b9af refac 2026-09-08 13:19:14 -04:00
Timothy Jaeryang Baek e723dcda58 refac 2026-09-08 01:45:35 -04:00
Timothy Jaeryang Baek 98a920168e refac 2026-09-07 14:46:52 -04:00
Timothy Jaeryang Baek 675b9839f1 refac 2026-09-07 13:26:30 -04:00
G30 d49e424874 fix: enable ask_user submit when the last question uses the other field (#29494) 2026-09-07 13:21:12 -04:00
G30 2823bf64e1 fix: scale dropdown menu item text with the UI scale setting (#29493) 2026-09-07 13:20:43 -04:00
Timothy Jaeryang Baek 9e634c0c56 refac 2026-09-07 13:19:16 -04:00
Timothy Jaeryang Baek e1bfefdf9f refac 2026-09-07 13:13:25 -04:00
Timothy Jaeryang Baek f9f815c862 refac 2026-09-07 12:21:23 -04:00
Timothy Jaeryang Baek 3cda47cdb4 refac 2026-09-07 12:16:09 -04:00
G30 3aabbfebfe fix: wait for a pending note save before navigating away (#29745) 2026-09-07 11:26:45 -04:00
Timothy Jaeryang Baek 3795d5b292 refac 2026-09-06 19:37:59 -04:00
Timothy Jaeryang Baek 57fc344873 refac 2026-09-06 18:30:00 -04:00
Timothy Jaeryang Baek de1203f9b5 refac 2026-09-06 17:46:35 -04:00
Timothy Jaeryang Baek f3eade42ae refac 2026-09-06 17:43:17 -04:00
Timothy Jaeryang Baek 508de20779 refac 2026-09-06 17:27:30 -04:00
Timothy Jaeryang Baek 0fa4dea5ff refac 2026-09-06 17:21:57 -04:00
Timothy Jaeryang Baek d27aa72ab4 refac 2026-09-06 17:13:32 -04:00
Timothy Jaeryang Baek c4a349651e refac 2026-09-06 17:10:01 -04:00
Classic298 831b3b0df2 refac: validate the citation embed URL before use (#29701)
A citation's embed_url now has to be an http or https URL, or protocol-relative, before it is opened or handed to the embed panel. Anything else falls back to the citation modal, which already renders the source.
2026-09-06 16:54:44 -04:00
Timothy Jaeryang Baek cb942bb94c refac 2026-09-06 16:48:30 -04:00
Classic298 7fc979f95b fix: skip embedded HTML parts and restrict link targets in docx preview (#29699)
* fix: skip embedded HTML parts in docx preview

The docx preview no longer renders altChunk parts, so an embedded HTML sub-document is omitted from the rendered output instead of being handed to the renderer.

* fix: restrict docx preview link targets to safe schemes

The docx preview kept whatever link target the document supplied, so a document could point a link at any scheme the browser understands.

After rendering, a link target is now kept only when it resolves to http, https, mailto or tel. Anything else has its target removed and the link renders as plain text. Targets resolve against the page URL, so internal bookmark links and relative targets are unaffected, while an empty target, which the renderer emits for a hyperlink with no external relationship, is dropped instead of reloading the app.

DOMPurify was not used because running it over the rendered document would strip the renderer's own markup and styling, so the check stays limited to link targets. Links using file: or Office application schemes no longer resolve.
2026-09-06 16:40:01 -04:00
G30 ffe6ab9869 fix: stop the note editor date reading as a button (#29708) 2026-09-06 15:31:47 -04:00