Skip to content

fix(ui): track RPC-spawned agent activity - #181

Open
xz-dev wants to merge 1 commit into
tintinweb:masterfrom
xz-dev:fix/rpc-agent-activity
Open

fix(ui): track RPC-spawned agent activity#181
xz-dev wants to merge 1 commit into
tintinweb:masterfrom
xz-dev:fix/rpc-agent-activity

Conversation

@xz-dev

@xz-dev xz-dev commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • create the normal live activity tracker for agents spawned through the cross-extension RPC used by TaskExecute
  • register RPC-spawned activity with the agent widget and FleetView
  • add an extension-level regression test covering a running tool being shown instead of a permanent thinking… fallback

Problem

TaskExecute starts agents through subagents:rpc:spawn, which called AgentManager.spawn() directly. Unlike the Agent tool path, that path never created an AgentActivity tracker or supplied its callbacks.

This produced contradictory UI: the header's tool-use count continued increasing and Conversation Viewer showed real work, while the activity line stayed at thinking… for the entire run.

Fix

The RPC handler now receives a narrow manager wrapper that creates the existing tracker before spawning, composes its callbacks into the spawn options, and registers the returned agent ID with the existing widget/FleetView activity map. Direct Agent spawns and scheduled agents remain unchanged.

Verification

  • regression test proved RED before the fix (thinking… while a bash tool was active)
  • npm run lint
  • npm run typecheck
  • npm run test — 756 passed, 5 skipped
  • npm run build
  • git diff --check

xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 29, 2026
@xz-dev
xz-dev force-pushed the fix/rpc-agent-activity branch from 1bc7b55 to 59d5869 Compare July 31, 2026 04:34
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 31, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 31, 2026
@xz-dev
xz-dev force-pushed the fix/rpc-agent-activity branch from 59d5869 to aa428bc Compare August 2, 2026 16:24
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Aug 2, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Aug 4, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Aug 4, 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.

1 participant