Repository navigation
Commit 63bb0c1
feat(agents): lower default agent parallelism from 24 to 10
Each unit of parallelism is a full agent subprocess per agent x community
pair, spawned eagerly at create/start. At 24, a desktop with a few dozen
pairs can carry over a thousand potential idle subprocesses, and slow-
starting harnesses (e.g. OpenClaw at 4-10s per worker) take minutes to
create because the pool initializes serially before the relay connects.
10 still covers concurrent-channel fan-out for typical agents (parallelism
is per-channel concurrency; most agents are active in far fewer than 10
channels at once) while cutting the eager startup cost and idle process
fleet by more than half. Existing records keep their persisted value;
only new records and unset defaults are affected. Per-agent override is
unchanged (1..=32 via the agent editor).
Demand-driven pool growth (seed 1, grow on contention) is tracked as a
follow-up.
Test comments in activeAgentTurnsStore.test.mjs updated: the 24-turn case
is now framed against the user-configurable harness cap (32) rather than
the default, so the test keeps its coverage without pinning the default.
Co-authored-by: Tyler Longwell <[email protected]>
Signed-off-by: Tyler Longwell <[email protected]>1 parent 1a56b7c commit 63bb0c1
2 files changed
Lines changed: 8 additions & 5 deletions
File tree
- desktop
- src-tauri/src/managed_agents
- src/features/agents
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
| |||
0 commit comments