Repository navigation
feat(lynx): publish loadBundle first-screen timing - #280
Merged
Merged
Conversation
Two gate findings on the loadBundle timing change: - The strict pipelineOptions parse ran inside the same try as the __RenderPage page-data dispatch, so a host shipping a malformed pipeline identity lost its initial page data along with its FCP entry. The parse now settles in its own try: the diagnostic reports, the pipeline stays null, and the page-data message this event has always delivered still goes out. Red-verified by a test that feeds a pipelineOptions missing needTimestamps alongside real page data and asserts the data reaches the background. - Only the direct-applier flush had coverage; the widened prepared.apply(flushOptions) forwarding had none. A host-driver test now pins that whatever an apply is handed reaches the page flush verbatim, and that a bare apply keeps the bare flush. Red-verified by deliberately dropping the forwarding. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Huxpro
marked this pull request as ready for review
September 4, 2026 01:15
This was referenced Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #276.
Outcome
Native Octane first screens now finish the exact
loadBundlepipeline Lynx started for the page.Performance.getAllPerformanceEntriesconsequently publishes a realname: "loadBundle"entry withtotalFcpandlynxFcpat 0, 1k, and 10k startup rows.Mechanism
__RenderPagerenderOptions.pipelineOptions(pipelineID,pipelineOrigin,needTimestamps). Octane previously validated and discarded all render options.__FlushElementTreecall. Both the direct PAPI path and its staged fallback carry the same option.paintEndand publish FCP. It does not delay or reorder render, publish, capture, or announce.Device acceptance
Device: Lynx Sandbox
aries_10, Android 10, Lynx Explorer, LepusNG. Instrument: Lynx DevTool CDPPerformance.getAllPerformanceEntries; boundary:loadBundle.openTime -> totalFcpandloadBundleStart -> lynxFcp. These are one-shot acceptance observations, not a performance comparison.loadBundle71142dd5ced96ec435dbab6c7ad272428374b751a6623e729d61163990959269loadBundle343005a3eea7ee8bfaa311ca62c8380975dca06860a5f1dcb81ffd4c0a49d566loadBundle64e4d8686ab6c732148b1f2f4137fe370d30a57dd495514b83763c4da7e78c92The 1k screen visibly painted the seeded table and the DevTool error console was empty. Before this change the standing device report is DNF 6/6 at completed Octane cells because no qualifying entry was emitted.
Build provenance: base
new-lynx@8a30448d2; changeeb53f7451; productionBENCH_MTS_PROGRAM=1,BENCH_DEVICE_MESSAGECHANNEL_FALLBACK=1, andBENCH_AUTOROWS={0,1000,10000}.Verification
undefined.pnpm exec vitest run packages/lynx/tests/first-screen.test.ts packages/lynx/tests/first-screen-direct.test.ts packages/lynx/tests/main-thread-events.test.ts packages/lynx/tests/transport-conformance.test.ts— 129 passed.pnpm --filter @octanejs/lynx test— 50 files / 824 tests passed.pnpm exec tsgo --noEmit -p packages/lynx/tsconfig.json— passed.node benchmarks/lynx-table/run.mjs 1— passed at 1k/10k; create remains one command and the existing update/select/clear wire gates are unchanged.git diff --check— passed.pnpm sync— passed and left the worktree clean before push.The legacy
pnpm --filter @octanejs/lynx typecheckstill hits the existingmain-thread.tsACKadoptionstring-widening error. The same error reproduces on the separate #275 worktree andtsgois green here, so it is recorded rather than attributed to this change.Risk
The new data originates from the engine lifecycle, is normalized before reflection, is validated as an exact scalar pipeline identity, and is consumed once. Hosts that omit
pipelineOptionskeep the previous flush behavior. Malformed options report through the existing lifecycle diagnostic path rather than reaching Element PAPI.