Skip to content

Remove the unserved browser shell source assets - #407

Draft
n0rpan wants to merge 3 commits into
mobile/pwa-retire-static-routesfrom
mobile/pwa-prune-legacy-source
Draft

n0rpan wants to merge 3 commits into
mobile/pwa-retire-static-routesfrom
mobile/pwa-prune-legacy-source

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #95. Stacked on #402. Keep this draft until the preceding cutover has been verified in production, and #373 has moved packaged continuity off browser pairing.

Remove the original browser source assets and their JavaScript-only checks once the host no longer serves them. Keep the exact retired service worker as a small offline-upgrade fixture. It installs and caches its original path list using inert fixture responses. After cutover Chromium verifies that the old tab updates normally, only shell caches are cleared, unrelated storage and pairing survive, a fresh visit has no service worker, and a former shell route returns 404.

A local integration branch combined the retirement stack with #373, #382, #405 and #404. Browser-only CI passed in Chromium with Cargo and Node unavailable. Native-only CI passed with Chromium unavailable. That run passed 210 Rust unit tests plus real host pairing, key import, remote PTY, revocation and pairing after restart.

With a previously packaged dev.1933 Linux desktop, the pruned Rust host and the integrated signed test harness, the stock Claude continuity fixture passed. It exercised desktop exit and reopen, native approval, the original-project write, cross-project streaming, Stop, and terminal handoff, execution and return to the same thread. The packaged CI path still depends on #373 and #382 landing. Legacy Web Push removal is separate.

The final rehearsal also combined #416. Native CI passed with Chromium and Node unavailable, including the signed two-host key-copy, stale-review rejection and pairing restart. Browser CI passed with Cargo and Node unavailable, including offline upgrade and preservation of pairing data. Land #416 before removing its matching browser coverage.

The host stopped serving the original phone shell in 6322c55, so the
desktop/ox-host-web/assets tree and its Node and TypeScript-only checks are
dead source. Delete the unserved files and the four .test.mjs checks, and drop
the tsc and node lines from tests/check.sh.

Preserve the real offline upgrade regression instead of the asset tree: move
the exact previous worker to tests/fixtures/legacy-shell-sw.js, and have
pwa_cutover.py serve a compact inert index plus correctly typed placeholder
bodies for every path in that worker's original precache list. The rehearsal
still installs the worker, proves the shell opens offline, and checks the exact
retirement transitions, unrelated caches, IndexedDB pairing, signed-route
bypass, and the uncontrolled fresh visit. Keep the real-host guarded migration
check (pwa_migration.py) and the Rust/native signed fixtures unchanged.

Extract the shared WebDriver call into tests/webdriver.py for both migration
tests; browser.py imports it so desktop continuity still reaches
paired_browser(). operator_browser.py, phone_settings.py and the continuity
workflow are preserved.

Desktop continuity remains blocked on #373: host_continuity_window.py pairs
through browser.py paired_browser, which loads PWA routes the host no longer
serves. Until #373 replaces that path, this change neither removes its
workflow nor claims the guarded continuity test works.

Verified locally: desktop/ox-host-web/tests/check.sh (210 lib tests,
pwa_migration, pwa_cutover, native_client), desktop/ci docs_check.py,
desktop/ci test_*.py (55 tests), cargo fmt for root and desktop.
…wa-prune-legacy-source

# Conflicts:
#	docs/README.md

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.

1 participant