Commit 699f402
committed
feat(orchestrator): wire todo pipeline via Bus event + auto-poke
Completes the Codebuff-style orchestrator pipeline:
* BusEvent::TodoOrchestratorToggle { session_id, enabled } added
* activate_auto_poke / deactivate_auto_poke publish the toggle
* Server client_lifecycle.rs subscribes and sets
agent.set_todo_orchestrator_enabled(enabled)
With orchestrator.rs (Agent::poll_todo_pipeline) + run_once_capture
hook, the end-to-end flow is:
1. User creates todos via TodoTool
2. /poke activates auto-poke (publishes BusEvent)
3. Server flips agent.todo_orchestrator_enabled = true
4. After each turn, poll_todo_pipeline spawns sub-agents
(planner/file-picker/editor/reviewer/basher) for incomplete todos
5. BusEvent::TodoUpdated broadcasts after each save1 parent be5ef97 commit 699f402
3 files changed
Lines changed: 22 additions & 0 deletions
File tree
- crates
- jcode-app-core/src/server
- jcode-base/src
- jcode-tui/src/tui/app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
792 | 803 | | |
793 | 804 | | |
794 | 805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
363 | 365 | | |
364 | 366 | | |
365 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
255 | 264 | | |
256 | 265 | | |
257 | 266 | | |
| |||
0 commit comments