Skip to content

Small improvements#2

Open
newme616 wants to merge 3 commits intobadlogic:mainfrom
newme616:main
Open

Small improvements#2
newme616 wants to merge 3 commits intobadlogic:mainfrom
newme616:main

Conversation

@newme616
Copy link
Copy Markdown

@newme616 newme616 commented Mar 19, 2026

  • Remove redundant .padEnd() after truncateToWidth(..., true) which
    already pads to the target visual width
  • Move waitingUI above try block so the catch path can properly dismiss
    and await the TUI overlay before showing the error notification
  • Guard empty feedback: skip editor insertion when there are no comments
    or overall notes
  • Change feedback prompt: From my experience, this should prime the model better, as it understands that the feedback is from a code review, and we can save tokens without the "please".

PS: AI slop with manual review ;)

…ments

- Remove redundant .padEnd() after truncateToWidth(..., true) which
  already pads to the target visual width
- Move waitingUI above try block so the catch path can properly dismiss
  and await the TUI overlay before showing the error notification
- Guard empty feedback: skip editor insertion when there are no comments
  or overall notes, show 'No feedback to insert' instead
- Change review prompt from 'Please address the following feedback' to
  'Address the following code review feedback:' — primes the model
  better by signaling this is code review context, and saves tokens
  by dropping the unnecessary 'please'
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.

1 participant