Repository navigation
skills(writing-user-outputs): fold a second suggestion into the existing hint - #4725
Conversation
worktrunk-bot
left a comment
There was a problem hiding this comment.
"At most one hint line" is broader than what the code does. Two existing messages print two hints, and both look intended. GitError::WorktreeRemovalFailed can emit a Remaining in directory: … hint and then the A background process may be writing files; try wt remove … hint. GitError::WorktreeCreationFailed emits the Failed command, …: hint, which the skill's own Hint vs Info table lists as a hint, and then the leftover-branch hint. So the PR body's claim that the edit matches the code doesn't hold. A session following the rule literally would merge or drop those context hints. The gap from #4705 was a second suggestion, so scoping the rule to suggestions closes it without contradicting the code. I'll push this wording and correct the description.
Context hints such as "Remaining in directory" and "Failed command" already stand beside a suggestion hint in WorktreeRemovalFailed and WorktreeCreationFailed; the rule targets stacked suggestions.
writing-user-outputsexplained how to join two suggestions into one hint, but never said to join them instead of stacking a second hint line. This edit states that rule. Without it, a session that loaded the skill still wrote a secondhint_messageline on #4705, and only maintainer review caught it, since no test or lint checks how many hint lines a message has. With the rule, a second suggestion goes into the existing hint with a semicolon, most commonly needed command last.The rule covers suggestions only. Context hints already sit beside a suggestion hint in
GitError::WorktreeRemovalFailed("Remaining in directory") andGitError::WorktreeCreationFailed("Failed command"), and those stay as they are.Evidence
writing-user-outputsbefore writing the change.