Teknium
75f8dd3293
review-fix(suppress-audit): tools/computer_use/tool.py — restore BASE exception semantics in _bounds_hints (int() failures propagate as on main)
2026-09-03 09:47:10 -07:00
Teknium
e83816a4d1
review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
...
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
2026-09-03 09:44:26 -07:00
Teknium
febbe6ae12
review-fix(computer_use): restore per-axis scroll coordinate semantics
...
main guarded scroll's x/y independently (coordinate=[null,100] -> y=100),
while click treats a coordinate without x as no point. The shared _xy()
applied click semantics to scroll; split out _scroll_xy() with main's
per-axis guard and pin both behaviors in a test.
2026-09-03 09:32:38 -07:00
Teknium
0071ba9965
Merge origin/main ( 561b053f79) into simp/forwardport: forward-port 220 main commits into the simplified tree
2026-09-03 03:31:03 -07:00
Teknium
23b9ffc4fa
fix(integration): restore subprocess stdin=DEVNULL / utf-8 encoding guards and windows-footgun gates dropped by round-3 compaction
...
Repo scanners (check_subprocess_stdin, check-windows-footguns --all) flagged 21 sites where
the r3 single-line collapses lost stdin=DEVNULL, encoding='utf-8'/errors='replace', the
'# windows-footgun: ok' same-line marker, or the getattr(os, 'geteuid') gate. Each guard is
restored at the call site (real portability/hang fixes, not suppressions).
2026-09-03 02:46:19 -07:00
Teknium
75934b89c8
Merge branch 'simp/r2-tools-b' (tools wave 2 net-deletion: approval/delegate/skills_hub/terminal/computer_use) into simp/integration3
...
Conflicts (union): computer_use/{cua_backend,cua_backend_daemon,doctor}.py — kept r2-tools-b's
_run_quiet/_run_driver/_cli_text helpers and the integration3 stdin=DEVNULL fix (06fb390212 ).
2026-09-03 00:44:12 -07:00
Teknium
6b393f70eb
Merge branch 'simp/r2-tools-b-delegate2' (tools wave 2: approval/delegate/skills_hub/terminal/computer_use) into simp/integration3
2026-09-03 00:41:31 -07:00
Teknium
72f5578b3a
refactor(computer_use): restore leading comments on capture-cap constants; wrap _write_cache_file signature (legibility)
2026-09-02 23:49:02 -07:00
Teknium
5080b1024a
Merge branch 'simp/r2-tools-b-cua2-sess2' into simp/r2-tools-b-cua2
2026-09-02 23:38:27 -07:00
Teknium
de2c49b0d6
refactor(computer_use): compact section headers, wrapped literals, and one-shot walrus guards
2026-09-02 23:35:38 -07:00
Teknium
1fcb6f521d
refactor(computer_use): atexit decorator, list-comprehension _format_elements, tighter signatures
2026-09-02 23:30:17 -07:00
Teknium
b8f6a8693a
refactor(computer_use): set_value/focus_app handlers as table lambdas
2026-09-02 23:23:59 -07:00
Teknium
06c0243180
refactor(computer_use): lambda writer for element spill; single prefix assignment in follow capture
2026-09-02 23:22:16 -07:00
Teknium
0bd806bd22
refactor(computer_use): drop cap aliases in capture builders, single-line noop __init__, compact section spacing
2026-09-02 23:21:06 -07:00
Teknium
eebddc22e8
refactor(computer_use): drop dead re-raise branch in _stop_backend; compact _do_capture target forwarding
2026-09-02 23:19:21 -07:00
Teknium
775f1d77dc
refactor(computer_use): inline _multimodal_capture, drop dead non-JSON fallback in follow capture, _xy as kwargs
2026-09-02 23:17:04 -07:00
Teknium
b651b77af5
refactor(computer_use): inline _view into its two builders; fold constant comments and _VERDICT_FIELDS
2026-09-02 23:12:47 -07:00
Teknium
230524b5d1
refactor(computer_use): _NoopBackend capture/focus_app via _noop_stub result factory
2026-09-02 23:10:01 -07:00
Teknium
b569633449
refactor(computer_use): fold _configured_permission_mode, _listing, _input into callers; merge capture MIME/ext helpers
2026-09-02 23:08:33 -07:00
Teknium
796a7e4829
refactor(computer_use): inline single-use session wrappers, hoist result classifiers to module level, fold list_windows
2026-09-02 22:50:24 -07:00
Teknium
c890cab0d5
Merge branch 'simp/r2-tools-b-cua2-drv' into simp/r2-tools-b-cua2
2026-09-02 21:51:32 -07:00
Teknium
298304fe58
Merge branch 'simp/r2-tools-b-cua2-doc' into simp/r2-tools-b-cua2
2026-09-02 21:51:31 -07:00
Teknium
89f08dfdb6
Merge branch 'simp/r2-tools-b-cua2-capt' into simp/r2-tools-b-cua2
2026-09-02 21:51:31 -07:00
Teknium
26862482c5
Merge branch 'simp/r2-tools-b-cua2-sess' into simp/r2-tools-b-cua2
2026-09-02 21:51:30 -07:00
Zane Chee
b1bf099f14
fix(computer-use): distinguish doctor and gateway environments
2026-09-02 21:49:23 -07:00
Teknium
fa0ff15614
refactor(computer_use): final cua backend/driver/daemon folds — inline discovery reasons, contextlib suppress, one-line probes; strings frozen
2026-09-02 21:47:13 -07:00
Teknium
303a8cafb0
refactor(computer_use): compact capture/input/backend — drop dead UIElement.center, section banners, reflow docstrings to 118 cols
2026-09-02 21:28:25 -07:00
Teknium
982f22fd56
refactor(computer_use): suppress-based bounds parsing; inline scale note into summary notes
2026-09-02 21:07:03 -07:00
Teknium
e368f42a0f
refactor(computer_use): table-lookup summarize default, inline listing lambda and app-guard walrus
2026-09-02 21:02:45 -07:00
Teknium
22def3f4a9
refactor(computer_use): contextlib rollback/suppress in cua backend + daemon; _json_object helper; daemon startup-failure helper; tighten prose
2026-09-02 21:02:05 -07:00
Teknium
a791dfbc63
refactor(computer_use): _stop_backend on_error hook replaces three try/except blocks; _install_backend owns the hook mirror
2026-09-02 20:58:47 -07:00
Teknium
29fb6e8ea9
refactor(computer_use): namedtuple _ActionSpec, walrus cache write, suppress-based vision analysis parse
2026-09-02 20:55:01 -07:00
Teknium
e5f3927b04
refactor(computer_use): compact doctor row/overall helpers
2026-09-02 20:54:07 -07:00
Teknium
a11b6bae91
refactor(computer_use): fold doctor probe assignments and vision_routing header
2026-09-02 20:47:51 -07:00
Teknium
7390fa2929
refactor(computer_use): suppress-based bypass check, single denial payload, cache glob prune without branch
2026-09-02 20:45:36 -07:00
Teknium
74dccc1eaa
refactor(computer_use): _view namespace builder replaces _CaptureView dataclass; suppress-based config readers; exact-target dict in follow capture
2026-09-02 20:41:54 -07:00
Teknium
95b0ae9121
refactor(computer_use): compact cua_backend/driver/daemon docstrings, banners and imports; fold contract-reason logic
2026-09-02 20:37:04 -07:00
Teknium
05fd050547
refactor(computer_use): inline b64-dimension and vision-analysis helpers; generic _noop_stub covers all recording methods
2026-09-02 20:35:48 -07:00
Teknium
724522092e
refactor(computer_use): densify doctor/permissions/vision_routing docstrings and signatures
2026-09-02 20:35:33 -07:00
Teknium
8793823305
refactor(computer_use): drop permissions resolver wrapper, fold doctor row helpers, tighten docstrings
2026-09-02 20:30:34 -07:00
Teknium
5d3f838606
refactor(computer_use): fold bypass warning into _cua_permission_mode; tighten reject/approval/summary helpers
2026-09-02 20:30:27 -07:00
Teknium
94b9b3860f
refactor(computer_use): backend ABC — merge method docstrings into class contract, module-level time import
2026-09-02 20:29:02 -07:00
Teknium
0f7c4f1ce6
refactor(computer_use): inline doctor check renderer, compact docstrings (all WHYs kept)
2026-09-02 20:27:09 -07:00
Teknium
2803e6c1ef
refactor(computer_use): inline single-caller restore helper; compact session/parse docstrings and comments (WHY sentences kept)
2026-09-02 20:26:48 -07:00
Teknium
ea7e75f65a
refactor(computer_use): unify cua quiet-subprocess probes via _run_quiet; table-drive discovery reasons; trim re-imports, contract gate, daemon teardown
2026-09-02 20:25:17 -07:00
Teknium
e0e2f26347
refactor(computer_use): fold bounds divergence into _bounds_hints, total as _CaptureView property, tighter payload/summary builders
2026-09-02 20:24:20 -07:00
Teknium
a7c1ec6ecb
refactor(computer_use): capture mixin disarm-on-failure contextmanager + shared MCP-empty->CLI re-fetch helper; table-driven list_apps/_match_windows_for_app
2026-09-02 20:24:06 -07:00
Teknium
e04fa94299
refactor(computer_use): one _write_cache_file helper for spill/screenshot; _NoopBackend input stubs from a factory
2026-09-02 20:17:44 -07:00
Teknium
3bc55cb2c6
refactor(computer_use): flatten vision_routing lookup + permissions doctor/mac probes
2026-09-02 20:16:27 -07:00
Teknium
198eede489
refactor(computer_use): single _ACTIONS spec table replaces destructive/click/summary/simple/input tables
2026-09-02 20:13:15 -07:00