Skip to content

Keep recovered draft controls and update interaction readings - #369

Merged
max-sixty merged 4 commits into
mainfrom
fix/ci-34069973701
Sep 7, 2026
Merged

max-sixty merged 4 commits into
mainfrom
fix/ci-34069973701

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes a recovered draft losing its Save and Cancel controls when the delayed width-reservation measurement repainted the row. A single #paintRow now derives the row from the editor’s current state, so connection, opening, closing, and measurement cannot disagree about which controls belong there.

Updates five browser readings for the current icon-action design: Resolve uses its control’s PRESS route and exact accessible name, passage selection aims at rendered words instead of the center of a wide box, and disabled controls are compared with their own live face instead of assuming every widget uses reduced opacity.

Verified after merging the playground corpus declarations from #366. The five directly repaired browser cases and pre-commit pass; CI runs all four touched nightly modules.

This was written by Codex on behalf of max-sixty

…tion and composer readings as the icon actions now draw them

The nightly leg on ac3342a went red on ten readings; #366 and #367 hold four
of them. These are the other six.

The product half: a draft that recovers an unsent edit opened its editor before
the deferred reserve measurement of its control row had run, and that
measurement then stated read mode over the open editor, taking Save with it. The
row now states itself from the editor rather than from the gesture that changed
it.

The test half: #347 moved Send inside its field and withdrew the page-level x
resolution, and the composer's spent submit now wears its own muted face at full
opacity. Four readings were written against the shapes those replaced.
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

test is red on this branch, and the whole of it is #366's reading: 1 failed, 362 passed, the failure being test_the_render_gate_applies_every_standing_action_a_second_time on ('lf-playground', 'choose'). That is the same count and the same case as the local run in the description, and it is red on main for the same reason — the standing page has no playground, so the gate re-applies every declared verb but that one. #366 gives it one; this branch deliberately carries no second implementation of it, so the gate here goes green once #366 lands and this rebases.

Since #340, a pull request runs the nightly cases in the modules it touches, and test_render_projection.py is one this branch edits — so a failure main already carries now surfaces on any branch that reaches into the same module, whoever owns the fix.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lf-draft repair holds up: #paintRow reads this.#ta rather than the gesture, so the reserve take can no longer arrive with a stale idea of the mode, and every caller re-runs #paintButtons afterwards so the failure receipt still lands in the row. The spent-face reading is a real strengthening — lifting the disabled fact off and putting it straight back compares against what the control itself would wear, and face covers the ::before ground and border that .lf-compose-submit's disabled rule actually moves while it holds opacity: 1.

One comment states something the runtime no longer does — inline below.

The red test check is not this branch's: the one failure is test_the_render_gate_applies_every_standing_action_a_second_time on the missing ('lf-playground', 'choose') verb, which is #366's — it edits tests/render_cases_interaction.py, where that corpus page is authored. 362 passed beside it, matching the PR body's own run. This PR cannot go green until #366 lands.

Comment thread tests/test_render_anchors.py Resolved
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

The nightly leg on main's current head is red on ten readings (ci on 4cbef41), and this branch plus #366 and #367 partition all ten — nothing in that run is unheld, so no fourth branch is needed.

The ten readings, and which branch holds each

Every failure matches a shape one of the three bodies already names, down to the printed text: the ring fault prints the same two ship-review faults at the same coordinates #367 quotes (over 721 stops rather than its 714), the archetype fault is exactly Reset / Copy instruction / Apply card, and each timeout names the locator the corresponding account predicts.

Reading Held by
test_render_anchors.py::test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline[light] #369
test_render_anchors.py::test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline[dark] #369
test_render_controls.py::test_the_composed_corpus_declares_every_control_row_archetype #366
test_render_controls.py::test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus #367
test_render_drafts.py::test_an_empty_draft_survives_reload_and_blocks_a_version_switch #369
test_render_drafts.py::test_a_comment_hidden_by_narrowing_is_revealed_in_the_open_panel[True] #369
test_render_drafts.py::test_an_unsent_comment_stays_with_its_passage_when_another_is_selected #369
test_render_projection.py::test_the_render_gate_applies_every_standing_action_a_second_time #366
test_render_projection.py::test_command_hub_send_and_pause_is_one_thread_fold #369
test_render_widgets.py::test_a_control_a_widget_built_is_told_from_a_label_it_wrote #369

The three timeouts read as their accounts state them: .lf-draft-controls[data-lf-for='draft-ops'] never offers Save (the reserve take over an open editor), two #p2 clicks never land (the response bar reaching 28px further left), and get_by_role("button", name="Resolve", exact=True) never matches (Resolve thread since #347).

test_an_exported_page_fixture_stands_on_its_own is not in this run — the export half of #366 no longer reproduces on 4cbef41, though its archetype and lf-playground halves both do.

@max-sixty
max-sixty enabled auto-merge (squash) September 7, 2026 02:20
@max-sixty max-sixty changed the title Keep a recovered draft's Save with its editor, and read four conversation and composer readings as the icon actions now draw them Keep recovered draft controls and update interaction readings Sep 7, 2026
@max-sixty
max-sixty merged commit 934bfc4 into main Sep 7, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-34069973701 branch September 7, 2026 02:43
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.

2 participants