Commit b31900f
authored
feat(augment): multi-agent improvements, limit removal, and routing fix (#2600)
* feat(augment): multi-agent improvements, limit removal, and routing fix
Follow-up to #2555. Adds multi-agent orchestration improvements,
removes artificial limits, and fixes multi-turn agent routing.
Multi-agent orchestration:
- ADK-based orchestrator with HITL approval mirroring, tool resolver,
conversation state management, and agent handoffs
- VectorStoreFacade lazy init and single-flight improvements
- ResponsesApiService previous_response_id fix
Limit removals (per design decision):
- Remove MAX_TOOL_OUTPUT_CHARS, MAX_MCP_PROXY_RESPONSE_BYTES,
MAX_RESPONSE_CHAIN_DEPTH, MAX_CONTINUATION_ITERATIONS,
MAX_MESSAGE_CONTENT_LENGTH, and all truncation logic
- Remove maxToolOutputChars and maxResponseChars config
- Keep MAX_AUTO_REAPPROVALS (Llama Stack bug workaround),
auth constants, timeouts, and cache limits
Routing fix:
- Upgrade @augment-adk/augment-adk from 0.1.11 to 0.1.12
- Restore createContinuationState and resumeState so follow-up
messages resume from the active agent instead of restarting
from the router
Frontend enhancements:
- ToggleSwitch component, selectMenuProps helper
- Vector store UI and admin panel improvements
Code quality:
- McpAuthService double-map-lookup fix
- TfIdfEmbedder sort simplification
Documentation:
- CONFIG_REFERENCE.md, TROUBLESHOOTING.md
Tests:
- Comprehensive coverage (162 suites, 2644 tests passing)
- 6 resumeState continuity tests
* fix(augment): address SonarCloud quality gate findings
- Use localeCompare for string sorts (TfIdfEmbedder, BackendToolExecutor.test)
- Fix Promise-in-boolean conditionals with !== undefined (McpAuthService, VectorStoreFacade)
- Remove unnecessary non-null assertions (AdkOrchestrator, VectorStoreFacade)
- Reduce cognitive complexity by extracting helpers:
- AdkOrchestrator: resolveAgentContinuity(), mirrorPendingApprovals()
- chatRoutes: resolveConversationId()
- BackendToolExecutor: processDiscoveryResults(), preserveFailedServerTools(), etc.
- Move makeMultiAgentSnapshot to outer describe scope (AdkOrchestrator.test)
- Mark ToggleSwitch props as readonly
* fix(augment): update API report and move test helper to module scope
- Remove maxResponseChars from MCPServerConfig in report.api.md
to match the source type (field was removed in limit-removal changes)
- Move makeMultiAgentSnapshot to module scope (outside describe block)
to satisfy SonarCloud's "no functions in nested scope" rule
* fix(augment): use https in test mock URLs for SonarCloud security hotspots
Replace http:// with https:// in test fixture data (mock baseUrl and
serverUrl values) to clear SonarCloud security hotspot warnings about
clear-text protocol usage.1 parent 146e747 commit b31900f
52 files changed
Lines changed: 3406 additions & 584 deletions
File tree
- workspaces/augment
- plugins
- augment-backend
- src
- parsers
- providers
- llamastack
- adk-adapters
- auth
- config
- responses-api
- chat
- conversations
- tools
- routes
- services/utils
- types
- augment-common/docs
- augment
- src
- components/AdminPanels
- AgentsPanel
- ModelToolsPanel
- PromptsPanel
- SafetyEvalPanel
- hooks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
6 | 61 | | |
7 | 62 | | |
8 | 63 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
14 | 69 | | |
15 | 70 | | |
16 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments