Skip to content

fix(agent-manager): resolve pending board routes early - #13967

Merged
marius-kilocode merged 4 commits into
mainfrom
animate-subagent-tool-call
Sep 9, 2026
Merged

marius-kilocode merged 4 commits into
mainfrom
animate-subagent-tool-call

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Shared-agent board posts only receive their sender, recipient, and title metadata after the tool result arrives. During streaming, the route can show neutral Agent avatars and incomplete labels, making the wait look stalled.

Why This Change Was Made

Resolve the pending route from the session store instead of waiting for result metadata. Confirmed tool metadata remains authoritative after completion. Partial recipient IDs stay neutral until they match a known session, which avoids color flicker. A lightweight CSS pending cue remains secondary to the data-flow optimization.

User Impact

Pending board posts show the real sender and known recipient avatars and session titles immediately. Unknown or partial recipient IDs remain neutral until resolved. The route remains stable when the tool completes or fails.

Evidence

  • bun run compile from packages/kilo-vscode/
  • bun test tests/unit/board-tool-render.test.ts tests/unit/swarm-board.test.ts from packages/kilo-vscode/
  • bun test src/components/board-route.test.ts src/components/agent-avatar-identity.test.ts src/components/basic-tool.test.ts from packages/kilo-ui/
  • bun run knip, bun run check-kilocode-change, and formatting checks
  • Storybook verification of pending and completed route states

The primary change is an optimistic rendering and data-flow optimization. No runtime performance improvement is claimed or measured.

@kilo-code-bot

kilo-code-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (8 files)
  • .changeset/board-post-sending-route.md
  • packages/kilo-docs/public/img/screenshot-tests/kilo-vscode/visual-regression/composite-webview/agent-message-pending-chromium-linux.png
  • packages/kilo-ui/src/components/board-message.css
  • packages/kilo-ui/src/components/board-message.tsx
  • packages/kilo-ui/src/components/board-route.test.ts
  • packages/kilo-ui/src/components/board-route.ts
  • packages/kilo-ui/src/components/message-part.tsx
  • packages/kilo-vscode/webview-ui/src/stories/composite.stories.tsx
Previous Review Summary (commit 0aad88e)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 0aad88e)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (7 files)
  • .changeset/board-post-sending-route.md
  • packages/kilo-ui/src/components/board-message.css
  • packages/kilo-ui/src/components/board-message.tsx
  • packages/kilo-ui/src/components/board-route.test.ts
  • packages/kilo-ui/src/components/board-route.ts
  • packages/kilo-ui/src/components/message-part.tsx
  • packages/kilo-vscode/webview-ui/src/stories/composite.stories.tsx

Reviewed by grok-4.6 · Input: 89.8K · Output: 12.7K · Cached: 460.8K

Review guidance: REVIEW.md from base branch main

@marius-kilocode marius-kilocode changed the title feat(agent-manager): animate pending board routes fix(agent-manager): resolve pending board routes early Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants