Skip to content

Trying to stage a reviewer profile with the same name as a prior reviewer profile crashes #389

Description

@rianjs

This happens, and the program crashes:

% cr init
profile already exists: claude-rianjs-bot

We should see a validation error, similar to the ones we get when we're configuring a github path in the profile (red text, (already exists)) or something when there's a naming clash.

Staging should be unavailable in this case, because it would be wrong.

The program shouldn't crash, it should simply not let us stage the change. If someone tries to work around this via non-interactive/scripted means should also error out in a reasonable way. (In theory the interactive/non-interactive "save profile" code paths are shared, so solving for one solves for the other.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions