fix: throttle progress edits via 5s ticker, prevent Discord rate limit

- Remove per-tool-activity sync calls (was flooding Discord with edits)
- Ticker-only sync at 5s intervals for time + tool activity updates
- Summary updates heading directly when progress message exists
- Prevent duplicate progress message creation with progressCreating flag
This commit is contained in:
Eyejoker
2026-03-23 19:13:51 +09:00
parent 5112af6741
commit a8a1c9b45a
3 changed files with 43 additions and 32 deletions

View File

@@ -558,7 +558,7 @@ async function runQuery(
if (summary) {
writeOutput({
status: 'success',
phase: 'tool-activity',
phase: 'progress',
result: `📋 ${summary}`,
newSessionId,
});