mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 12:55:19 +00:00
When search results exceed maxTokens limit, now returns partial truncated content instead of discarding the file completely. Changes: - Calculate remaining token budget before breaking - Truncate file content to fit within remaining tokens (if > 100 tokens left) - Append truncation marker to indicate content was cut off - Still add truncation message at end of all results Benefits: - Users get partial data instead of nothing - Better debugging and analysis experience - More useful for AI-powered code analysis tasks - Consistent with expected behavior when limits are reached Example: If file would use 10K tokens but only 2K remain, return first ~8K chars of content + truncation marker instead of dropping it. Signed-off-by: Wayne Sun <gsun@redhat.com>
1.5 KiB
1.5 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
Fixed
- Fixed issue where search results exceeding token limits would be completely discarded instead of returning truncated content. #604
[1.0.7] - 2025-10-28
- Updated API client to match the latest Sourcebot release. #555
[1.0.6] - 2025-09-26
- Fix
linkedConnections is requiredschema error.
[1.0.5] - 2025-09-15
Changed
- Updated API client to match the latest Sourcebot release. #356
[1.0.4] - 2025-08-04
Fixed
- Fixed issue where console logs were resulting in "unexpected token" errors on the MCP client. #429
[1.0.3] - 2025-06-18
Changed
- Updated API client to match the latest Sourcebot release. #356
[1.0.2] - 2025-05-28
Changed
- Added API key support. #311
[1.0.1] - 2025-05-15
Changed
- Updated API client to match the latest Sourcebot release. #307
[1.0.0] - 2025-05-07
Added
- Initial release