Skip to content

Keep an absorbed draft outside its Ask in the revision test - #2489

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-38196042452-answered-draft
Oct 12, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-38196042452-answered-draft

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The failed main run hit three parameterizations of test_command_hub_an_absorbed_input_stays_fulfilled: its honoring revision removed needed from the only draft inside an lf-ask, so the new check from #2448 correctly refused the empty Question context. The test now changes that Ask to a plain region when the draft becomes optional editing. It still verifies that the recorded answer remains reviewable at 1/5 after the revision.

The three cases failed on current main before this edit and pass after it (uv run pytest tests/test_render_projection.py -q -n0 -k test_command_hub_an_absorbed_input_stays_fulfilled). This repairs the test fixture; the validator's lower bound remains intact.

@leaf-agent
leaf-agent merged commit 74dd90d into main Oct 12, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38196042452-answered-draft branch October 12, 2026 05:25
leaf-agent added a commit that referenced this pull request Oct 12, 2026
The [main CI
run](https://github.com/max-sixty/leaf/actions/runs/38204903224) failed
the version hint test because the test removed revision 1's marker but
left its publication record. Reading page state correctly recovered that
interrupted publication, so version 1 remained available and the hint
correctly showed `1–3`.

The fixture now removes the recoverable publication reference before
deleting the marker. The test again exercises an unavailable older
revision and verifies the hint offers only the versions the page can
open. It failed before this change and passes afterward (`uv run pytest
tests/test_render_anchors.py::test_the_number_hint_names_only_versions_that_still_exist
-q -n0`).

The absorbed-input failures from the same run were fixed in #2489. The
thread-scroll case passed in three preceding main runs and four focused
local runs; this PR does not claim to fix its single failure in the
linked run.

Co-authored-by: leaf-agent <[email protected]>
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.

1 participant