Skip to content

fix(desktop): keep toasts clear of the work panel - #1823

Merged
vastsa merged 3 commits into
vastsa:mainfrom
AuhNijGnahz:fix/toast-work-panel-overlap
Oct 22, 2026
Merged

vastsa merged 3 commits into
vastsa:mainfrom
AuhNijGnahz:fix/toast-work-panel-overlap

Conversation

@AuhNijGnahz

@AuhNijGnahz AuhNijGnahz commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • anchor the body-level toast stack to the live main-content safe area while the chat shell is visible
  • follow work-panel resize and same-width horizontal shifts without changing Toast navigation, dismissal, timing, or stacking
  • retain viewport-centered fallback placement when no main-content anchor exists
  • synchronize English/Chinese UX specs and extend the AskTool notification Electron regression

Verification

Original task candidate: f30a994d0f03d4818f94079f2a344d422d8bc4b3
Original base main: fc8d396ce266b1b5cbd5d29e1feeee4825af1ed8
Environment: Windows x64, Node 22.22.0, pnpm 12.8.1, reused primary-checkout dependencies

  • node apps/desktop/node_modules/typescript/bin/tsc -p apps/desktop/tsconfig.json --noEmit
  • node node_modules/@biomejs/biome/bin/biome lint
  • node scripts/check-style-tokens.mjs
  • node apps/desktop/node_modules/electron-vite/bin/electron-vite.js build
  • node scripts/e2e-question-notification.mjs
  • node --test apps/desktop/test/settings-dialog-overlay.test.mjs apps/desktop/test/settings-inline-import-user-path.test.mjs
  • node docs/scripts/check-locales.mjs
  • node docs/scripts/check-docs.mjs
  • node scripts/check-pr-base-main.mjs

Integration candidate: 2ec8c55e04ed8b01c5dd3ecb91c8291761688103
Integration base main: b3baac3c49d8f0f353c2ee3a21e5a07a08806688

  • Re-ran desktop typecheck, repository Biome lint, Electron build, documentation checks, PR-base check, and node scripts/e2e-question-notification.mjs on the integration candidate; all passed.

Closes #1820

Anchor the global toast stack to the live main-content bounds so docked and resized work panels remain usable while notifications are visible. Preserve viewport fallback placement outside the chat shell and cover resize and horizontal-shift geometry in the question-notification journey.

Refs vastsa#1820
Refresh the toast fix candidate after the runtime changes landed so its head contains the current integration base.
Drive the focus and blur lifecycle through explicit DOM events so the countdown coverage does not depend on operating-system window activation. Keep native keyboard input coverage in Electron.
@vastsa
vastsa merged commit 8a95c8f into vastsa:main Oct 22, 2026
5 of 6 checks passed
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.

[Bug] AskTool 问题通知遮挡工作面板浏览器工具栏

2 participants