Blog·Note·

Copy the text you can see

A setup snippet and its Copy button should agree on what goes into the clipboard.

A masked key made its way into the clipboard from the AI setup page. The configuration looked like something you could copy and use, but the text it copied couldn't authenticate a request.

That is a small UI mistake with a much larger debugging bill. You paste the configuration, the connection fails, and now you're looking at the API or the client instead of the button that gave you the wrong text.

I changed the setup snippets to show the actual configuration with the key filled in. The text in the code block and the text sent to the clipboard come from the same string. If you select it yourself instead of pressing Copy, you get the same thing.

This applies to the key-based configuration on AI setup. The browser sign-in connections have their own setup flow. When you do need a configuration to paste into a local tool or a headless environment, it should be complete.

A key in that snippet is a real credential, so treat the pasted configuration accordingly. But a Copy button's job is straightforward: put the thing you're looking at into the clipboard. It shouldn't leave you to discover that one part was only a display placeholder.