Repository navigation
Conversation
Copy ID and Copy branch in the Agents chat menu now show a success toast when the copy succeeds. useClipboard's copyToClipboard resolves a boolean so callers can tell success from failure; failures keep the existing error toast and never show the success toast.
jakehwll
approved these changes
Oct 28, 2026
jakehwll
enabled auto-merge (squash)
October 28, 2026 06:08
jakehwll
deleted the
superblink/des-22232-show-success-toasts-after-copy-id-and-copy-branch
branch
October 28, 2026 06:09
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The Agents chat menu's Copy ID and Copy branch actions copied silently. They now show a success toast, but only when the copy actually succeeds. A failed copy still shows just the existing error toast.
Changes
useClipboard:copyToClipboardnow resolvestrueon success andfalseon failure (afteronErrorruns). No existing callers depended on the oldvoidreturn.ChatActionsMenuItems: both copy items await the result and calltoast.successon success. Covers the dropdown and right-click menus.useClipboardasserts the return value; theChatsSidebarandProjectChatsListcopy tests assert the success message; a newChatsSidebartest asserts a failed copy shows only the error toast.Verification
pnpm exec vitest run --project=uniton the three touched test files (126 passed)pnpm run lint:types,pnpm run check,pnpm run lint:oxlint: cleanFixes DES-22232