-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Pre-requisities
- I am using the newest version of the platform
Describe the bug
The copy button next to the kagenti-adk model setup command on the "no model selected" error page does not copy the command to the clipboard. Clicking the button appears to do nothing — the text is not available for pasting afterward.
The root cause is likely that navigator.clipboard.writeText() in CopyButton is called without awaiting the returned Promise and without error handling, so failures are silently swallowed. The Clipboard API also requires a secure context (HTTPS or localhost), which may not be available in all deployment scenarios.
To Reproduce
- Launch the UI without a model configured
- Observe the "no model selected" error page with the
kagenti-adk model setupsnippet - Click the copy button next to the command
- Try to paste — nothing was copied
Expected behavior
Clicking the copy button should copy the command text to the clipboard, or show an error/fallback if clipboard access is unavailable.
Logs / Screenshots / Code snippets
Relevant components:
apps/adk-ui/src/components/CopyButton/CopyButton.tsxapps/adk-ui/src/components/CopySnippet/CopySnippet.tsxapps/adk-ui/src/modules/runs/components/NoModelSelectedErrorPage.tsx