Skip to content

Use --force in /mob-remove for non-current mobs#33

Merged
blipinsk merged 1 commit into
mainfrom
fix/mob-remove-non-interactive
Apr 7, 2026
Merged

Use --force in /mob-remove for non-current mobs#33
blipinsk merged 1 commit into
mainfrom
fix/mob-remove-non-interactive

Conversation

@blipinsk

@blipinsk blipinsk commented Apr 7, 2026

Copy link
Copy Markdown
Member

Summary

  • /mob-remove slash command now warns the user about destructive consequences (unstaged/uncommitted/unpushed changes will be lost) when removing a non-current mob
  • Uses codemob remove --force <name> to bypass the interactive y/N prompt that agents can't handle cleanly
  • The --force flag already existed in the CLI - the slash command just wasn't using it

Closes #32

Test plan

  • All 72 existing tests pass
  • Run /mob-remove, pick a non-current mob, verify the agent warns about data loss before proceeding
  • Confirm the agent uses --force and doesn't get stuck on the interactive prompt

The slash command was calling `codemob remove <name>` which triggers
an interactive y/N confirmation prompt that agents can't handle
cleanly. Now the slash command gets confirmation from the user first,
warns about destructive consequences (unstaged/uncommitted/unpushed
changes), then calls `codemob remove --force <name>` to skip the
redundant CLI prompt.

Closes #32
@blipinsk blipinsk merged commit 87771b9 into main Apr 7, 2026
1 check passed
@blipinsk blipinsk deleted the fix/mob-remove-non-interactive branch April 7, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/mob-remove needs a non-interactive mode

1 participant