Skip to content

Web client: opens again on dev; no frosted backdrop in the browser (#281) - #282

Merged
MopigamesYT merged 1 commit into
devfrom
fix/web-smoke-dev
Nov 9, 2026
Merged

MopigamesYT merged 1 commit into
devfrom
fix/web-smoke-dev

Conversation

@MopigamesYT

Copy link
Copy Markdown
Member

Closes #281

Summary

Screenshots

The browser client served by 1loop-server, 5 s after loading (from 1loop-web-smoke):

Before After
Before: the page crashed while opening its first dialog and never pairs After: the pairing sheet over the tinted page

Technical details

  • internal/ui/glass.go: frostedBackdrop returns nil when runtime.GOOS == "js", which callers already treat as "canvas not readable" and draw the tint alone. In the browser, CaptureNow → Fyne's WebGL ReadPixels (github.com/fyne-io/gl-js) passes a Go []byte to syscall/js, which panics with ValueOf: invalid value. The first sheet.Show (connectOrigin in web_js.go) killed the page.
  • cmd/1loop-web-smoke/main.go: on the pairing timeout, the console lines collected so far are logged before failing.
  • Checked locally: make web + 1loop-web-smoke -check passes (pairing, state reads, the event stream, 3 attachments); desktop go build/go vet and wasm go vet ./internal/ui pass.

Assisted-by: Claude Opus 5.5 (claude-opus-5-5) low

🤖 Generated with Claude Code

…anics (#281)

The glass from #247 reads the window to blur it; in the browser Fyne's
WebGL ReadPixels hands JavaScript a Go slice and panics, so the pairing
sheet, the page's first dialog, killed it. There the glass is the tint
alone. The smoke check now prints the page's console when it never pairs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MopigamesYT MopigamesYT added bug Something isn't working desktop Desktop app (Linux, Windows) server Headless server labels Nov 9, 2026
@MopigamesYT MopigamesYT self-assigned this Nov 9, 2026
@MopigamesYT
MopigamesYT requested a review from tpm28 November 9, 2026 22:08
@MopigamesYT
MopigamesYT merged commit 1b4e50c into dev Nov 9, 2026
13 checks passed
@MopigamesYT
MopigamesYT deleted the fix/web-smoke-dev branch November 9, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working desktop Desktop app (Linux, Windows) server Headless server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants