Skip to content

WorktreeDirty error contains CLI-specific advice #85

@wollax

Description

@wollax

Problem

WorktreeDirty error message says "use --force to override" which is CLI-specific advice. When this error surfaces through MCP (where force defaults to true), the message is confusing and irrelevant.

Solution

Solution

Make the domain error message context-neutral (e.g., "worktree {spec_slug} has uncommitted changes") and let the CLI layer append the --force hint when displaying the error.


Created via Kata PR review backlog

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogKata backlog issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions