Repository navigation
sessions: fix external application badge From setting and row height - #343783
Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit intoOct 23, 2026
Conversation
The showFrom setting was nested under sessions.list.externalApplicationBadge, which is itself a setting, so the configuration model ignored it and the 'From' prefix could not be turned off. Rename it to sessions.list.externalApplicationBadgeShowFrom and default it to false. The title badge had a fixed 17px height, which grew 16px quick-chat, compact, and comparison title rows by 1px until hover hid the badge. Size it to its row's line height instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Benjamin Christopher Simmonds (benibenj)
enabled auto-merge (squash)
October 23, 2026 13:04
Copilot started reviewing on behalf of
Benjamin Christopher Simmonds (benibenj)
October 23, 2026 13:05
Logan Ramos (lramos15)
approved these changes
Oct 23, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused fixes are consistent across both list implementations, include regression coverage, and have no unresolved blocking findings.
No open issues 🎉
What changed in this PR
This PR fixes external application badge configuration and hover-related row-height changes in the Agents window Sessions list.
Changes:
- Renames the conflicting “From” prefix setting and consistently defaults it to
false. - Sizes title badges to the row’s line height to prevent hover-induced resizing.
- Adds regression tests and updates screenshot fixtures to cover both prefix variants.
No blocking issues were identified. Screenshot baselines still need updating, as noted in the PR description.
| File | Description |
|---|---|
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts |
Updates default badge expectations and adds hover-height coverage. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.fixture.ts |
Updates visual expectations and retains explicit “From” coverage. |
src/vs/sessions/contrib/sessions/test/browser/sessions.contribution.test.ts |
Tests the new default and guards against nested setting conflicts. |
src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts |
Aligns renderer and list configuration fallbacks with the new default. |
src/vs/sessions/contrib/sessions/browser/sessions.contribution.ts |
Registers the renamed setting with a false default. |
src/vs/sessions/contrib/sessions/browser/media/sessionsList.css |
Matches title badge height to the inherited line height. |
src/vs/sessions/common/sessionConfig.ts |
Renames the setting key and documents the nesting constraint. |
Review effort: Balanced
Contributor
Screenshot ChangesBase: Changed (8)Added (1)Removed (1) |
Benjamin Christopher Simmonds (benibenj)
merged commit Oct 23, 2026
520e628
into
main
60 checks passed
Benjamin Christopher Simmonds (benibenj)
deleted the
benibenj/agents/fix-chat-session-badge-height
branch
October 23, 2026 13:27
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.
Fixes three problems with the external application badge in the Agents window Sessions list.
Changes
showFromsetting was ignored. The setting was namedsessions.list.externalApplicationBadge.showFrom, which nests it undersessions.list.externalApplicationBadge, which is itself a setting. The configuration model can't have a setting that is also a parent of another setting, so it dropped the value and loggedConflict in settings file … Ignoring sessions.list.externalApplicationBadge.showFrom as sessions.list.externalApplicationBadge is "title". As a result, the "From" prefix could never be turned off. This PR renames the setting tosessions.list.externalApplicationBadgeShowFrom.1lh).sessions.list.externalApplicationBadgeShowFromnow defaults tofalse.Notes for reviewers
TestConfigurationServicestores keys flat. This PR adds a registry test that nosessions.*setting is nested under another one.SessionsList_ExternalApplicationBadgeWithFrom, so both variants are still covered. Screenshot baselines will need updating.How to test
"sessions.list.externalApplicationBadgeShowFrom": trueadds the "From" prefix, and the renderer log no longer reports a settings conflict.Validation
npm run test-browser-no-install -- --run src/vs/sessions/contrib/sessions/test/browser/sessions.contribution.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --browser chromium: passed, 373 tests. The new row-height test fails without the CSS fix (17px at rest, 16px on hover).npm run eslint -- <changed .ts files>: passed.npm run stylelint -- src/vs/sessions/contrib/sessions/browser/media/sessionsList.css: passed.npm run typecheck-client: no errors in the changed files. The only error was insrc/vs/platform/terminal/node/terminalProcess.ts, because the localnode_moduleshas a stalenode-pty(1.2.0-beta.15, but^1.2.0-beta.18is required). It is unrelated to this change.