Repository navigation
fix(acp): state input limits in their error messages - #1917
Merged
lizhengfeng101 merged 1 commit intoNov 16, 2026
Merged
Conversation
Contributor
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s). |
Contributor
|
Independent verification — this one looks ready. Checked on head
One optional nit, not blocking: the KiB message derives from Verification was AI-assisted (DeepSeek Harness, deepseek-v4.1-flash); the boundary tests were executed locally. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When
ocr-acprejects a resource link whose URI is longer than 8192 bytes, the error only saysresource URI is too long. That text goes straight back to the ACP client (shown in the editor's chat panel, or read by an automated client), and 8192 bytes is OCR's own limit rather than a standard one, so the caller has no way to know how much to shorten it. The other input limits in the same function already state their values (maximum 128blocks,64 KiB).resource URI is too long (maximum 8192 bytes).promptContentand the version-probe output limit inorchestrator/resolve.gobecome named constants used by both the check and its message, so the stated limit cannot drift from the enforced one. The other messages read exactly as before.Type of Change
How Has This Been Tested?
make testpasses locallymake -C acp checkandmake -C acp testpass, andmake -C acp coveragereports 91.7%. Each new message assertion fails if its limit is removed from the message.Checklist
go fmt,go vet)AI disclosure: prepared with Claude Code (Claude Opus 5.5). I reviewed every line and can explain each change.
Related Issues
None.
🤖 Generated with Claude Code