OpenHands/agent-canvas

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

クローズ

#1,078 opened on 2026/06/03

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (26 件のフォーク)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (43 個のスター)
PR merge metrics
 (平均マージ 2d 10h) (30d で 106 merged PRs)

説明

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.

コントリビューターガイド