feat: add host-aware PWA support - #150
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4df7cbdab9
ℹ️ 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".
|
@codex review Focus on published @codori/client PWA dependency availability and active-turn wake-lock request coalescing. Confirm the existing VueUse-managed visibility reacquisition remains intact. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Summary
/sw.jsCodori @ <hostname-or-ip>sw.jsin the packaged server bundle and verify static service-worker deliverysubmittedorstreamingWhy
Codori can run on several hosts, and users may install more than one of them on the same phone or desktop. A static PWA name would make those installations indistinguishable. The server-owned manifest derives a safe label from the current request hostname or IP while sharing one build artifact.
Long-running normal turns can also outlive a mobile screen timeout. The new app-level coordinator holds one best-effort screen wake lock across all active normal project and projectless-chat sessions, without changing realtime voice ownership.
Commit structure
1d16ec8— host-aware PWA, packaged/sw.js, icons, and sidebar branding4df7cbd— normal active-turn wake-lock lifecycle and tests6c62b10— published PWA dependency and pending wake-lock request coalescingValidation
pnpm install --frozen-lockfilepnpm --filter @codori/client lintpnpm --filter @codori/client typecheckpnpm --filter @codori/client test— 84 files, 559 tests passedpnpm --filter @codori/client build— generatedsw.js, Workbox, and 357 precache entriespnpm --filter @codori/client pack --dry-run— published package includes the exported Nuxt configurationpnpm --filter @codori/server lintpnpm --filter @codori/server typecheckpnpm --filter @codori/server test— 20 files, 262 tests passedpnpm --filter @codori/server build/sw.js, hostname/IP manifests, and icons returned the expected content types and valuesKnown limits
/xr/bundleCloses #149