Skip to content

perf(mobile): preserve cache and dispose replaced development runtimes - #341

Merged
rynfar merged 1 commit into
pylonfrom
upstream/2026-09-06-mobile-dev-refresh
Sep 7, 2026
Merged

rynfar merged 1 commit into
pylonfrom
upstream/2026-09-06-mobile-dev-refresh

Conversation

@rynfar

@rynfar rynfar commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator

Mobile development cleared Metro’s transform cache on every start and replaced foundational runtimes without disposing their resources. Keep the cache for normal starts, provide an explicit reset command, and replace the connection layer through a stable development atom runtime. The Uniwind patch skips invalidating unchanged generated styles.

Ports the development lifecycle slice of upstream #8694, 1f8ed54add4133ac39effceded8fc1fff12d8e03 (DEF-8). Environment scopes inherit the registry scope so interrupted startup cannot leave a session alive. Pylon schemes and fingerprint runtime policy stay intact. Product navigation, long-press menus, native menu patches, and icon loading are outside this slice.

Validation: 26 focused runtime, stylesheet-refresh, and registry tests pass; mobile and client-runtime typechecks and scoped lint pass. Dependency installation applies the patch. No physical-device build or OTA has been published.

Built and launched an ad-hoc signed iOS development client against disposable Pylon state. Metro served the current source, and native home, thread, review, and file preview views rendered after source restoration. Runtime disposal and unchanged-style refresh behavior are covered by the focused development tests; no physical-device or OTA update was performed.

Before After
Before After

Native navigation and file preview clip.

Model: GPT-6 Astra. Harness: Codex.

…place

Port the development lifecycle slice of upstream #8694 (1f8ed54add4133ac39effceded8fc1fff12d8e03). Retain Pylon schemes, native fingerprints, and existing product navigation/menu behavior.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XL labels Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.8 KiB 13.8 KiB +6 B (+0.0%) 15.1 KiB ✅
Codex Thread snapshot wire 7.1 KiB 7.1 KiB −4 B (−0.1%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.7 KiB 6.7 KiB +10 B (+0.1%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 57.4 KiB 57.4 KiB 0 B (0.0%) 66.4 KiB ✅
Codex Live turn messages 10 10 0 (0.0%) 21 ✅
Claude Total thread wire 13.8 KiB 13.8 KiB +74 B (+0.5%) 15.1 KiB ✅
Claude Thread snapshot wire 7.1 KiB 7.1 KiB +13 B (+0.2%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.7 KiB 6.7 KiB +61 B (+0.9%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 58.1 KiB 58.2 KiB +88 B (+0.1%) 66.4 KiB ✅
Claude Live turn messages 8 10 +2 (+25.0%) 21 ✅

Baseline: 16c999a · PR result: 8226cbf · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 111.2 KiB
  • Claude decoded thread snapshot: 111.9 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@rynfar
rynfar marked this pull request as ready for review September 7, 2026 04:19
@rynfar
rynfar merged commit 665a493 into pylon Sep 7, 2026
22 checks passed
@rynfar
rynfar deleted the upstream/2026-09-06-mobile-dev-refresh branch September 7, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant