Skip to content

Conversation

hashemix
Copy link
Member

📌 Summary

This PR fixes a bug in search files content tool that was causing a panic where attempting to slice a multi-byte UTF string at a byte index that is not a valid UTF-8 character boundary.

🔍 Related Issues

✨ Changes Made

  • Updated extract_snippet() function to properly handle strings with multi-byte utf characters

🛠️ Testing Steps

cargo make test

💡 Additional Notes

project dependencies also updated

@hashemix hashemix changed the title fix : issue-37 panic in search files content fix : issue-37 panic in search files content tool Aug 30, 2025
@hashemix hashemix changed the title fix : issue-37 panic in search files content tool fix: issue-37 panic in search files content tool Aug 30, 2025
@hashemix hashemix merged commit 1f7b985 into main Aug 30, 2025
11 of 13 checks passed
@hashemix hashemix mentioned this pull request Aug 30, 2025
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