Hide repository controls for new chats in a session - #334965
Open
Sandeep Somavarapu (sandy081) wants to merge 2 commits into
Open
Hide repository controls for new chats in a session#334965Sandeep Somavarapu (sandy081) wants to merge 2 commits into
Sandeep Somavarapu (sandy081) wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Sandeep Somavarapu (sandy081)
September 7, 2026 18:45
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Attachment layout remains inconsistent when centered, and the test does not cover the host wiring.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 2
New issues introduced by this change (2)
| Severity | Finding |
|---|---|
src/vs/sessions/contrib/chat/browser/media/newChatInSession.css — Centering this flex item exposes the attachment-offset path, but the in-session… |
|
src/vs/sessions/contrib/chat/test/browser/newChatInput.test.ts — This exercises only the extracted helper, not the in-session host wiring. Removing… |
What changed in this PR
Hides repository controls and centers the composer for new chats within existing sessions.
Changes:
- Adds an option to suppress repository controls.
- Enables suppression for in-session chats.
- Updates centering styles and adds regression coverage.
| File | Description |
|---|---|
newChatInput.test.ts |
Tests repository-control suppression. |
newChatInSessionWidget.ts |
Disables repository controls in-session. |
newChatInput.ts |
Adds conditional control rendering. |
newChatInSession.css |
Centers the in-session composer. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ladislau Szomoru (lszomoru)
approved these changes
Sep 7, 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Validation
npm run compilenpm run hygiene./scripts/test.sh --run src/vs/sessions/contrib/chat/test/browser/newChatInput.test.tsnpm run stylelint -- src/vs/sessions/contrib/chat/browser/media/newChatInSession.css