Skip to content

sessions: show contextual composer guidance - #337505

Merged
Megan Rogge (meganrogge) merged 7 commits into
mainfrom
agents/experimental-session-composer-icon-launch
Sep 23, 2026
Merged

Megan Rogge (meganrogge) merged 7 commits into
mainfrom
agents/experimental-session-composer-icon-launch

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • replace the standalone icon above the experimental new-session composer with a text-based treatment
  • show general task guidance when no agent session is actively working
  • highlight parallel work when any non-visible or visible agent session is in progress or needs input
  • derive the state from the full provider-neutral session model rather than visible grid slots
  • add focused unit coverage and light/dark component fixtures for both contexts
Screenshot 2026-09-23 at 5 17 53 PM Screenshot 2026-09-23 at 5 17 48 PM

Fixes #337542

Validation

  • npm run compile
  • npm run typecheck-client
  • targeted ESLint for changed TypeScript files
  • npm run test-browser -- --grep "NewChatWidget" (58 passing)
  • component fixture error check (2/2 parallel fixtures clean)
  • component fixture stability and visual review in light and dark themes for the parallel-work state

Render the effective session type icon as a decorative visual lead while keeping the existing harness picker as the interactive control.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 23, 2026 17:34

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.

Copilot review overview

🟡 Changes recommended

The icon must react to resolved session-type changes even when selected pick IDs remain unchanged.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Adds a decorative harness icon above the experimental new-session composer while retaining the accessible picker.

Changes:

  • Exposes and displays the effective selected session type.
  • Updates icon styling, tests, and light/dark fixtures.
File Review
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionTypePicker.test.ts Tests effective session-type resolution.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​newChatWidget.test.ts Tests icon states, but not picker-event integration.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​newChatWidget.fixture.ts Adds themed experimental composer fixtures.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionTypePicker.ts Exposes the resolved selected session type.
src/​vs/​sessions/​contrib/​chat/​browser/​newChatWidget.ts Adds the icon, but it can become stale when available types change without pick IDs changing.
src/​vs/​sessions/​contrib/​chat/​browser/​media/​chatWidget.css Styles the icon; scaling arbitrary codicons to 64px is discouraged.

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

@meganrogge
Megan Rogge (meganrogge) marked this pull request as draft September 23, 2026 17:41
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 8cfe574e Current: 8617e246

Changed (1)

chat/agent-lifecycle/chatAgentLifecycle/RetainedFollowUpLatestTurn/DarkHighContrast
Before After
before after

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Added (4)

sessions/chat/newWidget/newChatWidget/NewSessionExperimentalComposer/Dark

current

sessions/chat/newWidget/newChatWidget/NewSessionExperimentalComposer/Light

current

sessions/chat/newWidget/newChatWidget/NewSessionExperimentalComposerParallel/Dark

current

sessions/chat/newWidget/newChatWidget/NewSessionExperimentalComposerParallel/Light

current

Treat the prominent mark as product branding while leaving the existing Copilot harness picker unchanged.

Co-authored-by: Copilot <[email protected]>
Replace the standalone brand icon with deterministic text that highlights parallel work when another agent session is running.

Fixes #337542

Co-authored-by: Copilot <[email protected]>
@meganrogge Megan Rogge (meganrogge) changed the title sessions: show harness icon above experimental composer sessions: show contextual composer guidance Sep 23, 2026
Use the full session model instead of visible grid slots so an in-progress session continues to trigger the parallel-work message after opening the new-session composer.

Co-authored-by: Copilot <[email protected]>
Use a single sentence-case heading with the larger regular-weight type role so the composer stays calm while preserving a clear focal point.

Co-authored-by: Copilot <[email protected]>
@meganrogge Megan Rogge (meganrogge) added this to the 1.140.0 milestone Sep 23, 2026
@meganrogge
Megan Rogge (meganrogge) marked this pull request as ready for review September 23, 2026 21:25
@meganrogge
Megan Rogge (meganrogge) merged commit f0b8207 into main Sep 23, 2026
33 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/experimental-session-composer-icon-launch branch September 23, 2026 22:08
Megan Rogge (meganrogge) added a commit that referenced this pull request Sep 24, 2026
Revert "sessions: show contextual composer guidance (#337505)"

This reverts commit f0b8207.
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use contextual text for the cross-posting affordance

3 participants