Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; the IPv6 comparison issue is fixed and no new actionable issues were found. SummaryKeeps automatically discovered icons on the final page origin and checks each redirect before requesting its destination.
|
|
Reviewed at 28e9256 on an Omarchy worker VM, comparing this branch with What ran. The bug, reproduced. On Still open: the page fetch. Regressions on benign sites.
Closing the hole without these regressions needs a redirect policy: whether the page fetch may follow redirects, and whether icon checks compare against the origin after redirects rather than the one typed. That choice is yours or the maintainer's, so I have pushed nothing. #14217 (resolve relative hrefs against the post-redirect page URL) and #14714 (cap page redirects, host-only Google fallback) change the same function and would need reconciling with whatever you choose. Smaller point. The redirect regression test (test/shell.d/webapp-install-test.sh:295–302) never checks that Second opinion. Codex Medium and muse-spark-1.3-contributor (via pi, thinking high) reviewed the same head, read-only. Both reached the page-redirect route, the apex-to-www and same-origin redirect regressions, and the rejected CDN icons. Both had the facts above available, so their independence isn't guaranteed. Codex alone raised the test gap, which I confirmed by reading the test. This waits on the author: deciding how redirects should be handled, and closing the page-fetch route or narrowing what the PR says it closes. |
|
Addressed the worker findings in 1a24a1c. The redirect policy is now explicit and enforced before each request:
The local HTTP regression now proves all of the reported paths: a page redirect toward loopback is refused before the sink is contacted; apex-to-www and final-page-relative icons work; same-origin icon redirects work; the discovered off-origin-redirecting icon is actually requested; and its destination is never contacted. The focused webapp suites and ./test/cli pass. This incorporates the final-page resolution behavior from #14217. The hostname-only Google fallback in #14714 remains separate rather than duplicating that unrelated change here. |
|
Addressed both findings from the latest review in |
|
The latest P1 is fixed in |
A pathless URL with an uppercase scheme, such as HTTP://example.com, never equalled its lowercased origin, so the relative-href base became "HTTP://" and an href like 127.0.0.1:18402/private-action resolved to that host. Only absolute and scheme-relative hrefs were checked against the page origin, and download_site_icon checked redirect hops but not the first request, so the installer requested it. Build the base from whether the page URL has a path rather than from string equality with its origin, and check every automatic icon URL against the page origin in download_site_icon, where the request is made, instead of per href form. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]>
|
Reviewed again at 31ae95f on an Omarchy worker VM, against What ran. The bug, reproduced. On Pushed: 31ae95f. A pathless URL with an uppercase scheme, such as For the maintainer to weigh:
Second opinion. Codex Medium and muse-spark-1.3-contributor (via pi, thinking high) reviewed 08b4cf4 and then my fix, read-only. Codex alone found the uppercase-scheme bypass. Both reached the DNS limit and the size concern, which I had already put in their brief, so their independence isn't guaranteed. Neither found anything in 31ae95f. This is labelled |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Reviewed again at f9ec220 on an Omarchy worker VM, against The new commits. Unquoting the right-hand side of those four What ran. Second opinion. Codex Medium and muse-spark-1.3-contributor (via pi, thinking high) reviewed the two new commits read-only, and neither found a defect. They agreed with my reading of the delta, and their independence isn't guaranteed. The points for the maintainer from the last review haven't changed: the check compares hostnames, not addresses; page redirects are capped at three; the fix is now about 250 lines of URL and redirect handling; and it overlaps #14217 and #14714. This stays |
* Turn off animations when Hyprland renders on the CPU When Mesa has no driver for the GPU behind the display, Hyprland draws every frame with llvmpipe or softpipe, and animations stutter and keep a core busy. Hyprland knows this (#16343) but tells neither its config nor hyprctl, so at session start omarchy-hyprland-software-rendering asks Mesa on the DRM device Hyprland holds (omarchy-hw-software-rendering), marks the session in its runtime dir and reloads. default/hypr/software-rendering.lua then applies Animations Off: no animations, blur or shadows. It loads after the theme and before ~/.config/hypr, so looknfeel.lua still wins, and the Glassy toggles leave blur off on the CPU. The session logs one journal line and shows one notice once the notification server is up. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Only claim the effects the CPU session actually turned off The notice and journal said animations, blur and shadows were off after checking only animations. Check all three after the reload: announce only when all are off, and otherwise log which ones ~/.config/hypr kept on. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Probe the GPU Aquamarine renders on, not only the boot GPU Aquamarine puts the GPU with the most connected built-in panels first when AQ_DRM_DEVICES is unset, ahead of the one firmware booted on, and skips AQ_DRM_DEVICES entries that don't exist. The detector only looked at the first entry and boot_vga, so on a laptop whose panel hangs off the other GPU it asked Mesa about the wrong device. Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]> * Let the animations toggle turn them back on without a GPU The CPU-session defaults loaded no matter what the toggle said, so in a VM or on a Mac without GPU support, Appearance > Animations On did nothing and still said "Animations enabled". VM installs had it worse: their installer turns animations off and promises the toggle brings them back. Turning animations on in a CPU session now leaves a flag that lifts the defaults for that session and later ones, and turning them off clears it. The menu rows and the toggle read the state the session is actually in. The notice now shows once per machine, and not at all where animations were already off by choice, since a VM install already turned them off. * Trim the software-rendering tests Drop the load-order trace (it never compared against the user's config, so it passed with the order backwards), the looknfeel replay whose precedence came from the test's own merge, the notification-server cases that test omarchy-notification-wait, and the exact retry counts. * Expect the no-GPU notice without --transient * Ask Hyprland whether animations are on in a CPU session A looknfeel.lua that turns animations back on left the CPU-session check saying they were off, so the menu offered Animations On and the first toggle kept them on. Without a saved choice, the check now reads animations:enabled from Hyprland in those sessions; GPU sessions still only look at the flag. --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ryan Hughes <[email protected]> Co-authored-by: Codex (gpt-6.1-sol) <[email protected]>
* Turn off animations when Hyprland renders on the CPU When Mesa has no driver for the GPU behind the display, Hyprland draws every frame with llvmpipe or softpipe, and animations stutter and keep a core busy. Hyprland knows this (omacom#16343) but tells neither its config nor hyprctl, so at session start omarchy-hyprland-software-rendering asks Mesa on the DRM device Hyprland holds (omarchy-hw-software-rendering), marks the session in its runtime dir and reloads. default/hypr/software-rendering.lua then applies Animations Off: no animations, blur or shadows. It loads after the theme and before ~/.config/hypr, so looknfeel.lua still wins, and the Glassy toggles leave blur off on the CPU. The session logs one journal line and shows one notice once the notification server is up. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Only claim the effects the CPU session actually turned off The notice and journal said animations, blur and shadows were off after checking only animations. Check all three after the reload: announce only when all are off, and otherwise log which ones ~/.config/hypr kept on. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Probe the GPU Aquamarine renders on, not only the boot GPU Aquamarine puts the GPU with the most connected built-in panels first when AQ_DRM_DEVICES is unset, ahead of the one firmware booted on, and skips AQ_DRM_DEVICES entries that don't exist. The detector only looked at the first entry and boot_vga, so on a laptop whose panel hangs off the other GPU it asked Mesa about the wrong device. Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]> * Let the animations toggle turn them back on without a GPU The CPU-session defaults loaded no matter what the toggle said, so in a VM or on a Mac without GPU support, Appearance > Animations On did nothing and still said "Animations enabled". VM installs had it worse: their installer turns animations off and promises the toggle brings them back. Turning animations on in a CPU session now leaves a flag that lifts the defaults for that session and later ones, and turning them off clears it. The menu rows and the toggle read the state the session is actually in. The notice now shows once per machine, and not at all where animations were already off by choice, since a VM install already turned them off. * Trim the software-rendering tests Drop the load-order trace (it never compared against the user's config, so it passed with the order backwards), the looknfeel replay whose precedence came from the test's own merge, the notification-server cases that test omarchy-notification-wait, and the exact retry counts. * Expect the no-GPU notice without --transient * Ask Hyprland whether animations are on in a CPU session A looknfeel.lua that turns animations back on left the CPU-session check saying they were off, so the menu offered Animations On and the first toggle kept them on. Without a saved choice, the check now reads animations:enabled from Hyprland in those sessions; GPU sessions still only look at the flag. --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ryan Hughes <[email protected]> Co-authored-by: Codex (gpt-6.1-sol) <[email protected]>
* Turn off animations when Hyprland renders on the CPU When Mesa has no driver for the GPU behind the display, Hyprland draws every frame with llvmpipe or softpipe, and animations stutter and keep a core busy. Hyprland knows this (omacom#16343) but tells neither its config nor hyprctl, so at session start omarchy-hyprland-software-rendering asks Mesa on the DRM device Hyprland holds (omarchy-hw-software-rendering), marks the session in its runtime dir and reloads. default/hypr/software-rendering.lua then applies Animations Off: no animations, blur or shadows. It loads after the theme and before ~/.config/hypr, so looknfeel.lua still wins, and the Glassy toggles leave blur off on the CPU. The session logs one journal line and shows one notice once the notification server is up. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Only claim the effects the CPU session actually turned off The notice and journal said animations, blur and shadows were off after checking only animations. Check all three after the reload: announce only when all are off, and otherwise log which ones ~/.config/hypr kept on. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Probe the GPU Aquamarine renders on, not only the boot GPU Aquamarine puts the GPU with the most connected built-in panels first when AQ_DRM_DEVICES is unset, ahead of the one firmware booted on, and skips AQ_DRM_DEVICES entries that don't exist. The detector only looked at the first entry and boot_vga, so on a laptop whose panel hangs off the other GPU it asked Mesa about the wrong device. Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]> * Let the animations toggle turn them back on without a GPU The CPU-session defaults loaded no matter what the toggle said, so in a VM or on a Mac without GPU support, Appearance > Animations On did nothing and still said "Animations enabled". VM installs had it worse: their installer turns animations off and promises the toggle brings them back. Turning animations on in a CPU session now leaves a flag that lifts the defaults for that session and later ones, and turning them off clears it. The menu rows and the toggle read the state the session is actually in. The notice now shows once per machine, and not at all where animations were already off by choice, since a VM install already turned them off. * Trim the software-rendering tests Drop the load-order trace (it never compared against the user's config, so it passed with the order backwards), the looknfeel replay whose precedence came from the test's own merge, the notification-server cases that test omarchy-notification-wait, and the exact retry counts. * Expect the no-GPU notice without --transient * Ask Hyprland whether animations are on in a CPU session A looknfeel.lua that turns animations back on left the CPU-session check saying they were off, so the menu offered Animations On and the first toggle kept them on. Without a saved choice, the check now reads animations:enabled from Hyprland in those sessions; GPU sessions still only look at the flag. --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ryan Hughes <[email protected]> Co-authored-by: Codex (gpt-6.1-sol) <[email protected]>
Summary
Cross-origin icons named by page HTML remain intentionally ignored and use the existing same-origin or Google favicon fallbacks.
Why
A page can otherwise steer automatic icon discovery to an unrelated origin, including services reachable only from the user machine. The redirect policy validates each page and icon redirect before issuing the next request.
The selected page itself can still be a LAN or localhost app. Redirects on that selected host remain supported, including port changes and HTTP-to-HTTPS upgrades. Credentials follow only when the canonical origin is unchanged; they are never copied to an apex/www alias, another port, or another scheme.
Test
bash test/shell.d/webapp-install-test.shbash test/shell.d/webapp-install-escaping-test.shbash test/shell.d/webapp-name-test.shbash test/shell.d/webapp-window-class-migration-test.sh./test/cliThe local fixtures verify final-page-relative icons, same-origin icon redirects, apex-to-www navigation, HTTPS downgrade refusal, page redirects toward loopback, off-origin icon redirects, a preferred icon near the start of a 1.1 MB page, same-origin credential preservation including an explicit default port, and non-forwarding across hostname, port, or scheme boundaries.