Skip to content

The underscore character is not being rendered in the MCP environment variable input field #145

Description

@codepinto

Describe the bug

The underscore character (_) is not being rendered in the environment variable input field. When an underscore is typed or pasted into the field, it incorrectly appears as a space. This prevents the correct setting of environment variables that require an underscore, such as ANDROID_HOME.

Configuration

  • OS: Microsoft Windows 11 Home (Version 10.0.26100 Build 26100) using Ubuntu in WSL

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to the section for adding or editing environment variables.
  2. In the variable name or value input field, attempt to type the underscore character (_).
  3. Alternatively, copy an underscore character from another source and paste it into the input field.
  4. Observe that the underscore character is displayed as a space instead of _.

Expected behavior

The underscore character (_) should be correctly displayed in the input field when typed or pasted. This would allow for the proper definition of environment variables that conventionally use underscores, like ANDROID_HOME.

Screenshots

The screenshot below demonstrates the issue where ANDROID_HOME is incorrectly displayed as ANDROID HOME because the underscore character fails to render.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions