Skip to content

Remove stale '--force' message from interactive clean preview#710

Draft
cursor[bot] wants to merge 2 commits intomainfrom
cursor/clean-force-message-99a7
Draft

Remove stale '--force' message from interactive clean preview#710
cursor[bot] wants to merge 2 commits intomainfrom
cursor/clean-force-message-99a7

Conversation

@cursor
Copy link

@cursor cursor bot commented Mar 16, 2026

Summary

Removes the stale "Run with --force to delete these items." message that was shown in the non-force interactive flow right before the confirmation prompt.

Problem

When the default entire clean mode was changed from a pure dry-run to an interactive confirmation flow, the old guidance message wasn't updated. This resulted in contradictory output:

Found 2 items to clean:
  ...
Run with --force to delete these items.
? Delete these items? [Yes, delete / Cancel]

The user doesn't need --force because the prompt already lets them confirm deletion.

Fix

  • Removed the stale fmt.Fprintln(w, "Run with --force to delete these items.") from runCleanWithItems
  • Updated the test in TestRunClean_PreviewMode to verify the message is no longer present
Open in Web Open in Cursor 

peyton-alt and others added 2 commits March 16, 2026 16:25
The non-force mode now uses an interactive confirmation prompt instead of
being a pure dry-run. The old 'Run with --force to delete these items.'
message was contradictory when shown right before the confirmation dialog.

Remove the stale message and update the test to verify it's no longer present.
@cursor cursor bot mentioned this pull request Mar 16, 2026
4 tasks
@peyton-alt peyton-alt force-pushed the cli-output-consistency branch from c8b64a4 to 54d30a4 Compare March 17, 2026 03:47
@peyton-alt peyton-alt force-pushed the cli-output-consistency branch from 7286eb3 to 43aed19 Compare March 17, 2026 18:41
Base automatically changed from cli-output-consistency to main March 18, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants