Skip to content

sessions: add rotating composer welcome phrases - #337988

Merged
Megan Rogge (meganrogge) merged 10 commits into
microsoft:mainfrom
meganrogge:agents/revert-and-rotate-phrases-experimental
Sep 25, 2026
Merged

Megan Rogge (meganrogge) merged 10 commits into
microsoft:mainfrom
meganrogge:agents/revert-and-rotate-phrases-experimental

Conversation

@meganrogge

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

Copy link
Copy Markdown
Collaborator
Screenshot 2026-09-25 at 12 17 00 PM Screenshot 2026-09-25 at 12 17 06 PM Screenshot 2026-09-25 at 12 17 11 PM

Summary

  • restore the contextual heading above the new-session composer
  • rotate the five welcome phrases across newly constructed composers
  • personalize phrases with only the first name from the signed-in GitHub profile
  • omit personalization when GitHub has no profile name, rather than displaying the login
  • add the synced sessions.chat.experimental.welcomeName user setting for a custom name
  • expose Set Welcome Name through a hover/focus edit action, heading context menu, and Command Palette

Experimental opt-in

This feature is opt-in and disabled by default. Enable sessions.chat.experimental.welcomePhrases to show rotating welcome phrases. This experiment is independent of sessions.chat.experimental.newSessionComposerLayout.

Accessibility

  • the edit icon is hidden at rest and revealed on pointer hover or keyboard focus
  • the icon action is keyboard focusable and labeled
  • the same action is available from the keyboard-accessible context menu
  • Agents window accessibility help documents the interaction

Validation

  • npm run typecheck-client
  • targeted ESLint on changed TypeScript files
  • Stylelint on src/vs/sessions/contrib/chat/browser/media/chatWidget.css
  • focused composer and layout tests (67 passing)
  • npm run compile
  • verified in the OSS Agents window: hidden at rest, visible on hover/focus, context-menu action present, and Margaret Hamilton renders as Margaret

Fixes #337993

Copilot AI balanced review requested due to automatic review settings September 25, 2026 15:59

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

Enterprise tokens can be sent to the wrong GitHub host, and account switching can display a stale profile name.

Get a fresh assessment by requesting another Copilot review.

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

Open (4)
What changed in this PR

Restores personalized, rotating welcome headings for the experimental new-session composer and enables that layout by default.

Changes:

  • Adds five localized welcome phrases with GitHub profile personalization.
  • Adds heading styling and focused tests.
  • Enables the experimental layout by default.
File Description
newChatWidget.ts Implements phrase rotation and profile lookup.
chatWidget.css Styles the welcome heading.
chat.contribution.ts Changes the layout default and description.
newChatWidget.test.ts Tests phrases and account fallback.

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

Restore the experimental composer and unified workspace picker settings as default-on controls. Rotate personalized welcome phrases using the signed-in GitHub profile display name when available.\n\nCo-authored-by: Copilot <[email protected]>
Avoid changing the shared default account request sequence by loading and caching the GitHub display name only for the new-session welcome heading.\n\nCo-authored-by: Copilot <[email protected]>
Show only the first configured or GitHub profile name, keep the edit action quiet until hover or keyboard focus, and expose the same setting through the welcome context menu.\n\nCo-authored-by: Copilot <[email protected]>
Guard unresolved enterprise profile requests, clear stale account names, align the heading type role, and cover sequential phrase rotation.\n\nCo-authored-by: Copilot <[email protected]>
Keep the experimental new-session composer layout disabled until users explicitly enable its setting.\n\nCo-authored-by: Copilot <[email protected]>
Gate rotating welcome phrases behind their own opt-in setting without coupling them to the experimental composer layout.\n\nCo-authored-by: Copilot <[email protected]>
@meganrogge Megan Rogge (meganrogge) changed the title sessions: restore rotating composer welcome phrases sessions: add rotating composer welcome phrases Sep 25, 2026
@meganrogge
Megan Rogge (meganrogge) force-pushed the agents/revert-and-rotate-phrases-experimental branch from 7c42821 to 71fcd00 Compare September 25, 2026 16: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

Profile fetching is not fully feature-gated and has unresolved account initialization and switching races.

Get a fresh assessment by requesting another Copilot review.

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

Open (4)
Resolved since last review (4)

Only resolve GitHub profile names when welcome phrases need them, and keep async results scoped to the authentication provider and session. Keep accessibility help aligned with the experimental setting.

Co-authored-by: Copilot <[email protected]>
Preserve the visual gap with padding while retaining the action hit target so pointer movement from the heading does not hide the pencil.

Co-authored-by: Copilot <[email protected]>
Register the profile lookup dependencies in component fixtures and provide the experimental setting defaults. Allow the intentional smart apostrophes through hygiene.

Co-authored-by: Copilot <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agents: Add opt-in rotating welcome phrases

3 participants