Skip to content

Conversation

@hughdbrown
Copy link
Contributor

Add an option that so that, before applying a fix, there is a list of the available fixes.

hughdbrown and others added 3 commits February 3, 2026 09:38
- Make truncateString operate on Unicode runes instead of bytes to
  avoid cutting multi-byte characters (emoji, non-ASCII text)
- Add input validation for maxLen <= 0
- Fix os.Getwd() error handling in tests (was ignoring errors)
- Remove duplicate JSON response branch in test mock handler
- Add comprehensive test cases for truncateString edge cases
  including Unicode characters and zero/negative maxLen

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Check os.Chdir return errors in TestRunFixList subtests for
  consistency with the existing os.Getwd error handling
- Clarify Unicode truncation test comment to explain that maxLen=5
  results in 2 chars + "..." = 5 runes output

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hughdbrown
Copy link
Contributor Author

I don't get this:

1 workflow awaiting approval
This workflow requires approval from a maintainer.

Is there something here I have to fix? Why is it not green?

@wesm
Copy link
Collaborator

wesm commented Feb 4, 2026

Is there something here I have to fix? Why is it not green?

I have to approve github actions runs from first-time contributors (I am going to tweak the settings, but I believe your PRs will run automatically afterward)

@wesm
Copy link
Collaborator

wesm commented Feb 4, 2026

image

firstLine was using byte-length checks and byte slicing which can
split multi-byte UTF-8 characters. Reuse truncateString which already
handles this correctly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@wesm wesm merged commit ae473cd into roborev-dev:main Feb 4, 2026
7 checks passed
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.

2 participants