Skip to content

feat(console): support multiple worker systems per user - #23

Merged
Coooolfan merged 5 commits into
mainfrom
feat/multi-worker-sys-per-user
Sep 14, 2026
Merged

Coooolfan merged 5 commits into
mainfrom
feat/multi-worker-sys-per-user

Conversation

@Coooolfan

Copy link
Copy Markdown
Owner

Summary

  • Allow one account to own multiple worker-sys workers; removes the worker_sys_owner_claims single-per-account constraint and the 409 conflict on create.
  • Breaking: computerUse now dispatches only when worker_id selects a caller-owned Worker System (pinned, no fallback); without worker_id the task completes locally and returns worker_list of all owned Worker Systems.
  • readImage / exportFile target a Worker System via session_id="CU:<worker_id>"; other values keep sandbox session semantics. Prefix is configurable via computer_use_session_id_prefix / CONSOLE_COMPUTER_USE_SESSION_ID_PREFIX (default CU:), and terminalExec rejects create_if_missing on reserved-prefix session IDs.
  • Migration 00009 drops the claims table; rollback is rejected while any account owns multiple worker-sys workers.
  • Updated docs/API*.md, website docs (EN/zh-CN), and added 0.12.0-beta.1 release notes.

Test plan

  • task_worker_sys_routing_test.go: computerUse list mode / worker_id routing, readImage prefix routing, reserved-prefix rejection
  • db_test.go / migration tests: rollback guard with multiple worker-sys per owner
  • command_handler_test.go, mcp_handler_test.go, connect_service_test.go, integration_test.go updated for new semantics

Copilot AI lite review requested due to automatic review settings September 14, 2026 14:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Coooolfan
Coooolfan merged commit 008daaa into main Sep 14, 2026
9 checks passed
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