Skip to content

feat: native fallback window, automatic updates and a fullscreen flyout rule - #22

Open
AnderCMD wants to merge 2 commits into
mainfrom
fix/settings-open-fallback
Open

AnderCMD wants to merge 2 commits into
mainfrom
fix/settings-open-fallback

Conversation

@AnderCMD

@AnderCMD AnderCMD commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What and why

On the maintainer's machine the settings window did not open: fork/exec rundll32.exe: Access is denied only for the installed taskglass.exe (equivalent test programs could start programs fine; Windows policies, AppLocker and mitigation settings were clean, Kaspersky is the main suspect). This PR makes the settings always reachable and adds the two requested features.

  • Native fallback: Edge, then the shell, then rundll32 are tried and every failure is logged; if all fail the native Win32 window (from 1.3.0, now with all options) opens. It needs no browser and no local port. Last resort: copy the web URL to the clipboard and explain the cause.
  • Automatic updates: updates = notify (default) / auto / off; tray item Check for updates…; controls in both windows. Once a day it reads the latest GitHub release, downloads the installer only from GitHub hosts, verifies the SHA-256 against SHA256SUMS.txt (discarding it on mismatch), then runs it silently; the installer restarts the app (new [Run] entry for silent installs). Dev builds never update. This is now the only network connection and is documented in SECURITY.md and docs/configuration.md. Not code-signed, so the checksum protects against corruption/tampering in transit, not a compromised GitHub account.
  • Hidden-icons flyout on maximized/fullscreen: surfaces.tray_overflow.maximized gives the flyout a second opacity while any monitor has a maximized or fullscreen window; borderless fullscreen windows are now detected as well. Preview scenario in both windows.

Checklist

  • gofmt, go vet ./... and go test ./... pass
  • Tests added/updated for behaviour changes (update package: versions, checksum, host allow-list; config; state; server endpoints)
  • Docs / CHANGELOG updated
  • Taskbar is restored on every failure path (unchanged)
  • Tested on Windows build: web page checked in the built-in browser and the native window on screen with a fake host; the update install and the fullscreen flyout rule were not exercised on a real taskbar/release

🤖 Generated with Claude Code

When security software blocks TaskGlass from starting programs or opening
its local page, the settings window silently failed. Try Edge, then the
default browser via the shell, then rundll32, logging every failure; if all
fail, copy the settings address to the clipboard and show a localized
message that explains the cause and the fix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 18:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

…ut rule

- Native fallback: when the web settings window cannot be opened, show the
  native Win32 window (restored from 1.3.0, now with every new option).
- Automatic updates: new `updates` setting (notify/auto/off), tray item and
  settings controls. Checks GitHub once a day, downloads only from GitHub
  hosts, verifies the SHA-256 against the release's SHA256SUMS.txt and
  silently runs the installer, which restarts the new version. Documented as
  the only network connection; dev builds never update.
- Hidden-icons flyout: second opacity while a window is maximized or
  fullscreen (surfaces.tray_overflow.maximized), in both windows and their
  previews. Borderless fullscreen windows are now detected as maximized.
- Installer relaunches the app after a silent update.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@AnderCMD AnderCMD changed the title fix: never leave the settings window unreachable feat: native fallback window, automatic updates and a fullscreen flyout rule Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants