Commit 351e959
committed
refactor: remove internal Query-lane auto-parallelization
Remove the incorrect internal parallelization mechanism that automatically
ran Query-lane tools in parallel within a single LLM turn. This was
replaced by the correct External Task Handler pattern (coordinator/worker)
which provides opt-in parallel execution via set_lane_handler().
Removed:
- ParallelizationStrategy struct and enable_parallelization field (queue.rs)
- partition_by_lane(), should_use_parallel_execution(), execute_query_tools_parallel() (agent.rs)
- Parallelization fields from AgentLoop and AgentSession (agent.rs, agent_api.rs)
- PyParallelizationStrategy class (Python SDK)
- ParallelizationStrategy/enableParallelization (Node SDK)
- 8 example files: test_internal_parallel.rs/py/js and test_session_parallel_*.py
- docs/parallelization.md and crates/code/docs/parallelization_configuration.md
- partition_by_lane tests (5 tests removed)
Kept:
- External Task Handler pattern (set_lane_handler, pending_external_tasks, complete_external_task)
- Planning-mode step parallelization (JoinSet-based, unrelated)
- test_external_task_handler examples for all three SDKs
All 1133 lib tests pass, zero warnings.1 parent 7377392 commit 351e959
16 files changed
Lines changed: 20 additions & 2162 deletions
File tree
- core
- examples
- src
- docs
- sdk
- node
- examples
- src
- python
- examples
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | | - | |
| 155 | + | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| |||
This file was deleted.
0 commit comments