Skip to content

sessions: adjust notification placement and spacing#311959

Merged
hawkticehurst merged 1 commit intomainfrom
agents/update-notification-placement-sessions-app
Apr 22, 2026
Merged

sessions: adjust notification placement and spacing#311959
hawkticehurst merged 1 commit intomainfrom
agents/update-notification-placement-sessions-app

Conversation

@hawkticehurst
Copy link
Copy Markdown
Member

@hawkticehurst hawkticehurst commented Apr 22, 2026

Summary

Updates notification placement in the sessions app only.

  • default workbench.notifications.position to bottom-right for sessions
  • adjust sessions-only notification center offsets to 15px from the relevant bottom/right or bottom/left edges
  • adjust sessions-only toast offsets to match the notification center spacing
  • keep top-right placement at top: 40px; right: 15px in sessions, including a sessions-layer runtime override for the shared inline top offset
  • sync src/vs/sessions/LAYOUT.md with the implementation changes
Screenshot 2026-04-22 at 1 22 28 PM

Notes

  • The CSS changes are scoped with .agent-sessions-workbench
  • The runtime top-offset fix is implemented in src/vs/sessions/browser/workbench.ts, so the shared workbench notification behavior is unchanged

Copilot AI review requested due to automatic review settings April 22, 2026 18:01
@hawkticehurst hawkticehurst changed the title sessions: adjust notification placement sessions: adjust notification placement and spacing Apr 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts notification placement and offsets specifically for the Agents/Sessions standalone workbench (vs/sessions) without changing the shared VS Code workbench behavior.

Changes:

  • Defaults workbench.notifications.position to bottom-right for sessions.
  • Adds sessions-scoped CSS to set notification center + toast offsets to 15px from the relevant edges (and preserves top-right as top: 40px; right: 15px).
  • Adds a sessions-only runtime override to re-apply the top: 40px offset after shared notification controllers compute their inline top offsets, and updates LAYOUT.md accordingly.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/vs/sessions/contrib/configuration/browser/configuration.contribution.ts Changes sessions default notification position to bottom-right.
src/vs/sessions/browser/workbench.ts Adds sessions-only runtime logic to re-apply the fixed top-right top offset.
src/vs/sessions/browser/media/style.css Adds sessions-scoped notification center/toast edge offsets (15px) and top-right center positioning.
src/vs/sessions/LAYOUT.md Updates layout documentation and changelog to match the new placement/offset behavior.

Default sessions notifications to bottom-right and tune the sessions-only notification center and toast offsets for each supported placement.

Also reapply the sessions top-right offset after the shared notification controllers run so the sessions window keeps its intended 40px spacing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hawkticehurst hawkticehurst force-pushed the agents/update-notification-placement-sessions-app branch from 9331453 to 5ed81d5 Compare April 22, 2026 18:28
@hawkticehurst hawkticehurst merged commit e71a6eb into main Apr 22, 2026
26 checks passed
@hawkticehurst hawkticehurst deleted the agents/update-notification-placement-sessions-app branch April 22, 2026 20:28
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants