fix: clean up progress tracking, fix subagent summary field handling

- Use system/task_progress subtype (not top-level type) for subagent events
- Extract intermediate assistant text between tool calls as progress
- Only show SDK-generated summaries for subagent progress (skip noisy per-tool updates)
- Truncate progress messages to Discord 2000 char limit
- Remove verbose debug logging from production
This commit is contained in:
Eyejoker
2026-03-23 17:59:49 +09:00
parent 7908115ea8
commit 0438d9113b
3 changed files with 24 additions and 7 deletions

View File

@@ -238,7 +238,7 @@ export async function runAgentProcess(
const lines = chunk.trim().split('\n');
for (const line of lines) {
if (!line) continue;
if (line.includes('Turn in progress')) {
if (line.includes('Turn in progress') || line.includes('Subagent') || line.includes('Intermediate assistant')) {
logger.info(
{ group: group.name, chatJid: input.chatJid, runId: input.runId },
line.replace(/^\[.*?\]\s*/, ''),