Repository navigation
Conversation
…ty walk
The loop could only work in the frontmost window, and its one way elsewhere was
use_browser. A goal for another app ("compute 6 times 7" with Chrome in front)
had no move, so the classifier typed into the page or stopped.
switch_app brings another open window forward, or starts one of a few common
apps, chosen in a new app question listing the windows by title. It is offered
only when the adapter lists windows: Windows does; macOS and the OSWorld VM
return none, so their payloads are unchanged. Windows refuses
SetForegroundWindow to a process that is not in front, so the adapter attaches
to the foreground thread's input, then falls back to an Alt tap. A window off
the primary monitor is moved onto it, since only that one is captured.
subtree_key no longer keys a node with no role and no label. In Calculator the
content pane shares its frame with an empty input-sink pane walked before it;
keyed alike, the content pane was dropped as a duplicate with every button in
it, and the app read as three title-bar buttons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CLICKER_WRITER_API=claude-code|codex|opencode sends the writer's requests to that agent's headless CLI on its own login, so no API key is needed. Writing (text, URLs) uses a small fast model; answering reads the screenshot with a model that sees images. CLICKER_WRITER_MODEL / CLICKER_ANSWER_MODEL override. Co-Authored-By: Claude Opus 5.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.
Two Windows changes that together let the loop finish a goal outside the browser, plus a writer that needs no API key. Found on Windows 11 with two monitors, goal
compute 6 times 7with Chrome in front.switch_appThe only way to leave the frontmost window was
use_browser, so a goal for another app had no move: the classifier typed into the page or stopped.switch_appand questionapp: the other open windows by title, plus a few apps it may start (Calculator, Notepad, File Explorer, Paint). The state also getsother_windows_and_apps.desktop.windows()lists something.macos.pyandOSWorldDesktopreturn[], so their payloads are unchanged (stubs added to keep theDesktopprotocol whole).SetForegroundWindowfrom a background process.switch_toattaches to the foreground thread's input first, then falls back to an Alt tap, and checks it took.ApplicationFrameHost.exe, so only the title names them. Minimized windows are kept; cloaked and tool windows are skipped.min(kind, app), as for clicks.Accessibility walk: Store-app controls
subtree_keykeyed nodes with no role and no label. In Calculator the content pane (NavView) has the same frame as an emptyApplicationFrameInputSinkWindowpane walked just before it, so the content pane was skipped as a duplicate along with every button in it. The app read as minimize/maximize/close only (ax=3). Nodes with neither role nor label are no longer keyed. On macOS every node has a role, so it is unaffected. New test:test_two_bare_containers_sharing_a_frame_are_both_walked(fails before the change).Replay notes
items=8 ax=3, kindclick_item0.48 on'CE', then a stop at confidence 0.27. An earlier run, with the window still on the second monitor, bounced between Calculator and Chrome for 10 steps.items=42 ax=37. Starting from Explorer:switch_app(0.88) to Calculator, then pressed Six, Seven, Multiply by, Equals, sawDisplay is 4,489, pressed Clear, redid Six × Seven =, and stopped ondone(0.99) withDisplay is 42. 11 steps, 1.4s of classifier time.Writer through a signed-in agent CLI
The writer needed an Anthropic or OpenAI-compatible key.
CLICKER_WRITER_API=claude-code|codex|opencode(newcli_writer.py) sends the same requests to that agent's headless CLI on the user's existing login instead: one run per call, no tools, no saved session, read-only.claude -pwith stream-json input (screenshot inline) and--json-schema; readsstructured_output.codex exec --ephemeral -s read-onlywith-ifor the screenshot,--output-schema, and-ofor the last message.opencode run --format jsonwith-f; reads the last text event. On Windows withoutopencodeon PATH it goes throughwsl.exe.haiku/sonnet; Codexgpt-6-lunaat low reasoning effort / its configured model; OpenCodenemotron-3.5-lightning-free/mimo-v2.6-flash-free.CLICKER_WRITER_MODELandCLICKER_ANSWER_MODELoverride.Checks
ruff check .,ruff format --check .andpytest -q(754 passed, 3 skipped, 1 xfailed) on Linux. The Windows code was exercised live as above, but not under pytest on Windows: the suite's machine guard trips there on an existing test (test_pending_abort_after_a_decision_prevents_dispatch, before these changes too).🤖 Generated with Claude Code