Skip to content

feat(desktop): add desktop web access#36

Merged
maksimzayats merged 8 commits into
mainfrom
web-ui-from-desktop
May 31, 2026
Merged

feat(desktop): add desktop web access#36
maksimzayats merged 8 commits into
mainfrom
web-ui-from-desktop

Conversation

@maksimzayats
Copy link
Copy Markdown
Contributor

Summary

Adds Desktop Web Access so the Electron desktop app can expose a localhost-only browser UI from Settings -> Web Access.

Changes

  • Adds the main-process Web Access server on 127.0.0.1, including renderer serving, /trpc WebSocket upgrades, API proxying, Electric shape proxying, and host-service proxying.
  • Adds persisted settings for enablement and port, with a generated local-db migration.
  • Adds browser-mode renderer shims and switches desktop tRPC calls to WebSocket when Electron IPC is unavailable.
  • Skips Electron SQLite persistence in browser mode while keeping Electric live sync.
  • Adds the Settings -> Web Access page, settings search entries, and command palette entry.
  • Fixes direct Web Access routes and reverse-proxy usage so Tailscale/iPad access can load the active workspace.

Validation

  • bun run --cwd apps/desktop generate:routes
  • bun run --cwd packages/local-db generate --name=web_access_settings
  • bun run --cwd apps/desktop test
  • bun run --cwd apps/desktop test src/renderer/lib/persistent-hash-history/persistent-hash-history.test.ts src/main/web-access/helpers.test.ts
  • bun run --cwd apps/desktop typecheck
  • bun run typecheck
  • bun run lint
  • Manual Web Access verification through local 127.0.0.1:44010 and Tailscale Serve.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated (UTC)
o3-code-api Ignored Ignored Preview May 31, 2026 7:46pm
o3-code-docs Ignored Ignored Preview May 31, 2026 7:46pm
o3-code-marketing Ignored Ignored Preview May 31, 2026 7:46pm
o3-code-web Ignored Ignored Preview May 31, 2026 7:46pm

@maksimzayats maksimzayats marked this pull request as ready for review May 31, 2026 17:05
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf42ff870a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/desktop/src/main/web-access/helpers.ts Outdated
@maksimzayats maksimzayats merged commit 5475e13 into main May 31, 2026
13 checks passed
@maksimzayats maksimzayats deleted the web-ui-from-desktop branch May 31, 2026 20:01
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.

1 participant