Skip to content

fix(polkavm): run Zed workspace on current ABI-one rollout - #216

Closed
replghost wants to merge 2 commits into
feat/pvm-wasmfrom
fix/zed-workspace-delivery
Closed

fix(polkavm): run Zed workspace on current ABI-one rollout#216
replghost wants to merge 2 commits into
feat/pvm-wasmfrom
fix/zed-workspace-delivery

Conversation

@replghost

Copy link
Copy Markdown
Collaborator

Supersedes #207. Rebased ONLY the Zed compatibility fix onto the currently deployed f60c4ae baseline; intentionally does not bring back the computer-contract commits that were moved to the separate stack.

  • App runtime ABI stays 1; preserve latest host gates and rollout policy.
  • Pin verified browser package 0.1.1 from paritytech/useragent-kit#1736 / runtime fix: support Zed workspace rendering within runtime ABI 1 polkavm-host-runtime#55.
  • Support physical keyboard modifiers/click counts, UTF-8 commits/IME, wheel input and logical surface geometry needed by real Zed MultiWorkspace.
  • Bounded compiler and registered offscreen color views fix actual guest startup and path-rendering panic.
  • Preserve device restoration and no-per-frame GPU fence behavior.

Verification: all 38 turbo lint/typecheck/test tasks succeeded (32 cache hits), artifact inventory/SHA256/provenance and formatting pass. Actual 0.3.0 ABI1 Zed guest reaches workspace-ready using compiler backend on this restacked host. The previously failing IME/multiline select/copy sequence completed with 17 observed offscreen passes and continued frames without panic. Earlier same-artifact local run observed 88 passes.

Approved deployment environment: westendli.dev only. Guest source/package: paritytech/zed-polkavm#4 and paritytech/polkavm-app-kit#50. Package 0.1.1 is built from the pushed SDK source and vendored with full checksums; npm publication is not claimed.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

⚡ Performance Report

⚠️ No baseline found on main. This PR's results are recorded but cannot be compared.
Merge to main to establish a baseline.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

Chunks over 500 KB:

File Raw Brotli Gzip
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1.05 MB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.92 MB
host/assets/smoldot.js 3.05 MB 2.27 MB (+390 B) 2.34 MB (-2 B)
host/assets/smoldot_worker.js 3.02 MB 2.26 MB 2.33 MB
host/assets/truapi_server_bg.wasm 7.20 MB 5.29 MB 5.56 MB
host/assets/wasm/web/truapi_server_bg.wasm 7.20 MB 5.29 MB 5.56 MB
sandbox/polkavm-runtime/polkavm-browser-runtime.wasm 1.03 MB 178.3 KB 239.4 KB
Total 28.12 MB (+1.29 MB) 18.32 MB (+255.4 KB) (-35%) 19.48 MB (+324.2 KB)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 505 B 505 B 505 B
host/.well-known/assetlinks.json 2.1 KB 343 B 427 B
host/assets/_md.js 6.3 KB 2.6 KB 2.8 KB
host/assets/blake2.js 11.7 KB 4.1 KB 4.7 KB
host/assets/bridge.js 129.0 KB (+4.0 KB) 31.1 KB (+1.1 KB) 37.2 KB (+1.3 KB)
host/assets/browser.js 22.9 KB 7.6 KB 8.6 KB
host/assets/client.js 10.6 KB (+379 B) 3.4 KB (+126 B) 3.9 KB (+149 B)
host/assets/dotli-debug-bus.js 708 B 708 B 708 B
host/assets/get-sync-provider.js 2.7 KB 1.1 KB (+3 B) 1.2 KB (+1 B)
host/assets/hex.js 160 B 160 B 160 B
host/assets/index.css 55.2 KB (+200 B) 8.6 KB (+60 B) 9.9 KB (+74 B)
host/assets/index.js 164.7 KB (+6.9 KB) 43.2 KB (+1.8 KB) 51.8 KB (+2.1 KB)
host/assets/manifest.js 21.5 KB (-1.8 KB) 7.0 KB (-406 B) 7.7 KB (-417 B)
host/assets/network.js 6.3 KB 2.2 KB 2.5 KB
host/assets/panel.js 76.4 KB (+128 B) 20.6 KB (+40 B) 23.2 KB (+4 B)
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1.05 MB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.92 MB
host/assets/paseo.smol.json 25.2 KB 5.6 KB 7.2 KB
host/assets/previewnet.smol.json 63.7 KB 7.6 KB 13.4 KB
host/assets/proofs.js 29.3 KB 8.6 KB (+7 B) 9.5 KB (+2 B)
host/assets/resolve.js 158 B 158 B 158 B
host/assets/rolldown-runtime.js 716 B 716 B 716 B
host/assets/rpc-resolve.js 3.0 KB (+369 B) 1.2 KB (+113 B) 1.4 KB (+109 B)
host/assets/scale-ts.js 4.8 KB 2.0 KB 2.2 KB
host/assets/smoldot.js 3.05 MB 2.27 MB (+390 B) 2.34 MB (-2 B)
host/assets/smoldot_worker.js 3.02 MB 2.26 MB 2.33 MB
host/assets/spans.js 2.7 KB (+232 B) 1.1 KB (+85 B) 1.3 KB (+112 B)
host/assets/src.js 84.2 KB 26.5 KB (+6 B) 29.6 KB (-1 B)
host/assets/styles.css 15.3 KB 3.3 KB 3.9 KB
host/assets/substrate-client.js 5.8 KB 2.2 KB (-3 B) 2.5 KB (+1 B)
host/assets/truapi_server_bg.wasm 7.20 MB 5.29 MB 5.56 MB
host/assets/twoX.js 2.8 KB 1022 B 1.1 KB
host/assets/utils.js 3.5 KB 1.4 KB 1.5 KB
host/assets/wasm/web/README.md 13.4 KB 13.4 KB 13.4 KB
host/assets/wasm/web/package.json 371 B 371 B 371 B
host/assets/wasm/web/truapi_server.d.ts 12.6 KB 12.6 KB 12.6 KB
host/assets/wasm/web/truapi_server.js 49.7 KB 7.9 KB 9.3 KB
host/assets/wasm/web/truapi_server_bg.wasm 7.20 MB 5.29 MB 5.56 MB
host/assets/wasm/web/truapi_server_bg.wasm.d.ts 4.0 KB 4.0 KB 4.0 KB
host/assets/web.js 18.2 KB 4.6 KB (-11 B) 5.1 KB (-6 B)
host/assets/worker-runtime.js 28.9 KB (+28.8 KB) 6.8 KB (+6.7 KB) 7.8 KB (+7.7 KB)
host/assets/worker-runtime.js 106 B 106 B 106 B
host/assets/ws.js 23.1 KB 7.5 KB (+1 B) 8.3 KB
host/dotli.png 11.5 KB 11.5 KB 11.5 KB
host/favicon.svg 1.8 KB 1.8 KB 1.8 KB
host/host-sw.js 3.1 KB 1.2 KB (+6 B) 1.4 KB
host/icon-192.png 12.5 KB 12.5 KB 12.5 KB
host/icon-512.png 42.8 KB 42.8 KB 42.8 KB
host/index.html 29.6 KB (-4.3 KB) 5.5 KB (-1.5 KB) 6.8 KB (-1.7 KB)
host/manifest.webmanifest 441 B 441 B 441 B
host/workbox.js 14.8 KB 4.6 KB 5.1 KB
sandbox/app-sw.js 11.3 KB (+1.4 KB) 3.5 KB (+322 B) 4.0 KB (+381 B)
sandbox/assets/bitswap-bridge.js 840 B 840 B 840 B
sandbox/assets/fetch.js 3.4 KB 1.2 KB (+1 B) 1.4 KB (+3 B)
sandbox/assets/index.css 55.2 KB (+200 B) 8.6 KB (+60 B) 9.9 KB (+74 B)
sandbox/assets/index.js 175.9 KB (+52.5 KB) 49.5 KB (+14.6 KB) 57.7 KB (+17.0 KB)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB (+20 B) 591 B (+9 B) 798 B (+10 B)
sandbox/polkavm-runtime/LICENSE-MPL-2.0 16.3 KB 16.3 KB 16.3 KB
sandbox/polkavm-runtime/PolkaVM-LICENSE-APACHE 10.6 KB 10.6 KB 10.6 KB
sandbox/polkavm-runtime/PolkaVM-LICENSE-MIT 1023 B 1023 B 1023 B
sandbox/polkavm-runtime/SHA256SUMS 631 B 631 B 631 B
sandbox/polkavm-runtime/SOURCE.json 501 B 501 B 501 B
sandbox/polkavm-runtime/polkavm-browser-runtime.wasm 1.03 MB 178.3 KB 239.4 KB
sandbox/polkavm-runtime/polkavm-gpu-worker.js 63.8 KB 10.9 KB 12.6 KB
sandbox/polkavm-runtime/polkavm-worker.js 85.1 KB 13.8 KB 16.4 KB
Total 28.12 MB (+1.29 MB) 18.32 MB (+255.4 KB) (-35%) 19.48 MB (+324.2 KB)

Commit: 30d6dc1

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ E2E Product suite skipped — pairing/signing infrastructure is unavailable.

The truapi-host CLI could not complete pairing (testnet chains or
identity backend outage). This is not a dot.li test failure.
Re-run from the Actions tab once the infrastructure recovers.

Logs: https://github.com/paritytech/dotli-community/actions/runs/34288688806

@replghost

Copy link
Copy Markdown
Collaborator Author

Deployed and verified on westendli.dev only: https://github.com/paritytech/dotli-community/actions/runs/34288724689 . Quality gate, deployment, and all existing-product smoke checks passed. All eight live runtime files match the vendored SHA-256 digests.

Zed 0.3.0 is now published as zed.paseo, root bafybeia7nkbeirmatlhlodnc23vvgeagxgczs4fy3oavkubozqh5j2xjga. Root and app.zed records read back correctly with runtime ABI 1; all 12 archive files match the local package. https://zed.westendli.dev/ runs the actual MultiWorkspace guest on the compiler backend.

Live checks: IME/multiline select-copy, fuzzy palette/new-file creation, undo removes text and redo restores it, surface resize (generation 2, 1440x854), and full reload. 639 observed offscreen passes without guest/GPU errors. Reload continued through frame 891. Approx. 11–12 FPS and 26–28s first frame on the verification workstation; performance remains rough.

First load hit a new-CID bitswap peer miss while the verification browser also had a pending host update. Applying the advertised update resolved it on the same smoldot-direct backend/environment; no gateway fallback or alternate environment was used to run the editor. Session-only files/clipboard and unavailable native services remain documented limitations.

@replghost

Copy link
Copy Markdown
Collaborator Author

The Zed ABI-1 host changes and runtime-pin documentation are now included in the existing integration PR #185 (d1826cb and fd3d430), along with the framebuffer fit correction (249395a). Closing this parallel PR so #185 remains the single host integration review. The live deployment is unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant