Skip to content

fix(cowork): stabilize subagent progress tracking#2207

Closed
btc69m979y-dotcom wants to merge 2 commits into
feat/openclaw-2026-6-1-upgradefrom
fix/openclaw-subagent-announce-diagnostics
Closed

fix(cowork): stabilize subagent progress tracking#2207
btc69m979y-dotcom wants to merge 2 commits into
feat/openclaw-2026-6-1-upgradefrom
fix/openclaw-subagent-announce-diagnostics

Conversation

@btc69m979y-dotcom

Copy link
Copy Markdown
Collaborator

Summary

  • derive subagent progress from local subagent_runs instead of relying on model-authored announce text
  • correct stale subagent announce progress after chat.final, including the observed 5/5 local state rendered as 3/5
  • preserve failed spawn rows while appending retry replacements and fix terminal subagent duration display
  • keep diagnostic logs for subagent announce/history reconciliation paths

Verification

  • npx eslint --ext ts,tsx --report-unused-disable-directives --max-warnings 0 src/main/libs/agentEngine/openclawRuntimeAdapter.ts src/main/libs/agentEngine/openclawRuntimeAdapter.test.ts src/main/libs/agentEngine/subagentTracker.ts src/main/libs/agentEngine/subagentTracker.test.ts src/main/subagentRunStore.ts src/renderer/components/agentSidebar/SubagentTaskRow.tsx src/renderer/components/agentSidebar/useSubagentSessions.ts src/renderer/types/cowork.ts src/renderer/types/electron.d.ts
  • npx tsc --noEmit --pretty false --project electron-tsconfig.json
  • npx vitest run src/main/libs/agentEngine/openclawRuntimeAdapter.test.ts --testNamePattern "deterministic subagent progress|child chat final marks matching subagent done|child lifecycle end marks matching subagent done|empty subagent announce final|empty final with local tool messages"
  • git diff --check (CRLF warnings only)

Note

  • src/main/libs/agentEngine/subagentTracker.test.ts could not be executed in this local shell because the installed better-sqlite3 native module was built for a different Node ABI.

@btc69m979y-dotcom

Copy link
Copy Markdown
Collaborator Author

Closing in favor of a narrower sidebar terminal duration fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant