fix(board): clarify dirty-worktree removal prompt with explicit consequences#3520
Merged
Merged
Conversation
melmennaoui
approved these changes
Jul 8, 2026
docker-agent
reviewed
Jul 8, 2026
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
Clean, focused prompt reformatting. The switch from Println to Print for the question line is correct — the trailing space keeps the cursor inline for the ReadLine call, consistent with other interactive prompts in the CLI. The two new indented option lines make the consequences of each choice unambiguous. No behavioural change, no bugs introduced.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a card's worktree has uncommitted changes or unpushed commits and the user
tries to close the card, docker-agent asks whether to delete it. The old prompt
crammed the question and the explanation into a single line, making it unclear
what "y" and "N" would actually do. Users had to parse a single run-on sentence
to understand that "y" meant permanent deletion.
The prompt now prints the two options on separate indented lines before asking
the question, so the consequences of each choice are unambiguous at a glance.
The question itself is moved to the last line using
Printinstead ofPrintln, which leaves the cursor right after the(y/N)marker — consistentwith how every other interactive prompt in the CLI behaves.
No behavioural change; the logic that reads and acts on the response is
untouched.