Skip to content

feat(computer-use): improve approval monitor and add auto mode - #142

Merged
edenreich merged 5 commits into
mainfrom
feat/computer-use-approval-monitor
Aug 23, 2026
Merged

edenreich merged 5 commits into
mainfrom
feat/computer-use-approval-monitor

Conversation

@edenreich

@edenreich edenreich commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Improve the computer-use approval experience with a wider, translucent top-center monitor, reliable accessibility behavior, and a persistent Auto mode toggle for approval-free runs.

Changes

  • Reposition and resize the protected computer-use monitor with a blue translucent treatment
  • Show pretty-printed approval arguments without truncation and keep Approve/Deny plus A/R shortcuts visible
  • Add a dedicated drag handle so the monitor can be moved
  • Hide the monitor and ignore pointer events while an approved computer action runs so it cannot block target controls
  • Set INFER_SUBAGENT_AGENT_MODE=auto for new Auto mode sessions and keep --require-approval for manual mode
  • Guide macOS computer-use sessions to target apps by process or bundle name, including app:inference-gateway-desktop, and retry once after app launch before falling back to screenshots
  • Cover approval modes and accessibility guidance with backend tests and verify the approval flow through the macOS accessibility harness

@edenreich
edenreich marked this pull request as ready for review August 23, 2026 01:50
@edenreich
edenreich marked this pull request as draft August 23, 2026 02:03
@edenreich
edenreich marked this pull request as ready for review August 23, 2026 02:21
edenreich added a commit to inference-gateway/cli that referenced this pull request Aug 23, 2026
## Summary

Fix macOS accessibility target resolution when AX does not expose a
focused application or when callers use a display name that differs from
the CoreGraphics window-owner name.

## Changes

- Fall back from `AXFocusedApplication` to the PID of the frontmost
layer-0 application window
- Match equivalent display and process names case-insensitively while
ignoring separators such as spaces and hyphens
- Keep Dock, menu bar, and elevated overlay windows out of the frontmost
fallback
- Add regression coverage for exact, case-insensitive, display/bundle,
distinct-app, and invalid-name cases

## Testing

- `go test ./internal/computer/infrastructure/accessibility`
- `task test`
- `task precommit:run`
- Native helper: normalized `app:i Term 2` returned 19 elements
- Native helper: `frontmost` returned 14 elements for foreground iTerm2

## Related

- inference-gateway/desktop#142
@edenreich
edenreich merged commit a0e52f3 into main Aug 23, 2026
1 check passed
@edenreich
edenreich deleted the feat/computer-use-approval-monitor branch August 23, 2026 12:04
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.20.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant