Skip to content

agent_ui: Mask API key input in Add LLM provider modal#50379

Merged
danilo-leal merged 6 commits intozed-industries:mainfrom
cppcoffee:agent_ui_key_masked
Mar 13, 2026
Merged

agent_ui: Mask API key input in Add LLM provider modal#50379
danilo-leal merged 6 commits intozed-industries:mainfrom
cppcoffee:agent_ui_key_masked

Conversation

@cppcoffee
Copy link
Copy Markdown
Contributor

Release Notes:

  • Added Mask API key input in Add LLM provider modal
截屏2026-02-28 17 35 22

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 28, 2026
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Feb 28, 2026
Copy link
Copy Markdown
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the PR! I don't think we should mask this by default, though. If we did that, how could you double check whether the API key is correct, like, free from typos or any other mistake? I think the pattern we'd like to follow here, if anything, is having the typical input "eye" icon button that allows you to toggle the mask on and off.

@cppcoffee
Copy link
Copy Markdown
Contributor Author

Hi @danilo-leal , The eye icon button added.

2026-03-04.20.56.50.mov

@danilo-leal danilo-leal self-assigned this Mar 13, 2026
Copy link
Copy Markdown
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much! Pushed a change here embedding the hide/show icon button directly in the input field. It would be great later on to add the ability to toggle it with the keyboard somehow!

@danilo-leal danilo-leal merged commit 2b39fba into zed-industries:main Mar 13, 2026
29 checks passed
tommyming pushed a commit to tommyming/zed that referenced this pull request Mar 15, 2026
…s#50379)

Release Notes:

- Added Mask API key input in Add LLM provider modal


<img width="427" height="430" alt="截屏2026-02-28 17 35 22"
src="https://github.com/user-attachments/assets/ae628815-f7df-4ea0-90ea-a23bbd703521"
/>

---------

Signed-off-by: Xiaobo Liu <[email protected]>
Co-authored-by: Danilo Leal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants