Commit d01266a
committed
fix(delegate): respect chat.defaultAgent setting when no agent is specified
When the delegate tool is invoked without an explicit agent name, it
was unconditionally falling back to the hardcoded DEFAULT_AGENT_NAME
("q_cli_default"), ignoring the user's chat.defaultAgent setting.
Fix the fallback chain to:
1. Use the explicitly provided agent name (unchanged)
2. Fall back to chat.defaultAgent setting if set
3. Fall back to DEFAULT_AGENT_NAME as last resort
Fixes #31741 parent e14ea18 commit d01266a
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
0 commit comments