Skip to content

Keep draft controls usable in Draw mode and update browser checks - #2102

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-37819031263-draft-checks
Oct 8, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-37819031263-draft-checks

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

PR #2064 moved draft editing actions from the annotation rail into each draft. The complete main run still checks the old rail controls; Draw mode also claims a press on the new in-widget Edit button as ink. This change lets widget-offered controls keep their pointer gestures in Draw mode and updates the affected browser journeys to use the local draft actions and current keyboard labels.

The three-width draft and Page Map journey, the rail Ask/save/undo journey, Draw mode editing, Page Map routing, and numbered Ask navigation now pass (7 browser cases). All 254 runtime tests and pre-commit pass. The affected browser checks failed before this change on current main.

This addresses the draft-control subset of failed main run 37819031263. The run also contains other failures that need separate repairs.

@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 Draw mode change leaves offered widget controls clickable, but test_draw_mode_cursor_matches_the_widget_controls_it_captures still requires the old crosshair and captured press. It fails on this head (auto versus crosshair), so the PR's browser gate cannot pass. Update that journey to assert the control's action succeeds in Draw mode without creating ink.

The offered control now retains its ordinary pointer action in Draw mode. Replace the old captured-press expectation with a check that the option is chosen without creating ink.
leaf-agent added a commit that referenced this pull request Oct 8, 2026
PR #2064 moved draft editing out of the annotation rail. Four
complete-suite margin checks still required a draft row that no longer
exists. The gallery lifecycle and primary-action journeys now keep their
live suggestion and workflow assertions; pointer ownership and highlight
refresh use existing margin actions. Draft editing is checked through
its local controls in PR #2102.

All four affected browser cases failed before this change and pass after
it on current `main`; pre-commit passes. This repairs the
retired-draft-row subset of [failed main run
37819031263](https://github.com/max-sixty/leaf/actions/runs/37819031263).

Co-authored-by: leaf-agent <[email protected]>
@leaf-agent
leaf-agent merged commit cdfca84 into main Oct 8, 2026
6 of 7 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-37819031263-draft-checks branch October 8, 2026 21:44
max-sixty added a commit that referenced this pull request Oct 12, 2026
…a red test (#2607)

Bot CI repairs have reversed deliberate behavior twice. After #1781 let
thread cards cover the margin rail to keep message width, #1810 changed
the code back to satisfy an old test, and #1838 rewrote the remaining
test to match; #2330 restored it. Then #2102 landed after "Reading a red
suite" already asked Tend to preserve intended behavior. It let every
widget-offered control keep its pointer gestures in Draw mode, so
clicking a choice selected it, and it rewrote the capture test on the
bot reviewer's request; #2341 repaired it.

"Reading a red suite" now names what a repair weighs: the intent of the
change that turned the test red, and the interface users and callers
rely on. A repair keeps both where it can. Where no repair can,
reverting the change, or the part at fault, is allowed. A revert, any
intent given up, or an interface moved beyond the change needs an issue
addressed to the change's author, so the fix can return deliberately.
For a bot's change, that is the person who requested or merged it, or
the maintainer. The rule covers changes still in a pull request, and the
review threshold holds any fix for a red test to it.

Validation: a scratch A/B with each arm's running-tend pasted into the
prompt (Opus 5.5; 2–3 runs per scenario per arm). Both arms reverted an
unsafe change and filed an issue; the new text's issues carry the
intent, the conflict and what was given up. Both arms updated only the
test, with no issue, for a pure rename and for a test the change
deliberately made stale. Both refused to merge the #2102 shape. These
cases establish conformance, not a measured improvement: the failures
happened deep in long CI sessions, which a cold scenario does not
reproduce. Codex reviewed the text, and its two findings (scope to open
pull requests, an addressee when no person touched a bot change) are
applied.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[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