Repository navigation
fix: keep confirmations at their action origin and route Claw questions - #3789
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
AskUserQuestionto 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.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 forGenerativeUIandGenOfficeFile. 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