Skip to content

Show errors when custom command .toml files have syntax errors #7537

@mblsha

Description

@mblsha

What happened?

  1. Create malformed .toml with custom command (I was able to reproduce with """' as the last line, where as """ works fine):
> cat ~/.gemini/commands/investigate.toml
description = "Asks the model to investigate a bug in relation to this project."

prompt = """
Analyze the project directory. Take note of important files, details, etc and summarize it into tmp/PROJECT.md.
"""'
  1. Call gemini command
  2. gemini starts, custom /investigate command doesn't appear, there's no visibility that the ~/.gemini/commands/investigate.toml has a syntax error

What did you expect to happen?

I want to see a red error saying that the ~/.gemini/commands/investigate.toml has a syntax error, and the line with the error.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ About Gemini CLI                                                                         │
│                                                                                          │
│ CLI Version                    0.2.2-git.39e7213f                                        │
│ Git Commit                     39e7213f                                                  │
│ Model                          gemini-2.5-pro                                 │
│ Sandbox                        no sandbox                                                │
│ OS                             linux                                                     │
│ Auth Method                    gemini-api-key                                            │

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/uxImproves the CLI's usability, performance, interactive features, and documentation.kind/bugSomething isn't workingpriority/p2Important but can be addressed in a future release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions