Skip to content

fix: resolve empty window on desktop app launch#93

Closed
vincentmakes wants to merge 10 commits intomainfrom
claude/desktop-app-exploration-2r2D1
Closed

fix: resolve empty window on desktop app launch#93
vincentmakes wants to merge 10 commits intomainfrom
claude/desktop-app-exploration-2r2D1

Conversation

@vincentmakes
Copy link
Copy Markdown
Owner

Three issues causing the blank window:

  1. CSP restriction — Tauri 2 sets a restrictive Content Security Policy by default that blocks navigation to http:// URLs. Set "csp": null since we only connect to localhost.

  2. No loading state — frontendDist pointed to the full admin HTML which doesn't work without the Express server backing it. Created a dedicated loading page shown during startup.

  3. Poor error handling — if the sidecar failed to start, the app silently showed a blank page. Now shows an error message in the loading page and increased timeout to 30 seconds.

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (changes to docs only — no version bump needed)
  • Translation (new or updated language files)
  • Refactoring (no functional changes)

Checklist

Required for all code changes

  • I have tested my changes locally (npm test passes)
  • Version has been bumped in all 3 files (package.json, package-lock.json, version.json)
  • CHANGELOG.md has been updated with a new entry under the correct version

If adding or changing user-visible strings

  • No hardcoded English — all strings use t('key') in JS or data-i18n in HTML
  • New i18n keys added to en.json and all 7 other locale files (de, fr, nl, es, it, pt, zh)
  • escapeHtml() used for any user-provided content rendered as HTML

If documentation-only change

  • No version bump included (docs changes must not bump the version)

Screenshots (if applicable)

claude and others added 10 commits March 19, 2026 05:32
Scaffold a Tauri 2.0 desktop app that wraps the existing Express server
as a sidecar process. The server is compiled into a self-contained binary
using @yao-pkg/pkg, and Tauri provides a native webview window.

New files:
- src-tauri/: Tauri configuration, Rust entry point, sidecar management
- desktop/: Build tooling to compile server.js into platform binaries
- .github/workflows/desktop.yml: CI to build .dmg/.msi/.AppImage/.deb
- .dockerignore: Exclude desktop files from Docker build context

No existing code is modified. Docker image is unaffected.

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj
…on-2r2D1

Add Tauri desktop app scaffold with CI pipeline
- Add desktop/package-lock.json (required by npm ci)
- Generate Tauri icons from existing icon.png
- Replace deprecated macos-13 runner with macos-latest
- Split tauri-action into release (tag push) and test (workflow_dispatch) steps
- Add desktop/node_modules to .gitignore

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj
…on-2r2D1

Fix desktop CI: add missing files and fix workflow errors
Split the chained method call into a named MutexGuard binding so
it is dropped before the state reference, fixing E0597.

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj
Evaluate .lock().unwrap().take() as a single expression so the
MutexGuard temporary drops at the semicolon, before `state` is
dropped at the end of the block.

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj
…on-2r2D1

Claude/desktop app exploration 2r2 d1
The GITHUB_TOKEN needs explicit write permission to upload
release assets. Without it, the upload fails with 403.

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj
…on-2r2D1

fix: add contents write permission to desktop workflow
Remove the desktop app experiment (Tauri + pkg sidecar). The approach
had too many compatibility issues with native modules, webview printing,
and blob downloads to be maintainable.

Removes:
- src-tauri/ (Rust Tauri shell)
- desktop/ (sidecar build tools)
- .github/workflows/desktop.yml (CI pipeline)
- Desktop-related entries in .gitignore and .dockerignore

https://claude.ai/code/session_01UvYKdrhaLpgAVwWrGJTvGj
@vincentmakes vincentmakes force-pushed the claude/desktop-app-exploration-2r2D1 branch from 2edb062 to be9ad1b Compare March 19, 2026 09:20
@vincentmakes vincentmakes deleted the claude/desktop-app-exploration-2r2D1 branch March 19, 2026 09:25
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