Skip to content

WorkstationBridge takes environment_variables for its shell - #240

Merged
abonneth merged 2 commits into
mainfrom
antoine/workstation-environment
Oct 6, 2026
Merged

abonneth merged 2 commits into
mainfrom
antoine/workstation-environment

Conversation

@abonneth

@abonneth abonneth commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Made with Cursor


Note

Low Risk
Optional constructor parameter with defaults; critical sandbox env vars are still applied after the user map, so behavior for existing callers is unchanged.

Overview
WorkstationBridge now accepts an optional environment_variables mapping that is merged into the LocalCodeSandbox shell environment when the driver is created.

Callers can inject extra vars (e.g. RUN_CONFIG) for commands run in ~/hai/<session_id>. Built-in workstation settings still win where they are set after the merge—CUA_SESSION stays the bridge session id, PATH still includes the desk CLI, and COORDINATE_SYSTEM / CUA_CURSOR behave as before.

The workstation shell integration test was extended to assert a custom variable is visible in execute while session and PATH behavior remain correct.

Reviewed by Cursor Bugbot for commit c688c68. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@abonneth
abonneth requested a review from adeprezh as a code owner October 5, 2026 22:11

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 324039a. Configure here.

Comment thread src/hai_agents_local/workstation.py Outdated
Co-authored-by: Cursor <cursoragent@cursor.com>
@abonneth
abonneth merged commit 9bf099a into main Oct 6, 2026
6 checks passed
@abonneth
abonneth deleted the antoine/workstation-environment branch October 6, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants