Skip to content

fix: keep confirmations at their action origin and route Claw questions - #3789

Merged
bobleer merged 3 commits into
openBitFun:mainfrom
bobleer:bob/confirm-interactions
Nov 7, 2026
Merged

bobleer merged 3 commits into
openBitFun:mainfrom
bobleer:bob/confirm-interactions

Conversation

@bobleer

@bobleer bobleer commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Destructive actions could move confirmation far away from the clicked control, replace desktop-card content, or open a second modal over a detail view. Confirmations now stay in the menu row or beside the explicit trigger, while bulk deletion, overwrites, resets and permission decisions retain their explanatory modal.

  • Add shared anchored confirmation and inline menu confirmation, with viewport clamping, overlay ownership, Cancel-first focus, Escape/Tab handling and duplicate-submit guards.
  • Apply the interaction across sessions, desktop cards, tasks, model/service settings, skills, MiniApps, pages, files and project resources. Keep detail content mounted while confirming, and open newly created blank assistants directly in configuration.
  • Add direct session deletion to local and device catalog menus, including followed-source and archived-session handling. Discard confirmation when the device or target session changes.
  • Keep desktop-card refresh in its header, and retain card content while confirming deletion.
  • Give AskUserQuestion to the Claw coordinator instead of the ComputerUse subagent. This is a separate commit with default-tool assertions.

Type and Areas

Type: bug fix / UI/UX / test / docs

Areas: shared design system, Web UI, Agent definitions.

Motivation / Impact

Single-item decisions stay next to their action and preserve the surrounding context. Cancellation restores focus, async transfer checks retain their original trigger, and a stale confirmation cannot authorize deletion on another device or session. All 101 originally changed/untracked files are included. A follow-up review also preserves in-flight action locks across menu dismissal/reopening and prevents late completions from closing a newer menu.

Verification

  • pnpm run check:web — passed, including type checking and Appearance/theme governance.
  • pnpm run i18n:audit — passed without warnings.
  • pnpm run fmt:rs — formatted the two changed Rust files.
  • cargo test -p openbitfun-core --no-default-features --features agent-runtime,git,tools-browser-web,tools-computer-use --lib agentic::agents:: — 111 passed.
  • node --test design-system/packages/ui/tests/confirm-dialog.test.mjs design-system/packages/ui/tests/dialog.test.mjs design-system/packages/ui/tests/menu.test.mjs design-system/packages/ui/tests/overlay-kernel.test.mjs design-system/packages/ui/tests/registry.test.mjs — 27 passed.
  • Focused Web UI regressions passed for overlay ownership/focus, confirmation service, menu keyboard interaction, desktop-card content retention, session/device deletion, MiniApp transfer/navigation, assistant creation, settings, pages, project directories and context clearing.
  • Changed Web UI production files pass ESLint with no errors; existing refresh warnings remain.
  • pnpm --dir src/web-ui exec node scripts/run-vitest.mjs run src/shared/ui/ConfirmationInteraction.test.tsx src/shared/ui/MenuPopover.test.tsx src/app/components/DesktopCard/DesktopCardWindow.test.tsx — 29 passed after the async-reopen follow-up.
  • git diff --check — passed.
  • pnpm run design-system:check — package build and 352 UI tests passed; the broader flow-chat catalog suite has two pre-existing mismatches for GenerativeUI and GenOfficeFile. The involved registry, production adapter and backend materialization files match the base revision and are not changed here.

Reviewer Notes

AI-assisted; focused automated testing completed. Native visual fidelity has not been manually verified; no mock/browser screenshots are presented as visual proof. Manual checks: delete a desktop card from its menu; cancel a settings-row deletion; confirm a MiniApp presentation transfer near a viewport edge; retarget a session menu before confirming deletion.

Remote coverage is limited to simulated SSH restrictions and Peer surface changes. Live Remote Workspace, Remote Control, Peer Device and Detached Dispatch were not exercised. Existing API and persisted payloads are unchanged; anchors remain local UI state and are not sent to hosts.

Checklist

  • This PR includes the full requested changes and no secrets, temporary prompts, generated scratch files or build artifacts.
  • Relevant verification and its limitations are recorded above.
  • User-facing strings, docs and locales are updated where applicable.

@bobleer
bobleer merged commit eed39e6 into openBitFun:main Nov 7, 2026
13 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.

1 participant