feat(connections): balance new threads across connected machines (#9895)

This commit is contained in:
maria authored and GitHub committed 2026-09-06 02:33:13 -03:00
1 parent 9f40b2f563
commit 420fd76f60
26 files changed
+865 -22

No files matched your search

+17
View File
@@ -61,6 +61,23 @@ created in Settings can only be copied from the client that created them while
its Connections page stays open. If you leave or reload that page, create
another link to share.
### Balance new threads across machines
Auto balance is off by default. On web and desktop, enable it in
**Settings → Connections → Load balancing** to automatically choose a machine for
new threads in projects grouped across connected environments.
Each machine starts at **Normal**. Choose **Prefer** to favor it when it has CPU and
memory available, **Less often** to reduce its share, or **Manual only** to exclude
it from automatic selection. These are preferences, not fixed traffic percentages.
Preferences are saved separately in each client.
The composer checks eligible machines when choosing a draft's environment, then keeps
that choice stable. Choose **Auto balance** again to check current resources, or choose
a specific machine to override it. Choosing a branch or worktree also keeps the draft
on that machine. Existing threads stay where they started. If resource checks are
unavailable or all eligible machines are full, choose a machine manually to continue.
Mobile keeps its manual environment selection.
### Tailscale HTTPS
Join both devices to the same tailnet. In the desktop app, enable **Tailscale