Repository navigation
Connect page diagnostics to source revisions and observed content - #4198
Merged
Merged
Conversation
Capture rendering identity with browser observations, navigate to retained elements, report JavaScript sources and compare revisions. Keep clipboard failure feedback inside the diagnostics dialog. Bump the page protocol for the retained view shape. Reload preview workers across runtime and dependency edits while preserving their lease and ownership. Fixture acknowledgements use the selected runtime, so authored comparisons work across protocols.
leaf-agent
previously approved these changes
Oct 26, 2026
leaf-agent
approved these changes
Oct 26, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The export audit reported five module-local helpers and one real reader it could not follow. Keep the helpers private, and teach the audit to follow a dynamic import's fulfilled namespace through `catch` and `finally`. This preserves `resolvePlace`, which Page diagnostics uses to reveal a captured location, instead of removing a working navigation path. The timeline helpers came from #3973; #4198 added the diagnostics reader through `import(...).catch(...)`. Their intended behavior stays intact. Rebuilding changes only two source hashes in the kernel manifest; compiled runtime and package bundles are byte-identical. Verified locally: the original six-export failure reproduces on main and passes after this change; a focused checker regression fails before the fix and passes afterward, including an unread-export control. All 668 runtime tests, the diagnostics captured-location browser test, and the browser build/type checks pass. Closes #4250 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
The focus-ring sweep still sampled a disclosure in the plan after #4198 deliberately replaced its short caveats with visible paragraphs. It now samples the PR walkthrough's path disclosure and credits the visual overlay that draws native content focus. The corpus Tab walk still includes the plan; no page behavior changes. The isolated disclosure specimen reproduced the 120-second missing-locator timeout before this change and passes afterward, including focus and ring geometry assertions. Python compilation and diff checks pass. The full sweep passes the replacement specimen, then stops at the unrelated `#pr-flow-tab` paint-rule expectation, also reproduced on main before this change and tracked separately in #4412. All gating PR CI checks passed on the pushed head. <details><summary>Focused verification</summary> A temporary pytest fixture restricted `RING_CASES`, `RING_EXAMPLES` and `RING_EXAMPLE_FILES` to the native disclosure specimen, and replaced the independent corpus Tab walk with an empty result. The existing test still performs its focus, painted-rule and ring-geometry assertions. Before the change it waits for the absent plan summary and times out; afterward the walkthrough summary passes in 9.51 seconds. The unrestricted test was also run before and after and stops at `#pr-flow-tab`: its expected rule contains `.lf-rendered:has(> :is(lf-tab, lf-part)`, while the browser's rule contains a newline after `:has(`. </details> Closes #4241 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
…ey read (#6374) Ten tests under `dev/tests` failed on main because five main commits changed what they read, and nothing in CI runs `dev/tests`. Each test still protects behavior that holds, so the fix is in the tests' fixtures and expectations; no developer tool changes. - #5964 put a `leaf` command's refusal in its stdout JSON. The desktop Codex `server start` cases and the unavailable-delivery `start`/`run` handoffs in `test_interact_preview.py` now read it there. - #4198 made the preview follow more files in its checkout. The assets-pin test's fake checkout now creates every file `worker_inputs` names, so the preview no longer subscribes the whole checkout recursively. - #6237 re-indented `docs/index.html`, and the composed-image case in `test_product_page.py` matched on the old indentation. It now matches on `alt` alone. - #5228 changed the journey's page-text read, and #6090 shortened the release marker to seven characters. `test_website_server.py`'s fake page and its expected marker follow both. To weigh: these breaks went unseen for up to three weeks because `dev/AGENTS.md` keeps `dev/tests` out of every CI selection. This PR leaves that rule unchanged. Dispatched by max-sixty from the session that landed #6014. Tests: the three changed modules, 91 passed on macOS. > _This was written by Claude Code on behalf of max-sixty_
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.
Page diagnostics now connects its observations to the content and source revision they describe. The existing CLI and Leaf menu remain advisory: they report measurements without scores or authoring gates.
leaf page inspectwith JavaScript inventory and revision comparisons: changed captured paths, bytes, digests, and CSS/JS deltas. Counts describe source files, not executed code or network transfer.Validation: browser build and
pnpm run check; 19 focused model tests, 4 developer tests, and 4 diagnostics browser tests; native Firefox reproduction and fixed trials; pre-commit checks; independent review, including Opus on the diagnostics changes. The mixed-content evaluation passed on both baseline and candidate in one run each; this characterizes the example rather than establishing a general behavior improvement. Public catalog previews were regenerated.