mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-27 21:09:31 +01:00
* Float chat pills above the chat input The sessions status pills sat inside the chat input part's layout, so the transcript ended where the pills began. Float them instead, so content renders and scrolls underneath. New `IChatWidgetViewOptions.persistentContentHeight` opts a widget in: it floats whatever the host mounts into the input's persistent content container, reserves the same space below the transcript via the list's `paddingBottom`, and keeps the scroll-to-bottom button, the input scrim and the suggest-next widget clear of it. Only the Agents window sets it today; every other chat widget keeps the previous in-flow layout. The row itself is click-through so the transcript stays interactive behind it. Its pills take hit-testing back and now paint an opaque background, compositing the (translucent) secondary button color over the chat widget background so nothing shows through. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Address PR review feedback Keep the visibility menu reachable when no pill is visible: Customizations and Subagents are hidden by default, so a session with only those kinds had an empty click-through row and no way to restore them. The empty row takes back a hit-testable strip. Keep the row's position when the composer is hidden. With no in-flow sibling left, `bottom: 100%` dropped the flex gap the normal case relies on and the row sat 4px high. Cover the `scrollToEnd` padding compensation with a test; it fails with `atBottom: false` without the fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix hygiene: register the new CSS variable and restore test formatting Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>