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#33927Fixes#33934Fixes#33935Fixes#33937Fixes#33938
The Visible controls setting in Admin Interface can hide single options from users, but hiding every option in a group left the group itself behind. Users then saw an empty Capabilities or Builtin Tools section in the model editor, a bare Artifacts heading in Interface settings, and an Add Context entry in the chat input menu that opened an empty list. These now disappear once nothing inside them is visible, like the Default Features section already does.
Scanned PDFs often store their pages as JPEG2000 images, which many scanning and OCR tools do by default. Opening such a file showed those pages and their thumbnails as blank white pages. The app now ships the image decoder the PDF viewer needs for that format, so those pages show up as they should.
Fixes#33905
Fixes several zoom problems in the Files pane preview (pdf, docx, and
pptx, which the backend converts to PDF):
- Switching tabs and back reset the page to 100% while the label kept the
old percentage. Hidden tabs measure 0 px wide, so PdfPagesPreview
collapsed its thumbnails; their return resized the viewer, which
re-rendered every page. PdfPagesPreview now keeps its layout while hidden,
so the chosen zoom stays.
- Changing slides in a pptx reset the zoom to 100% while the label kept
the old value. A slide change now carries the zoom and position over to
the new slide.
- A pane resize rebuilt the zoom at 100% but left the label at the old
value. renderAllPages now resets the label with it.
- On pptx slides, zooming drifted off-center and stopped at about 244%.
The element panzoom transforms was flex-centered inside its container,
while panzoom measures bounds and zoom anchors from the container's
top-left corner. That element now fills the container and centers the
slide inside it, so the coordinates match the screen.
- Resetting from a low zoom left the page off to the side, and from a
stalled high zoom it could leave the page enlarged under a 100% label.
The reset moved and zoomed through panzoom's bounds check, which skips
the scale change when it adjusts the position. The reset now rebuilds
the panzoom instance, as every render already does.
Opening a file from Controls → Files and clicking anything in its window, such as the Preview tab, closed the window together with the menu. Clicks inside a window opened from a menu no longer count as clicks outside it, so the preview stays open.
Fixes#33828