Skip to content

fix: bufio scanner token too long#6613

Merged
sfwn merged 3 commits intoerda-project:masterfrom
CeerDecy:fix/bufio-scanner
Oct 14, 2025
Merged

fix: bufio scanner token too long#6613
sfwn merged 3 commits intoerda-project:masterfrom
CeerDecy:fix/bufio-scanner

Conversation

@CeerDecy
Copy link
Copy Markdown
Member

What this PR does / why we need it:

fix bufio scanner token too long

the ocr mcp server returns too long in one line

Which issue(s) this PR fixes:

  • Fixes #your-issue_number
  • [Erda Cloud Issue Link](paste your link here)

Specified Reviewers:

/assign @sfwn

ChangeLog

Language Changelog
🇺🇸 English fix bufio scanner token too long
🇨🇳 中文 修复scanner max token size太小导致ocr mcp卡住

Need cherry-pick to release versions?

Add comment like /cherry-pick release/1.0 when this PR is merged.

For details on the cherry pick process, see the cherry pick requests section under CONTRIBUTING.md.

@erda-bot erda-bot requested a review from sfwn October 14, 2025 09:24
@sfwn
Copy link
Copy Markdown
Member

sfwn commented Oct 14, 2025

/approve

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.24%. Comparing base (6068b45) to head (ddadb34).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...rnal/apps/ai-proxy/providers/mcp-proxy/provider.go 0.00% 4 Missing ⚠️
...s/request/set-resp-body-chunk-splitter/splitter.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6613      +/-   ##
==========================================
+ Coverage   14.19%   14.24%   +0.05%     
==========================================
  Files        3849     3862      +13     
  Lines      385412   386300     +888     
==========================================
+ Hits        54699    55043     +344     
- Misses     325393   325905     +512     
- Partials     5320     5352      +32     
Flag Coverage Δ
by-github-actions 14.24% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...s/request/set-resp-body-chunk-splitter/splitter.go 0.00% <0.00%> (ø)
...rnal/apps/ai-proxy/providers/mcp-proxy/provider.go 0.00% <0.00%> (ø)

... and 24 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sfwn sfwn merged commit f1b4c6e into erda-project:master Oct 14, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants