Commit Graph
109 Commits
Author SHA1 Message Date
Classic298 f8a5186480 fix: Enter sends the channel message instead of picking the highlighted emoji or command (#34618)
In a channel, typing an emoji shortcode like :swea or a slash command and pressing Enter sent the half-typed text right away. Enter only checked for an open suggestion list inside the message box, but that list is drawn outside it, so it was never found. Enter now picks the highlighted suggestion again, as it does in the main chat input.

Fixes #34616
2026-11-18 18:34:07 +04:00
Timothy Jaeryang Baek c82ceaf1fc refac 2026-11-17 00:31:18 +09:00
G30 5e8f48a7e0 fix: the focus shortcut puts the cursor in the channel's message box (#34345) 2026-11-13 19:05:26 +09:00
Timothy Jaeryang Baek 8588bd2a72 refac 2026-11-11 10:20:45 +09:00
Timothy Jaeryang Baek da850248d1 refac 2026-11-10 15:56:52 +09:00
Classic298 b13d02e092 fix: copy buttons, clipboard prompts and Auto-Copy Response break over plain HTTP on a LAN address (#33939)
Opened by an address such as http://192.168.1.20:8080 (no HTTPS, not localhost), the browser gives the page no direct clipboard access, and several things broke. Copy link on a comment and in search, Copy Share Link in Shared Chats, the webhook Copy URL, the Chat ID in the chat status bar, Copy branch name and Copy commit hash in the Git panel and the copy button of spreadsheet previews copied nothing, Copy Formatted Text pasted the ** and # symbols instead of the formatting, copied text lost its last line break, prompts using {{CLIPBOARD}} could not be inserted, and switching on Auto-Copy Response did nothing and was not saved. These copies now work on such addresses with the exact text and formatting, and {{CLIPBOARD}} prompts insert with the "Failed to read clipboard contents" message shown whenever the browser refuses clipboard access. Auto-Copy Response cannot work there, since the browser only lets a page copy right after a click, so the switch now stays off and shows its clipboard permission message.

Fixes #33927
Fixes #33934
Fixes #33935
Fixes #33937
Fixes #33938
2026-11-08 08:52:11 -05:00
Timothy Jaeryang Baek 21fc016141 refac 2026-11-08 21:57:07 +09:00
Timothy Jaeryang Baek 563d621854 refac 2026-11-03 16:36:49 +09:00
Classic298 c9ee89467e feat: {{USER_ROLE}} prompt variable for the signed-in user's role (#33441)
Prompts could use the user's name and email but not their role, so role-aware system prompts needed a custom Filter function. Model system prompts, the user's own system prompt, saved prompts used with a slash command and chat requests through the API now replace {{USER_ROLE}} with the role, such as admin or user. Requested in #4765.
2026-10-31 07:47:17 +09:00
Timothy Jaeryang Baek 9d1b4ef362 refac 2026-10-30 16:01:47 +09:00
G30 eb2bcba215 fix(channels): keep large pastes as text when Shift is held (#33190) 2026-10-26 17:26:42 +09:00
G30 1d0b782719 fix: picking a prompt from / in a channel inserts the prompt text (#32713) 2026-10-21 03:26:24 +09:00
G30 70fb5462ea fix: Compress Images in Channels left at its default compresses channel images (#32693) 2026-10-21 03:01:27 +09:00
Timothy Jaeryang Baek 99457b373e refac 2026-10-15 22:50:36 +04:00
Timothy Jaeryang Baek 8132145936 refac 2026-10-15 17:42:03 +04:00
Timothy Jaeryang Baek 9d0aa791ad refac 2026-10-15 17:40:50 +04:00
Timothy Jaeryang Baek 7dc91de86c refac 2026-10-15 17:08:00 +04:00
Timothy Jaeryang Baek 323139cdf5 refac 2026-10-14 18:11:14 +04:00
Timothy Jaeryang Baek ba3e227358 refac 2026-10-14 16:01:10 +04:00
Timothy Jaeryang Baek f9c524d31d refac 2026-10-14 15:54:56 +04:00
Timothy Jaeryang Baek 04bccecb8e refac 2026-10-12 17:29:04 +04:00
Timothy Jaeryang Baek 7d205a86dc refac 2026-10-08 23:49:38 +04:00
Timothy Jaeryang Baek 7937e8a1fd refac 2026-10-07 16:06:08 +04:00
Timothy Jaeryang Baek 8a4547104c refac 2026-10-01 08:13:45 +04:00
Classic298 6c322941d1 fix: iPhone HEIC photos are rejected by vision models (#31649)
iPhone photos were only converted to JPEG when the browser reported their type as exactly image/heic. Firefox reports image/heif and some browsers report no type at all, so those photos were uploaded as HEIC and vision models failed with an error. When conversion did run, the JPEG was still uploaded with the HEIC file name and type, so the model was told it was HEIC anyway. HEIC and HEIF photos are now converted whatever type the browser reports and are uploaded as a .jpg with the JPEG type, in chats, channels and notes.

Fixes #28411
2026-09-30 21:03:07 +04:00
G30 3d46a59b2d fix: turn a large channel paste into a file when Paste Large Text as File is on (#31366) 2026-09-30 19:42:46 +04:00
G30 b233d0d94b fix: paste the clipboard as is for {{CLIPBOARD}}, keeping dollar signs (#31364) 2026-09-26 07:28:02 +04:00
G30 06bc8cb91e fix: honor Ctrl+Enter to Send in the channel message input (#31319) 2026-09-25 00:06:21 -04:00
G30 aa65f55692 fix: insert the whole emoji when its shortcode is a codepoint sequence (#30213) 2026-09-21 08:07:45 -04:00
Timothy Jaeryang Baek f677fdbf50 refac 2026-09-03 20:22:32 -04:00
Timothy Jaeryang Baek ba885d0026 refac 2026-08-13 13:03:56 -06:00
Timothy Jaeryang BaekandClassic298 c8f8fa451a a11y
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
2026-08-11 01:25:20 -06:00
Timothy Jaeryang Baek d4461bd6f3 refac 2026-08-10 18:52:18 -06:00
Timothy Jaeryang Baek 89caa7c849 refac 2026-07-27 01:19:34 -04:00
Timothy Jaeryang Baek 280179828a refac 2026-07-15 02:11:10 -04:00
Timothy Jaeryang Baek 2040095050 enh: shortcode emojis 2026-03-29 19:01:50 -05:00
Timothy Jaeryang Baek 139e764b2f refac 2026-03-23 23:39:52 -05:00
G30 b062235d0c fix(channel): allow sending image-only messages without text (#22752) 2026-03-17 17:37:41 -05:00
Timothy Jaeryang Baek 1357dc6737 chore: format 2026-02-28 21:28:59 -06:00
Shirasawa 5bb1c42fa8 fix: Fix memory leaking of MessageInput (#21968) 2026-02-28 14:03:08 -05:00
Timothy Jaeryang Baek 5297dceb2a chore: format 2026-02-12 17:36:19 -06:00
Timothy Jaeryang Baek 5291b3dca2 refac 2026-02-12 16:36:00 -06:00
Classic298 5a0488bb18 init (#20881) 2026-01-22 20:30:07 +04:00
Classic298 2acee80829 fix: normalize Windows CRLF line endings in clipboard text (#20283)
On Windows, clipboard text uses CRLF (\r\n) line endings which can cause newlines to be lost or displayed incorrectly when pasted via the {{CLIPBOARD}} variable.

Fixed by converting CRLF to LF before inserting clipboard text.

Fixes #19370
2025-12-31 02:22:13 -05:00
Timothy Jaeryang Baek f1bf4f20c5 feat: chat_file table 2025-12-21 23:17:53 +04:00
Timothy Jaeryang Baek 96ec66a89c refac 2025-12-21 20:49:17 +04:00
Timothy Jaeryang Baek a1155dfeb7 refac 2025-12-21 20:48:37 +04:00
Timothy Jaeryang Baek 2bccf8350d enh: channel files 2025-12-10 15:48:42 -05:00
Timothy Jaeryang Baek 22f1b764a7 refac/perf: channel image upload behaviour 2025-12-03 19:06:02 -05:00
Timothy Jaeryang Baek 3ebb3e2143 refac: styling 2025-11-30 03:56:12 -05:00