FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: recover from oversized JSON-RPC frames by PsiACE · Pull Request #111 · agentclientprotocol/python-sdk · GitHub

fix: recover from oversized JSON-RPC frames - #111

Merged
PsiACE merged 2 commits into
mainfrom
fix/recover-oversized-frames
Jun 29, 2026
Merged

fix: recover from oversized JSON-RPC frames#111
PsiACE merged 2 commits into
mainfrom
fix/recover-oversized-frames

Conversation

PsiACE commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Related issues

Close #62

Testing

Docs & screenshots

Checklist

  • Conventional Commit title (e.g. feat:, fix:).
  • Tests cover the change or are not required (explain above).
  • Docs/examples updated when behaviour is user-facing.
  • Schema regenerations (make gen-all) are called out if applicable.

Comment thread src/acp/connection.py Outdated
consumed = 1
if consumed > 0:
try:
await self._wait_for_reader(self._reader.readexactly(consumed))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should we handle TimeoutError?

Comment thread src/acp/connection.py Outdated
except asyncio.IncompleteReadError as exc:
return exc.partial
except asyncio.LimitOverrunError as exc:
await self._discard_oversized_line(exc.consumed)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Instead of dropping the line and emit a warning, how about we read maximum limit bytes and concatenate the result manually?

PsiACE marked this pull request as ready for review June 25, 2026 08:50

1napz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🔨🔨🔨

PsiACE merged commit 6bcf11a into main Jun 29, 2026
16 checks passed
PsiACE deleted the fix/recover-oversized-frames branch June 29, 2026 17:23
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: LimitOverrunError in _receive_loop() crashes connection without recovery

3 participants


Back | FazBrowse Home | New Git URL