Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🤖 Augment PR SummarySummary: Consolidates agent delegation prompt generation into a single unified block to reduce duplication and keep delegation guidance compact. Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
| Use the delegate_to_agent tool with the agent name and a clear task description. | ||
| Monitor the agent's progress and incorporate its results into your response. | ||
| `.trim() | ||
| const summary = (def.description || def.displayName || 'External agent').trim() |
There was a problem hiding this comment.
(def.description || def.displayName || 'External agent').trim() can become an empty string if the configured description/displayName is whitespace, resulting in a blank delegation entry. Consider applying the fallback after trimming so the prompt line always has a non-empty summary.
Severity: low
Other Locations
apps/desktop/src/main/system-prompts.ts:156
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
| const info = getInternalAgentInfo() | ||
| lines.push(`- **internal**: Spawn parallel sub-agents (max depth ${info.maxRecursionDepth}, max ${info.maxConcurrent} concurrent)`) | ||
|
|
||
| if (lines.length === 0) { |
There was a problem hiding this comment.
Because the internal agent line is always pushed (line 164), the if (lines.length === 0) branch is unreachable and the docstring about returning an empty string is currently misleading. If the intent was to sometimes omit the entire block, this logic will never do that in agent mode.
Severity: low
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Summary
Testing