Repository navigation
sessions: add rotating composer welcome phrases - #337988
Merged
Megan Rogge (meganrogge) merged 10 commits intoSep 25, 2026
Merged
Megan Rogge (meganrogge) merged 10 commits into
Megan Rogge (meganrogge) merged 10 commits into
Conversation
Contributor
There was a problem hiding this comment.
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
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.
Megan Rogge (meganrogge)
marked this pull request as ready for review
September 25, 2026 16:32
Megan Rogge (meganrogge)
enabled auto-merge (squash)
September 25, 2026 16:32
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]>
Megan Rogge (meganrogge)
force-pushed
the
agents/revert-and-rotate-phrases-experimental
branch
from
September 25, 2026 16:34
7c42821 to
71fcd00
Compare
Contributor
There was a problem hiding this comment.
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
Open (4)
Gate GitHub profile fetches on welcome settings and configured name · New Await default account resolution when the account snapshot is empty · New Track authentication provider alongside session ID for profile requests · New Condition accessibility help text on the welcome action being enabled · New
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]>
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]>
Vritant Bhardwaj (vritant24)
approved these changes
Sep 25, 2026
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
sessions.chat.experimental.welcomeNameuser setting for a custom nameExperimental opt-in
This feature is opt-in and disabled by default. Enable
sessions.chat.experimental.welcomePhrasesto show rotating welcome phrases. This experiment is independent ofsessions.chat.experimental.newSessionComposerLayout.Accessibility
Validation
npm run typecheck-clientsrc/vs/sessions/contrib/chat/browser/media/chatWidget.cssnpm run compileMargaret Hamiltonrenders asMargaretFixes #337993