Skip to content

fix: isolate the website commit provider between tests - #4398

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4251
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4251

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Website restore installs LEAF_PAGE_COMMIT directly, but the session fixture did not restore it. A later quiet Codex hook inherited that website provider and imported jsonschema and turbohtml when closing its page transaction. The fixture now clears and restores the provider alongside the other host overrides, keeping each test's host configuration local to that test.

The ordered reproduction runs test_website_restore_streams_shared_chunks_once_across_files_and_pages followed by test_codex_tool_hook_reads_a_quiet_page_without_the_page_model with -n0: it fails before this change with the reported imports and passes afterward. All five focused checks (the saved-record process tests followed by the quiet-hook test), Python compilation and scoped pre-commit checks pass. The existing hook assertion and website publication behavior are preserved.

The provider was introduced by #2652 to publish saved website records under the page lease; this repair keeps that intent and fixes test environment ownership.

CI verification on eb1f22b

The pull-request CI passed. The full Linux and macOS dispatch completed with the quiet-hook test passing on both platforms (Linux at 09:49:48 UTC; macOS at 11:02:16 UTC). Its other failures are browser/site checks, including the metadata-size diagnostic tracked in #4341 and unused-export diagnostic in #4250; the dispatch is red, not a full-suite pass. This diff changes only host-provider isolation in the test fixture, preserving product code and the failing tests' assertions.

The automated review stopped at Tend's PR burst-limit preflight before an agent ran. This session reviewed the fixture diff and its setup/teardown behavior without findings; the change adds one environment reset to the existing isolation owner rather than special-casing hook imports or weakening coverage.

Closes #4251 — automated triage

Website restore installs LEAF_PAGE_COMMIT directly. Without fixture ownership it survives into later tests and their subprocesses, making a quiet Codex tool hook import website storage and its page validators. Clear and restore the provider through isolated_session, preserving website publication behavior and the quiet-hook assertion.

Closes #4251
@leaf-agent
leaf-agent merged commit b45b8e1 into main Oct 27, 2026
3 of 6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4251 branch October 27, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quiet Codex hook imports jsonschema and turbohtml on macOS

1 participant