Skip to content

Fix active agent detection for workspace updates#147

Merged
khaliqgant merged 1 commit intomainfrom
fix/active-agent-detection-update-workspaces
Jan 11, 2026
Merged

Fix active agent detection for workspace updates#147
khaliqgant merged 1 commit intomainfrom
fix/active-agent-detection-update-workspaces

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

No description provided.

@khaliqgant khaliqgant merged commit 0815a6d into main Jan 11, 2026
6 checks passed
@khaliqgant khaliqgant deleted the fix/active-agent-detection-update-workspaces branch January 11, 2026 20:24
khaliqgant added a commit that referenced this pull request Apr 13, 2026
@agent-relay/cloud now reads CLOUD_API_URL, CLOUD_API_ACCESS_TOKEN,
CLOUD_API_REFRESH_TOKEN, and CLOUD_API_ACCESS_TOKEN_EXPIRES_AT from
process.env before falling back to ~/.agent-relay/cloud-auth.json.

This eliminates the browser-login hang in every headless consumer
(Daytona per-agent sandboxes, CI runners, ephemeral VMs) without
requiring a mount-a-file dance on the caller side.

After this lands, the mountCloudAuthFile workaround added in cloud
PR #147 can be reverted; cloud/packages/core already passes these
env vars into worker sandboxes via credentialsToEnv.

Precedence: env → file → browser login. Interactive local use is
unchanged; refreshed env-backed tokens stay in memory only and do
not clobber a user file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
khaliqgant added a commit that referenced this pull request Apr 13, 2026
@agent-relay/cloud now reads CLOUD_API_URL, CLOUD_API_ACCESS_TOKEN,
CLOUD_API_REFRESH_TOKEN, and CLOUD_API_ACCESS_TOKEN_EXPIRES_AT from
process.env before falling back to ~/.agent-relay/cloud-auth.json.

This eliminates the browser-login hang in every headless consumer
(Daytona per-agent sandboxes, CI runners, ephemeral VMs) without
requiring a mount-a-file dance on the caller side.

After this lands, the mountCloudAuthFile workaround added in cloud
PR #147 can be reverted; cloud/packages/core already passes these
env vars into worker sandboxes via credentialsToEnv.

Precedence: env → file → browser login. Interactive local use is
unchanged; refreshed env-backed tokens stay in memory only and do
not clobber a user file.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant