Repository navigation
fix: drop go_back from the kind choice when a Back button is on screen - #60
Open
bluzername wants to merge 1 commit into
Open
bluzername wants to merge 1 commit into
bluzername wants to merge 1 commit into
Conversation
In System Settings, the window has its own labelled Back button, so click_item on it and go_back are the same move. Offering both split the vote between them and read as doubt in the kind answer. kind_criteria now take the screen items and drop go_back when one of them is a real AX button labelled Back or Go Back. Click on the button stay available through click_item either way, nothing is lost. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Fixes #40.
In System Settings the window has its own labelled Back button, so
"click_item (Go Back)" and
go_backare the same move. Offering both atonce split the vote (the issue report say kind split 0.44/0.40 on one step)
and read as doubt in the kind answer.
kind_criterianow takes the screenitemsand dropsgo_backfrom thecriteria when one of them is a real AX button labelled "Back" or "Go Back"
(a
source="ax"item withrole="button", not just text that happens toread "Back" off the screen by OCR). Clicking the button stays available
through
click_itemeither way, so nothing is lost, only the duplicatepath.
Test approach (TDD): added three tests to
tests/test_decide.py-test_kind_criteria_drops_go_back_when_a_labelled_back_button_is_on_screen,..._for_a_go_back_labelled_button, andtest_kind_criteria_keeps_go_back_without_a_real_back_button(which alsochecks an OCR-only "Back" text block does NOT suppress go_back, only a real
AX button does). Confirmed RED against current main (
kind_criteria()didnot accept an
itemsargument), implementedhas_back_buttonand theitemsparam, confirmed GREEN.Verification:
uv run ruff check . && uv run ruff format .clean,uv run pytest -q733 passed, 2 skipped, 1 xfailed (730 on main plus the 3 new tests).
🤖 Generated with Claude Code