Skip to content

chat: center subagent tool activity hooks - #341258

Merged
Justin Chen (justschen) merged 1 commit into
mainfrom
agents/center-chain-hook-and-tool-call
Oct 13, 2026
Merged

Justin Chen (justschen) merged 1 commit into
mainfrom
agents/center-chain-hook-and-tool-call

Conversation

@justschen

@justschen Justin Chen (justschen) commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator
tool-chain-alignment.mp4

Summary

Fix the subagent activity hook misalignment reported in the Agents and editor windows. The connector was top-aligned and ended 5.5px above the tool icon's center.

  • Center the connector relative to the activity row and account for the horizontal stroke's thickness.
  • Extend the stem and increase the hook-to-icon gap from 4px to 6px using existing spacing tokens.
  • Keep the fix in the shared stylesheet; no DOM, accessibility semantics, or tool behavior changes.

Validation

  • npm run gulp compile-client — passed, 0 compilation/type errors.
  • ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/widget/chatContentParts/chatSubagentContentPart.test.ts --reporter dot — passed, 154 tests.
  • npm run stylelint -- src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentOpenChat.css — passed.
  • git diff --check — passed.
  • Live component checks — reproduced the original -5.5px center offset and verified the fix has a 0px offset (within 0.01px) and a 6px gap for five parallel agents, file-read activity in dark/light themes, larger text with a taller activity row, and nested agents in high contrast.
  • Existing running-subagent dark/light fixtures — stable across three screenshot samples each; nested high-contrast fixtures — no render/disposal errors.

A captioned before/after MP4 was recorded from live shared production-component fixtures by piping browser viewport frames directly into ffmpeg. The recording uses the original CSS declarations for its baseline, then removes that override to show the compiled fix. Authenticated/live-provider flows were not exercised.

How to Test

  1. Start a chat with active subagents in either the Agents window or the editor window.
  2. Check both the initial "Working on it..." row and a subsequent tool activity row.
  3. Confirm the hook's horizontal stroke meets the activity icon's centerline and the icon has a little more separation from the hook.
  4. Check light/dark/high-contrast themes, nested agents, and zoomed or larger-text layouts.

For deterministic preview, use the existing Component Explorer fixtures chat/widget/chatWidget/PersistentProgress/ToolChains/ParallelSubagents/Dark, chat/chatRendering/SubagentRead/{Dark,Light}, and chat/chatSubagentContent/NestedSubagent/DarkHighContrast.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 08:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused CSS change correctly uses existing design tokens and has comprehensive visual and automated validation.

0 open findings

What changed in this PR

Centers subagent activity connectors across Agents and editor windows.

Changes:

  • Centers and extends the connector stem.
  • Aligns the stroke with the activity icon and increases spacing.
File Description
chatSubagentOpenChat.css Adjusts connector alignment, height, and spacing.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 76f9f309 Current: 5db3436d

Changed (41)

sessions/chatCompositeBar/MixedStatuses/Light
Before After
before after
sessions/chatCompositeBar/OverflowingTabs/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/SynchronousRunning/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/BackgroundRunning/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/NestedBackgroundChat/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/ParentCompleteChildRunning/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/ChildStartsAfterParentComplete/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/LateSubagentClassification/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/RetainedFollowUpFullConversation/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/RetainedFollowUpLatestTurn/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/ResumedIdleBackgroundAgent/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/ParallelBackgroundAgents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/CompletedSectionBeforeSubagents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/CompletedThinkingAfterSubagents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/CompletedAgentReadAfterSubagents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/PersistentCompletedSectionBeforeSubagents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/PersistentCompletedThinkingAfterSubagents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/PersistentCompletedAgentReadAfterSubagents/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/UnknownModel/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/LateModelDiscovery/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/MatchingParentModel/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/AutoParentConcreteChild/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/MatchingByokModel/Light
Before After
before after
chat/agent-lifecycle/chatAgentLifecycle/NarrowBackgroundRunning/Light
Before After
before after
chat/chatRendering/SubagentRead/Light
Before After
before after
chat/chatRendering/SubagentTerminal/Light
Before After
before after
chat/chatRendering/SubagentSearch/Light
Before After
before after
chat/chatRendering/SubagentGeneric/Light
Before After
before after
chat/chatRendering/SubagentConfirmation/Light
Before After
before after
chat/chatRendering/InlineSubagentConfirmation/Light
Before After
before after
chat/chatRendering/LegacyInlineSubagentConfirmation/Light
Before After
before after
chat/chatSubagentContent/FusionSingle/Light
Before After
before after
chat/chatSubagentContent/FusionCascade/Light
Before After
before after
chat/chatSubagentContent/FusionCritique/Light
Before After
before after
chat/chatSubagentContent/FusionPermission/Light
Before After
before after
chat/chatSubagentContent/Running/Light
Before After
before after
chat/chatSubagentContent/NestedSubagent/Light
Before After
before after
chat/chatSubagentContent/NestedSubagentUnavailable/Light
Before After
before after
chat/chatSubagentContent/Inline/Light
Before After
before after
chat/chatSubagentContent/InlineExpanded/Light
Before After
before after
chat/chatSubagentContent/StartedAfterParentComplete/Light
Before After
before after

@abdulmjedalamri1-beep abdulmjedalamri1-beep left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d

@justschen
Justin Chen (justschen) marked this pull request as ready for review October 13, 2026 18:04
@justschen
Justin Chen (justschen) enabled auto-merge (squash) October 13, 2026 18:04
@justschen
Justin Chen (justschen) merged commit 6ba04a1 into main Oct 13, 2026
56 of 57 checks passed
@justschen
Justin Chen (justschen) deleted the agents/center-chain-hook-and-tool-call branch October 13, 2026 18:34
@vs-code-engineering vs-code-engineering Bot added this to the 1.143.0 milestone Oct 13, 2026
Don Jayamanne (DonJayamanne) added a commit that referenced this pull request Oct 13, 2026
…xploration-vscode

* origin/main: (40 commits)
  MSRC fixes (#341342)
  chat: render input attachments for the input model's session (#341350)
  chat: center subagent tool activity hooks (#341258)
  Manage Copilot plugin marketplaces through Agent Host (#341301)
  fix: linux setuid sandbox helper permissions (#341292)
  agentHost: resolve #chat chips on the host of the chat that shows them (#341332)
  [Perf] agentHost: limit archived sessions over Mission Control (#341327)
  Remember expanded state for "Other Models" in model picker (#341335)
  Offer Stop for copilot detached background shells  (#341310)
  agentHost: allow inherited peer chats to move workspaces (#341317)
  [Perf] agentHost: reduce Mission Control relay overhead (#341223)
  Fix Customizations modal spacing (#341144)
  Fix dependency cycle in QuickInputService and EditorResolverService (#341321)
  Fix Explorer refresh on restoring deleted workspace root folder (#341323)
  chat: Share and rate-limit core utility model requests (#340100)
  agentHost: open #chat chips on the connection that owns the chat (#341313)
  Fix flaky StorageMainService tests by awaiting storage warm-up (#341305)
  agentHost: record the default chat role instead of reading the default chat URI shape (#341293)
  welcome: preserve tab icon color with Modern Icons
  Fix flaky test in diskFileSystemProvider.test.ts (#341304)
  ...

# Conflicts:
#	src/vs/platform/agentHost/node/agentService.ts
#	src/vs/platform/agentHost/node/protocolServerHandler.ts
#	src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts
#	src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts
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.

4 participants