Skip to content

fix(uiux): round-1 bug-hunt fixes (MCP workspace leak, settings toggle race, toast/notification keyboard, toast dismiss i18n) - #298

Closed
kahme247 wants to merge 1 commit into
mainfrom
bug-hunt/uiux-round1
Closed

kahme247 wants to merge 1 commit into
mainfrom
bug-hunt/uiux-round1

Conversation

@kahme247

Copy link
Copy Markdown
Collaborator

Found by the round-1 bug-hunt fleet (area: UI/UX), all reproduced before fixing.

  • MAJOR: the MCP editor kept the previous workspace's server after switching workspaces, and Save would create it in the wrong project. load() now blanks the editor on workspace switch (and when the selection disappears via external delete); a fresh "add server" draft survives a plain refresh. McpConfig is also keyed by cwd in SettingsConfig, so a switch remounts it even if the load logic regresses.
  • MAJOR: server-side settings toggles (auto-resume, agent tools) could show the opposite of the server value after a fast double-toggle, because saves were not serialized. Both toggles are now disabled while a save is in flight (matching the notification toggles). This matters most for the agent-tools toggle, a security boundary.
  • MINOR: clamped notification/toast descriptions were clickable but not keyboard-operable. ClampedDescription is now a real (unstyled, keeps aria-expanded), giving Enter/Space natively.
  • MINOR: notification list rows responded to Enter but not Space. Space is now accepted alongside Enter (with preventDefault), mirroring ChatMinimap; Space on the description/dismiss buttons still does not open the row.
  • MINOR: the toast close button label was hardcoded English. New toast.dismiss key (en/ja/zh-CN) is now used for its aria-label.

Tests: targeted suites McpConfig 4/4, NotificationBell 3/3, NotificationList 10/10, toast 3/3, toast.click 9/9, toast.swipe 4/4, SettingsConfig.toggles 2/2, SettingsTabs 2/2, SettingsLayout 3/3; tsc clean; eslint clean on touched files. Two intermediate regressions (translator shadowing in Toaster; swipe-to-dismiss starting on description text) were caught and fixed during verification. Parent re-verified: same targeted suites, tsc, and eslint on the pushed commit.

Not in scope: the chart measure-select case (did not reproduce); title="Click to expand" on ClampedDescription is still hardcoded English (same class as the close-button fix — small follow-up).

…e race, toast/notification keyboard, toast dismiss i18n)
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fb96f54e-00b2-4e3f-af47-a906ee7f5f03
Commits

Reviewing files that changed from the base of the PR and between 7d0ce59 and cdae97a.

Files selected for processing: 11
  • components/McpConfig.test.mjs
  • components/McpConfig.tsx
  • components/NotificationList.test.mjs
  • components/NotificationList.tsx
  • components/SettingsConfig.toggles.test.mjs
  • components/SettingsConfig.tsx
  • components/ui/toast.click.test.mjs
  • components/ui/toast.tsx
  • lib/i18n/locales/en.json
  • lib/i18n/locales/ja.json
  • lib/i18n/locales/zh-CN.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kilo-code-bot

kilo-code-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Code Review Roast 🔥

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are.

Files Reviewed (11 files)
  • components/McpConfig.tsx
  • components/NotificationList.tsx
  • components/SettingsConfig.tsx
  • components/ui/toast.tsx
  • lib/i18n/locales/en.json
  • lib/i18n/locales/ja.json
  • lib/i18n/locales/zh-CN.json
  • components/McpConfig.test.mjs
  • components/NotificationList.test.mjs
  • components/SettingsConfig.toggles.test.mjs
  • components/ui/toast.click.test.mjs

Reviewed by free · Input: 53.5K · Output: 1.3K · Cached: 94.9K

@kahme247 kahme247 added the needs rebase Rebase onto current main; needs re-review label Nov 5, 2026
@kahme247

kahme247 commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

The Bun server/daemon architecture has landed on main, so this PR needs to be rebased and re-reviewed against the new architecture before it can be merged. Please rebase onto current main, resolve the conflicts, and request re-review once CI is green.

@andrebrait andrebrait left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for addressing the MCP workspace leak, settings races and keyboard accessibility. Maintainer review at cdae97a87ca9b1f6002c7d3551828463b54ae283: the core fixes are useful, but one accessibility change regresses an existing touch interaction.

Required — retain swipe dismissal from clamped descriptions (components/ui/toast.tsx:116-142). ClampedDescription becomes a button, and Base UI excludes swipe starts originating inside buttons. An isolated pointer/DOM probe with the hunks applied to main dismissed the original span-based toast but did not dismiss the new button-based toast for the same swipe starting on its description. The notification-list adjustment does not fix the toast root. Please preserve keyboard activation while allowing this description to participate in swipe dismissal, and cover a swipe starting on the description. No real touchscreen/browser check was run.

Please also replace SettingsConfig.toggles.test.mjs's source-regex assertions with a render/interaction check. A mutation putting the expected disabled expression in a comment while leaving the toggle enabled still passed that test. The current render harness can exercise two rapid clicks and the number of PUTs.

When rebasing, drop the Space-on-notification-row hunk already landed via #305, retain the child-control coverage, and preserve main's remote-host MCP guard. The key={cwd} remount already isolates the editor in its production caller; avoid redundant workspace-change tracking. No CI or full suite was run locally.

nanogram added a commit to nanogram/ompweb that referenced this pull request Nov 8, 2026
Port the selected upstream changes onto main 51d3c19 while retaining its
Bun server, shared host ownership, durable outbox, and default transcript.
Correct integration and Windows compatibility defects exposed by runtime
verification; do not import failing-check PRs or deferred folder uploads.

Reviewed source heads:
ompweb-dev#296 7df8767
ompweb-dev#296
ompweb-dev#297 20af76d
ompweb-dev#297
ompweb-dev#298 cdae97a
ompweb-dev#298
ompweb-dev#303 588ffbd
ompweb-dev#303
ompweb-dev#309 ec97f9e
ompweb-dev#309
ompweb-dev#320 7bf8948
ompweb-dev#320
ompweb-dev#321 550d302
ompweb-dev#321
ompweb-dev#334 46dabb4
ompweb-dev#334
ompweb-dev#335 8edc916
ompweb-dev#335
ompweb-dev#338 72fc0a3
ompweb-dev#338
ompweb-dev#340 ea67136
ompweb-dev#340
ompweb-dev#343 645044d
ompweb-dev#343
ompweb-dev#349 ed5e053
ompweb-dev#349
ompweb-dev#374 38f93f3
ompweb-dev#374
ompweb-dev#407 20600a7
ompweb-dev#407
ompweb-dev#410 3c210ff
ompweb-dev#410
ompweb-dev#411 a99f8bb
ompweb-dev#411
ompweb-dev#414 34a33d7
ompweb-dev#414
ompweb-dev#416 55b7ef8
ompweb-dev#416
ompweb-dev#419 d89aa5a
ompweb-dev#419

Co-authored-by: kahme247 <61059522+kahme247@users.noreply.github.com>
Co-authored-by: Tanger <49036591+GTanger@users.noreply.github.com>
Co-authored-by: lutfi-zain <147457356+lutfi-zain@users.noreply.github.com>
Co-authored-by: OrwellVII <56531592+OrwellVII@users.noreply.github.com>
Co-authored-by: pengshuai <pengshuai4@lenovo.com>
Co-authored-by: todouu <pslzj@outlook.com>
Co-authored-by: tianzishen <tianzishen@local>
Co-authored-by: killcerr <kill_cerr@outlook.com>
Co-authored-by: tianzishen <tianzishen@sensetime.com>
Co-authored-by: RoyaLemonade <37620553+RoyaLemonade@users.noreply.github.com>
@andrebrait

Copy link
Copy Markdown
Collaborator

Hi @kahme247, thank you for your contribution, and apologies for the long wait on this PR. We really appreciate the time and effort you have put into it.

We are working through a major refactor of ompweb, including switching to our own build of omp. We are close to finishing that work; once the refactor is complete, we will turn our attention back to the pending PRs, including this one.

Thank you for your patience and for helping improve ompweb!

@kahme247

Copy link
Copy Markdown
Collaborator Author

Hi, thanks for this PR. It currently conflicts with main and can't be merged as-is — please rebase it onto current main and resolve the conflicts. Once it's rebased I'll re-run the checks.

Beyond the rebase: the swipe-dismiss regression from the button-based toast description needs fixing, the source-regex toggle test should become an interaction test, and the hunk already landed via #305 should be dropped.

@kahme247

Copy link
Copy Markdown
Collaborator Author

Closing this as superseded by maintainer rework #562, which keeps the MCP workspace-leak fix, the toggle saving-guards, the localized toast dismiss label and the keyboard-operable clamped descriptions — with the swipe-dismiss regression fixed by keeping the description a <span> (base-ui ignores swipes starting on buttons) instead of converting it to a <button> — and drops the hunk already landed via #305. The toggle test is now a real interaction test.

@kahme247 kahme247 closed this Nov 23, 2026
1zun4 pushed a commit to 1zun4/ompweb that referenced this pull request Nov 23, 2026
1zun4 pushed a commit to 1zun4/ompweb that referenced this pull request Nov 23, 2026
…11-23

fix(uiux): round-1 bug-hunt fixes with swipe-dismiss preserved (rework of ompweb-dev#298)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Rebase onto current main; needs re-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants