Repository navigation
Open a received image in full screen; add React to image messages (ADR-0060 amendment, needs owner approval) - #125
Conversation
The image viewer never asked for full screen on any platform: it was a
modal dialog sized to the window. It now opens in full screen with the DOM
Fullscreen API. The full-screen element is a frame inside the dialog,
because the API refuses a dialog element (checked in WebKitGTK 2.52).
Escape and the bar's button leave full screen and keep the viewer open in
the window; a second Escape or Close closes it, and closing leaves full
screen. Where full screen is refused, the viewer fills the window as
before, now placed by its own CSS rather than the web view's dialog styles.
On Windows wry leaves the web view's full-screen event unhandled, so the
main window reports each fullscreenchange with set_main_fullscreen { on },
which mirrors set_call_fullscreen: host-only, never relayed, main window
only, Windows only (ADR-0060 amendment of 3 December 2026).
Image messages get React in their action bar, before Reply, with the quick
reactions and the reaction chips under the image. The page already counted
reactions to images but never showed them. Reactions.svelte now draws the
picker and the chips for text messages and images alike.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
No actionable comments were generated in the recent review. WalkthroughThe PR adds fullscreen support for the main-window image viewer, including host-side handling and fullscreen state reporting. It also adds quick-reaction and counted-reaction controls to image messages through a shared reaction component. ChangesImage viewer fullscreen
Image message reactions
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant ImageViewer
participant AppSvelte
participant FullscreenReporter
participant setMainFullscreen
participant set_main_fullscreen
ImageViewer->>AppSvelte: document fullscreenchange
AppSvelte->>FullscreenReporter: report fullscreen state
FullscreenReporter->>setMainFullscreen: send on state
setMainFullscreen->>set_main_fullscreen: invoke host command
Possibly related PRs
Suggested reviewers: Merge Risk:
|
|
✅ Re-review posted on
The re-review is posted here. |
There was a problem hiding this comment.
🤖 Automated review of 61c977e
Bot review number 1 of 30.
No defects found. The fullscreen lifecycle, Windows host bridge, capability restrictions, image reaction rendering, and related tests are consistent with the stated design. Static review only; tests were not run.
No issues found.
✅ Approved: no unresolved findings at [P3] MINOR (Defect) or above.
Model chatgpt · skill code-change-review · 21 files reviewed. Reply to an inline comment to discuss it.
Local check results for 61c977e (Windows 11, Rust 1.100.1)
The 13 + 5 test failures: test harness and toolchain, not this PR
Not run here: live homeservers, the native containment gate ( 🤖 Generated with Claude Code |
Resolve the frontend/AGENTS.md conflict by keeping both sides: this branch's image actions (react, reply, pin, report; Reactions.svelte) in the copy-buttons bullet, and main's room-call ring setting (roomCallRing) in the call-sounds bullet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🤖 Automated re-review of 9012684
Bot review number 2 of 30.
New findings are only on code changed since the last review (61c977e); the rest was reviewed then.
The change is mostly consistent with the existing call-window fullscreen design, but the image viewer can become stuck when the browser refuses an exit from fullscreen. The refusal path is explicitly swallowed, while the dialog cancel event has already been prevented.
No new issues found in this update.
✅ Approved: no unresolved findings at [P3] MINOR (Defect) or above.
Model chatgpt · skill code-change-review · 21 files reviewed. Reply to an inline comment to discuss it.
|



Summary
The received-image viewer from #122 never went full screen on any platform: it was a modal
<dialog>sized to the window. It now opens in full screen. Image messages also get a React button, with quick reactions and reaction chips under the image.What changed
ImageViewer.svelteopens in full screen with the DOM Fullscreen API. The full-screen element is a new.image-viewer-frameinside the dialog, because the API refuses a dialog element. Escape or the bar's new Full screen / Exit full screen button returns it to the window. A second Escape or Close closes it, and closing always leaves full screen. Where full screen is refused, the viewer fills the window as before. Itsposition: fixed; inset: 0now comes from our CSS, not the web view's dialog styles.App.sveltereports everyfullscreenchangewith the newsetMainFullscreen(on). The host'sset_main_fullscreen { on }mirrorsset_call_fullscreen: host-only, never relayed to the core, main window only, and it acts on Windows only. Both now shareset_window_fullscreen.capabilities/main.jsongrants it; the call window is refused.fullscreen.tsaddsleaveFullscreen. The dialog'scancelhandler and its teardown use it.Timeline.svelteadds React before Reply in the image's action bar and keeps one image's quick reactions open at a time. The newReactions.sveltedraws the picker and the chips forMessage.svelteandImageMessage.sveltewith the same markup. The page already counted reactions to images but never showed them. Reply, Pin and Report are unchanged.frontend/AGENTS.mdandsrc-tauri/AGENTS.md.Why it changed
The owner reported that the image popout does not go full screen on Linux (at least Wayland), and that it should be full screen, not full window. The cause: nothing ever requested full screen. On Windows, wry leaves WebView2's full-screen event unhandled, so the host must do it, as it already does for the call window's screen share. The owner also asked for a React button on image messages.
Evidence, from WebKitGTK 2.52.6 (webkit2gtk-4.1, as wry uses) on Linux Mint 22.3, run as a real Wayland client of a headless Weston 13. The harness mounts the real
Timeline.svelteinside the app'smain/.shell/.pane/.room-view/.room-mainancestors, with a stubbed IPC:document.fullscreenElementstayed null. The same held at interface zoom 0.8, 1 and 1.25.enter-fullscreen. GTK reports the windowFULLSCREENat 1280×800, with the frame at 1280×800. The first Escape (a synthesized GTK key event) emitsleave-fullscreenand keeps the viewer at 1000×700. The second Escape closes it. Close from full screen restores the window.dialog.requestFullscreen()rejects withTypeError; a<div>inside the modal dialog is accepted.onreact('$i', '👍').Not reproduced: the report that on Linux the viewer does not even fill the window. In this WebKitGTK it filled the window at every zoom tried. The user's WebKitGTK version, GPU compositing or compositor may differ. Full screen avoids depending on the windowed layout, and the explicit
inset: 0is hardening, not a proven fix.Not tested by hand: a real GNOME or KDE Wayland session, X11, Windows (WebView2 plus the host's
set_fullscreen) and macOS. In the headless Weston picture the full-screen surface sits offset under Weston's panel. A plain GTK 3 window withgtk_window_fullscreen()lands in the same place, so that is Weston's placement.Tests
Updated
src-tauri/tests/ipc.rs: the main capability list pinsallow-set-main-fullscreen, and the call window is refusedset_main_fullscreen.frontend/tests/bridge-calls.test.mjs:setMainFullscreen(true/false)sendsset_main_fullscreen { on }.New
src-tauri/tests/ipc.rs: GIVEN the main window WHEN it asks for full screen THEN the host takes it and relays nothing. Badonvalues, the call window and a remote origin are refused.frontend/tests/fullscreen.test.mjs:leaveFullscreenexits only when the element holds full screen, says whether it did, and swallows a refused exit.frontend/tests/room-controls.test.mjs: an image offers React before Reply, a file does not, and its reactions render as isolated chips, most used first, with our own pressed. Withoutonreactthere is no React button, but the chips still show, disabled.Run on Windows:
python tools/dev.py frontend(svelte-check 0 errors, build, 726/726 Node tests),cargo fmt --all -- --check, andcargo test --locked -p persephone-desktop(39 unit tests and 51 IPC tests pass). The fullpython tools/dev.py checkand the workspace tests with--no-fail-fastran too (results). Every step passes except 18 media-worker tests, which fail on this host's Rust 1.100.1 because the test executables moved; CI pins 1.99.1, and they pass once the worker is placed where they look.🤖 Generated with Claude Code
CodeRabbit summary
.image-viewer-frame, becausedialog.requestFullscreen()is rejected in the tested WebKitGTK environment while a child<div>is accepted.position: fixed; inset: 0.setMainFullscreen(on)on eachfullscreenchange. WebView2 needs this host-side handling. The newset_main_fullscreencommand is host-only, not relayed to the core, limited to the main window, and acts only on Windows. It sharesset_window_fullscreenwithset_call_fullscreen.Reactions.sveltecomponent renders these for image and text messages, which removes duplicated markup.Timeline.sveltekeeps only one image's quick-reaction picker open at a time.leaveFullscreen, the bridge call, and image reactions. Rust IPC tests cover the permission and theset_main_fullscreenargument checks.python tools/dev.py frontend,cargo fmt --all -- --check, andcargo test --locked -p persephone-desktoppassed. The fullpython tools/dev.py checkwas still running.