Implement inline session title editing functionality#319940
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds inline session title editing to the Agents window session header, allowing users to rename a session directly by interacting with the title area, and styles the header to support swapping the rendered title text for an inline <input>.
Changes:
- Added inline rename UI flow in
SessionHeader(swap title text span ↔ input; Enter to commit, Escape/blur to cancel). - Prevented session drag initiation while a rename input is active.
- Updated header/title CSS to support inline input styling and hover affordances for editable titles.
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/browser/parts/sessionHeader.ts | Adds inline title editing logic, editable gating, and drag suppression while editing. |
| src/vs/sessions/browser/parts/media/chatCompositeBar.css | Updates title layout and adds styles for the inline rename input + editable/hover states. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 7
Contributor
|
Base:
|
dmitrivMS
previously approved these changes
Jun 4, 2026
dmitrivMS
approved these changes
Jun 4, 2026
dmitrivMS
previously approved these changes
Jun 4, 2026
sandy081
previously approved these changes
Jun 4, 2026
dmitrivMS
previously approved these changes
Jun 4, 2026
sandy081
approved these changes
Jun 4, 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.
Copilot Generated Description:Introduce functionality for inline editing of session titles, allowing users to rename sessions directly within the interface. This includes the necessary UI elements and event handling for starting and committing edits.