Harden local control startup and CLI output#191
Open
abonneth wants to merge 8 commits into
Open
Conversation
…tput fixes Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
cm2435
approved these changes
Jul 9, 2026
cm2435
left a comment
There was a problem hiding this comment.
adress 2 small comments but then good to merge
…guard to caller, None startup_hint Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…, settings deep links Co-authored-by: Cursor <cursoragent@cursor.com>
… flake Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a430e9. Configure here.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.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.

Made with Cursor
Note
Medium Risk
Changes how local sessions are cancelled (exit hooks, kill switch) and how bridges connect to the platform; mostly safety hardening but affects live agent control on user machines.
Overview
Adds
hai doctorfor read-only checks (login, platform, browser/desktop deps, macOS TCC on desktop) with fix hints and--json, and bumps the desktop extra tohai-drivers[desktop]>=0.1.2.CLI/local UX: Rich
escape()on user-facing strings so brackets in errors and pip extras render correctly; session list IDs use a non-truncating column.hai local stopfiles a shared stop signal; desktop serving gets--screenshot-max-width(default 1920), double-Esc on macOS when Input Monitoring allows, plusStopWatcheron bridges.Local bridges: Command-channel setup retries 429s and transient HTTP with backoff; transport surfaces rate limits on channel create/check. Browser not-ready timeouts include a stale debug-port hint; desktop macOS permission preflight and optional
ScaledDesktopDriverto avoid huge screenshot uploads.SDK local sessions: Default runaway
max_steps/max_time_swhen auto-bridges start; atexit and kill-switch_panic_stopcancel remote sessions and stop bridges; manager treats stop during setup as startup failure.Reviewed by Cursor Bugbot for commit 31f90bc. Bugbot is set up for automated code reviews on this repo. Configure here.