Skip to content

perf(runtime): install agent script once per document - #113

Merged
yashranaway merged 1 commit into
mainfrom
t3code/cache-agent-runtime
Aug 10, 2026
Merged

perf(runtime): install agent script once per document#113
yashranaway merged 1 commit into
mainfrom
t3code/cache-agent-runtime

Conversation

@yashranaway

Copy link
Copy Markdown
Collaborator

Closes #27

Summary

  • extract the shared agent JavaScript into a compiled SwiftPM resource
  • install it once per document in WebKit’s named content world
  • preinstall it in Chromium, cache the isolated context, invalidate it from navigation/runtime events, and retry one stale-context race
  • package and install the resource bundle on macOS, Linux tarballs, and Docker
  • remove the jsdom regex extraction coupling and improve Linux E2E failure output
  • mark backlog B7 and architecture decision 10 implemented

Validation

  • npx --yes pnpm@9.15.0 test:runtime
  • npx --yes pnpm@9.15.0 test:e2e:linux (includes 43/43 protocol tests and installed-resource coverage)
  • shell syntax checks for build/install/E2E scripts

@yashranaway yashranaway added the macos-e2e Run the macOS WKWebView E2E suite label Aug 10, 2026
@yashranaway yashranaway reopened this Aug 10, 2026
@yashranaway
yashranaway force-pushed the t3code/cache-agent-runtime branch 3 times, most recently from 5bcdef1 to 2fa855e Compare August 10, 2026 20:59
@yashranaway
yashranaway force-pushed the t3code/cache-agent-runtime branch from 2fa855e to 84fbf3f Compare August 10, 2026 21:03
@yashranaway
yashranaway merged commit 353c2d3 into main Aug 10, 2026
13 of 14 checks passed
@yashranaway
yashranaway deleted the t3code/cache-agent-runtime branch August 10, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macos-e2e Run the macOS WKWebView E2E suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

B7 — Runtime injection cost

1 participant