Agent popover: make the MCP command a zero-edit paste#357
Merged
Conversation
The MCP install line was a clipped readonly <input> hiding a your-key placeholder mid-string — the ask (copy, then hunt inside the command for the part to edit) was incomprehensible at a glance. Now the command renders in a wrapping <code> block, fully visible, with the one variable part highlighted. Signed in, the user's NanoGPT key (already in localStorage — BYOK) is baked into the copy: masked on screen so screen-shares don't leak it, real in the clipboard, zero edits in the terminal. Signed out, the your-key placeholder stays highlighted with a hint naming the exact swap. Toasts say which of the two you got. New strings translated in all 5 locales. Verified headlessly (CDP, both auth states, clipboard contents asserted). Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
nanoodle | 8ed8a98 | Commit Preview URL Branch Preview URL |
Jul 20 2026, 01:39 AM |
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.
What
The MCP install command in the 🤖 "Use in your agent" popover was a clipped readonly
<input>— theyour-keyplaceholder the user had to edit was hidden mid-string behind the cutoff. The ask ("copy this, then find and edit an invisible part of it") was incomprehensible.Now
sk-n…7890) so screen-shares don't leak it; the real key goes to the clipboard. Paste into the terminal and you're done — zero edits.<code>block, fully visible, withyour-keyhighlighted and a one-line hint naming the exact swap (or: sign in first and it fills itself).The key never leaves the browser except onto the user's own clipboard — no change to the no-server promise.
Verified
Headless Edge over raw CDP, both auth states: full command visible & unclipped, mark contents, hint swap, clipboard contents asserted (placeholder vs real key), toast text. 11/11 checks green; full pre-commit suite green.
🤖 Generated with Claude Code