fix: dedup intermediate/final, filter long descriptions, update SDKs

- Track lastIntermediateText to prevent duplicate Discord delivery
  when same text arrives as both intermediate and final
- Filter task_progress descriptions >80 chars (AI summaries)
- Mark completed subagents with  instead of removing
- Update claude-agent-sdk 0.2.76→0.2.81, codex 0.115→0.116
This commit is contained in:
Eyejoker
2026-03-23 20:16:54 +09:00
parent 21a6be84b4
commit 2161b555ec
6 changed files with 62 additions and 52 deletions

View File

@@ -581,7 +581,8 @@ async function runQuery(
const taskId = typeof tp.task_id === 'string' ? tp.task_id : undefined;
const summary = typeof tp.summary === 'string' ? tp.summary : '';
const description = typeof tp.description === 'string' ? tp.description : '';
if (description) {
if (description && description.length <= 80) {
// Short tool description → show as sub-line in progress
writeOutput({
status: 'success',
phase: 'tool-activity',
@@ -589,6 +590,9 @@ async function runQuery(
agentId: taskId,
newSessionId,
});
} else if (description) {
// Long AI summary → skip (too long for progress sub-line)
log(`Skipping long task_progress description (${description.length} chars)`);
}
}