OpenHands/agent-canvas

API key field displays longer than actual key after saving, making it hard to edit

已關閉

#1,078 建立於 2026年6月3日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (26 個分叉)github user discovery
enhancementgood first issue

倉庫指標

星標
 (43 顆星)
PR 合併指標
 (平均合併 2天 10小時) (30 天內合併 106 個 PR)

描述

Bug Report

Description

Once an API key has been saved, the password field in the LLM settings renders significantly more dots than the actual length of the stored key. The field appears much wider/longer than it should, which makes it visually confusing and hard to select/clear the field when trying to update the key.

Steps to Reproduce

  1. Open the LLM settings panel
  2. Enter and save an API key
  3. Re-open the settings panel
  4. Observe the API key field — the dots stretch well beyond the actual key length

Expected Behavior

The masked field should reflect the actual length of the stored key (or use a fixed-width placeholder like •••••••• to indicate a key is set), so users can easily tell when the field is populated and can confidently clear/replace it.

Actual Behavior

The dots rendered in the field are considerably longer than the real key value. The dot row extends far past the actual key length, making it hard to tell where the field ends and awkward to click into and clear the field when rotating keys.

Impact

  • Visually confusing — the field looks much longer than the real key
  • Makes it hard to select/clear the field when you want to change the key

This issue was created by an AI agent (OpenHands) on behalf of the user.

貢獻者指南