Timothy Jaeryang Baek
c951b4f262
chore: format
2026-05-11 02:29:13 +09:00
Timothy Jaeryang Baek
3bba1c2270
feat: add IFRAME_CSP env var for srcdoc iframe content security policy
...
Adds an IFRAME_CSP environment variable that injects a Content-Security-Policy
<meta> tag into all srcdoc iframes rendering untrusted content:
- Artifacts (LLM-generated HTML previews)
- FullHeightIframe (tool/embed output)
- FilePreview (user-uploaded HTML files)
- CitationModal (RAG document HTML)
Shared utility in src/lib/utils/csp.ts handles injection with HTML-safe
attribute escaping. URL-based iframes (src=) are correctly excluded.
Env-var only — no PersistentConfig, no admin UI, no DB. Set once at deploy
time, requires restart. Empty string (default) means no CSP restriction.
2026-05-11 01:56:02 +09:00
Timothy Jaeryang Baek
42ecdb5407
refac
2026-03-07 17:11:44 -06:00
Shirasawa
b94e1c9458
fix: Fix memory leaking in Artifacts ( #22303 )
2026-03-06 13:49:06 -06:00
Timothy Jaeryang Baek
ed6449d35f
refac: chat navbar menu
2025-10-26 19:23:55 -07:00
EntropyYue
8ac30955a3
fix: Artifacts duplicate matching
2025-10-10 01:13:59 +08:00
Timothy Jaeryang Baek
596be451ec
refac: styling
2025-09-15 14:28:16 -05:00
Timothy Jaeryang Baek
adaa467f75
refac: styling
2025-09-15 14:08:07 -05:00
Timothy Jaeryang Baek
879778361d
refac
2025-09-15 13:43:05 -05:00
Timothy Jaeryang Baek
99f7d1b62b
doc: changelog
2025-08-22 13:57:37 +04:00
Timothy Jaeryang Baek
8e139b04f0
refac: iframe include allow-downloads by default
2025-06-16 16:24:51 +04:00
Timothy Jaeryang Baek
fcb93f3155
feat: artifacts download button
2025-05-17 00:27:20 +04:00
Timothy Jaeryang Baek
54dc24986f
feat: preview html
2025-05-16 21:47:43 +04:00
Jesper Kristensen
84e0605835
Cleaning up usage of console log in front end
2025-05-15 21:53:07 +02:00
Timothy Jaeryang Baek
0a69db291d
enh: iframe sandbox policy setting
2025-04-12 17:09:39 -07:00
Timothy Jaeryang Baek
af0d99b2a3
refac: artifacts styling
2025-04-12 17:01:45 -07:00
Timothy Jaeryang Baek
ed0b9be4e3
fix
2025-02-27 11:39:59 -08:00
Timothy Jaeryang Baek
0a4dbf7cf0
refac
2025-02-26 23:41:09 -08:00
Timothy J. Baek
822024f44e
refac: artifacts panel behaviour
2024-10-20 22:04:21 -07:00
Timothy J. Baek
63d297756a
enh: mermaid copy content button
2024-10-11 00:10:00 -07:00
Timothy J. Baek and Thomas Nordentoft
7f37b9340d
enh: artifacts, overview back button
...
Co-Authored-By: Thomas Nordentoft <60035638+nordwestt@users.noreply.github.com >
2024-10-08 15:35:35 -07:00
Timothy J. Baek
7b6723a955
refac: styling
2024-10-06 16:22:19 -07:00
Timothy J. Baek
90effa925e
fix
2024-10-06 13:14:35 -07:00
Timothy J. Baek
4b00036dbf
refac: styling
2024-10-06 12:54:20 -07:00
Timothy J. Baek
babfc97c90
enh: svg zoom pan
2024-10-06 12:51:29 -07:00
Timothy J. Baek
5f74cfaa51
enh: artifacts fullscreen
2024-10-06 11:26:02 -07:00
Timothy J. Baek
059ac466e0
refac: styling
2024-10-06 02:49:16 -07:00
Timothy J. Baek
b5efe15f73
refac
2024-10-06 01:58:33 -07:00
Timothy J. Baek
be657f45e4
refac: styling
2024-10-06 01:50:06 -07:00
Timothy J. Baek
70ca6527f6
enh: copy artifacts
2024-10-06 01:27:21 -07:00
Timothy J. Baek
cdd024db81
refac: close artifacts if html codeblock is not found
2024-10-06 01:20:10 -07:00
Timothy J. Baek
3082d0de7a
enh: apply edit to artifacts
2024-10-06 01:12:30 -07:00
Timothy J. Baek
c90cd6019a
refac
2024-10-06 00:46:43 -07:00
Timothy J. Baek
c26d7ff463
refac
2024-10-06 00:42:24 -07:00
Timothy J. Baek
b21af908a7
refac
2024-10-06 00:33:01 -07:00
Timothy J. Baek
539e95a206
refac
2024-10-06 00:00:39 -07:00
Timothy J. Baek and Andrew Tait Gehrhardt
de59ecf8a3
feat: artifacts
...
Co-Authored-By: Andrew Tait Gehrhardt <134739775+atgehrhardt@users.noreply.github.com >
2024-10-05 23:58:02 -07:00