fix(app): agent selector CSS capitalize mislabels custom agent identifiers · Issue #30372 · anomalyco/opencode · GitHub
Skip to content

fix(app): agent selector CSS capitalize mislabels custom agent identifiers #30372

Closed as not planned

Description

@XJPeng12

Description

Description

Custom agent names are identifiers loaded from .opencode/agent/*.md (for example smart-db, my-agent).

The legacy prompt agent selector in packages/app/src/components/prompt-input.tsx applies Tailwind's capitalize class to the selected agent label. CSS text-transform: capitalize uppercases the first letter of each word, so identifiers are shown incorrectly:

  • smart-db → Smart-Db
  • my-agent → My-Agent

Agent names should be displayed exactly as defined in config/files, since users reference them by exact identifier.

Expected behavior

The agent selector shows the raw agent identifier (e.g. smart-db).

Actual behavior

The agent selector transforms the label via CSS capitalize (e.g. Smart-Db).

Reproduction

  1. Add a custom agent file such as .opencode/agent/smart-db.md
  2. Open the app prompt input
  3. Select the custom agent in the agent dropdown
  4. Observe the label is capitalized incorrectly

Proposed fix

Remove the capitalize class from the legacy prompt agent Select only. Model variant selector can keep capitalize since variant names are display labels, not identifiers.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

win10

Terminal

No response

Activity

  1. github-actions commented on Aug 2, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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