Skip to content

Add Agent Team orchestration, hardening, and initial Team Run UI#119

Draft
FridayLiu wants to merge 7 commits intomainfrom
fridayliu/feat/agentteam
Draft

Add Agent Team orchestration, hardening, and initial Team Run UI#119
FridayLiu wants to merge 7 commits intomainfrom
fridayliu/feat/agentteam

Conversation

@FridayLiu
Copy link
Copy Markdown
Collaborator

@FridayLiu FridayLiu commented Apr 19, 2026

Summary

  • add Agent Team orchestration end-to-end across the main service, gateway/client wiring, unified types, engine integrations, relay flow, and the Light Brain / Heavy Brain execution paths
  • harden the Agent Team execution model with DAG-aware scheduling, true cancellation, planner engine selection, persisted run recovery, execution guardrails, and broader regression coverage
  • add the first minimal Team Run UI in Chat, including the follow-up fixes for relay-notice duplication, duplicate run deduplication, and long final-result handling
  • add the headless server:restart workflow plus the related docs and shell-level tests

Validation

  • npm run typecheck
  • bun run test:unit
  • npm run build

Notes

FridayLiu and others added 6 commits April 17, 2026 14:16
Implement cross-engine agent team orchestration with two modes:
- Light Brain: deterministic DAG planning + parallel execution
- Heavy Brain: LLM orchestrator loop with dynamic task dispatch

Includes StructuredOutputSkill framework for format-safe LLM output,
DAG executor with topological scheduling, gateway integration,
minimal frontend with team trigger button and status bar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Implement the agent-team hardening roadmap: DAG-aware heavy execution, real cancellation, planner engine selection, persisted run recovery, inactivity guardrails, minimal observability UI, and protocol-level test coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a managed server restart flow that preserves the existing quick tunnel when possible, expose it via package scripts, document the behavior, and cover the shell workflow with unit tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Deduplicate team runs by id in the team store, cover the create-plus-notification race with tests, remove the duplicate relay notice, and move long final results out of the status card into a separate result panel.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 19, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 58.33% (🎯 50%) 8182 / 14025
🔵 Statements 57.47% (🎯 50%) 8678 / 15099
🔵 Functions 60.15% (🎯 50%) 1469 / 2442
🔵 Branches 52.54% (🎯 50%) 4835 / 9201
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
electron/main/engines/claude/index.ts 67.64% 60.24% 61.29% 68.66% 161-172, 189-190, 190, 279-466, 474, 529-542, 568, 583, 590-591, 799-803, 849-853, 892, 896-897, 905-908, 946, 954-956, 962-1183, 1231-1234, 1338-1343, 1370-1372, 1448-1539, 1582, 1607, 1623, 1624, 1655-1656, 1658-1683, 1689-1713, 1736-1738, 1742-1743, 1784, 1825, 1829, 1847, 1948, 1952-1963, 2015-2037, 2050, 2075-2109, 2121-2123, 2187, 2212-2217, 2266, 2291-2341, 2721, 2804, 2864, 3150, 3206-3207, 3269-3270, 3274-3275, 3312-3376
electron/main/engines/codex/index.ts 79.74% 62.27% 91.89% 85.11% 85-99, 231, 232, 247, 253-256, 275, 344, 389, 399, 402, 449, 470, 492-493, 516, 537, 540, 559, 580, 591, 594, 597, 607-608, 617, 654, 659, 669-672, 685-693, 705, 710, 732, 752, 778, 789, 815-865, 879-880, 885, 902, 937-938, 961, 1006, 1020, 1030, 1041, 1104-1105, 1113-1142, 1161, 1164, 1179, 1181, 1198, 1210, 1216, 1224, 1236-1237, 1240-1241, 1258, 1259, 1309, 1315, 1398, 1406, 1414, 1422, 1424, 1434, 1436, 1445, 1447, 1456, 1464, 1471, 1479, 1614, 1667-1668, 1689, 1709-1710, 1747, 1753, 1769-1770, 1796, 1806, 1820, 1856, 1860, 1890, 1957, 1962, 2030, 2037, 2045, 2053-2066, 2071, 2076, 2171, 2211, 2213, 2218, 2224, 2228, 2230, 2232, 2239, 2254, 2284, 2293, 2301-2328, 2333, 2340, 2345, 2347, 2350, 2369-2377, 2381
electron/main/engines/copilot/index.ts 72.92% 68.51% 67.25% 73.39% 105, 229, 287-298, 310, 317-318, 330, 349, 358, 366, 462, 469, 472, 503-507, 513-522, 557-568, 572-581, 623-687, 695-700, 761-782, 807, 828-834, 842, 852, 869-875, 981, 988, 1015-1016, 1037-1038, 1053, 1054, 1063, 1067-1069, 1077-1097, 1122-1127, 1195-1197, 1215-1231, 1299-1329, 1396
electron/main/engines/opencode/index.ts 86.31% 69.34% 82.85% 87.75% 117, 129, 196-205, 210-212, 223-224, 295, 499, 714, 733, 812, 838, 844-845, 853, 866-878, 1030, 1051-1067, 1091, 1100, 1123-1153, 1301
electron/main/gateway/engine-manager.ts 97.59% 91.89% 96.38% 97.83% 161-165, 488, 507, 898-905
electron/main/gateway/ws-server.ts 81.73% 84.82% 59.45% 81.93% 172, 219, 247-256, 462-507, 551-554, 565-568, 586-589, 593-596, 600-603, 607-610, 614-617, 621-624, 628-631, 635-638, 649-652, 655-658
electron/main/services/logger.ts 93.93% 69.69% 80% 93.93% 14-17, 84-85
electron/main/services/agent-team/dag-executor.ts 96.96% 90.47% 100% 96.55% 61-62
electron/main/services/agent-team/guardrails.ts 100% 100% 100% 100%
electron/main/services/agent-team/heavy-brain.ts 77.81% 55.02% 93.02% 78.33% 40-47, 134, 148, 161, 165-166, 181-182, 203-214, 251-268, 281, 295-313, 320, 326, 350, 365, 372, 390-396, 405, 427, 431-433, 465, 474-475, 521-536, 578, 588, 597, 607-608, 638, 661, 707, 747, 754-756
electron/main/services/agent-team/index.ts 65.57% 45.78% 84.61% 67.42% 63, 79-80, 94, 97-110, 124, 133-210, 218, 220, 230, 266-272, 290, 321-322, 336, 377, 384
electron/main/services/agent-team/light-brain.ts 85.41% 75% 83.33% 88.37% 83-85, 129, 137
electron/main/services/agent-team/logger.ts 100% 100% 100% 100%
electron/main/services/agent-team/prompts.ts 85.1% 47.36% 90% 86.04% 12, 104-109, 164-174
electron/main/services/agent-team/skills.ts 91.66% 86.99% 100% 92% 58-59, 62-63, 123, 128, 142-143, 287, 313-314, 317, 401
electron/main/services/agent-team/task-executor.ts 86.71% 64.28% 90.9% 87.6% 43-45, 68-69, 77, 98, 129-133, 143-147, 161, 204-208, 254, 263, 281-282
electron/main/services/agent-team/user-channel.ts 52.63% 25% 66.66% 52.63% 24-38, 58-60
src/lib/gateway-api.ts 82.92% 100% 73.41% 82.78% 142, 146, 150, 154, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 202, 206, 210, 214, 433, 441
src/lib/gateway-client.ts 7.38% 0% 0% 7.77% 133-644
src/stores/team.ts 80.76% 60% 79.31% 84.09% 37, 59, 83-89, 100, 136
Generated in workflow #364 for commit f284648 by the Vitest Coverage Report Action

@FridayLiu FridayLiu changed the title Harden agent-team orchestration and add headless server restart Add Agent Team orchestration, hardening, and initial Team Run UI Apr 19, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant