mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 15:15:57 +03:00
[PR #1] [MERGED] Upgrade to claude-agent-sdk and add max_buffer_size support #78
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/1
Author: @odinho
Created: 11/25/2025
Status: ✅ Merged
Merged: 12/13/2025
Merged by: @mikeyobrien
Base:
main← Head:odin/fix_json_mini_size📝 Commits (2)
9752e26Upgrade to claude-agent-sdk and add max_buffer_size support17dcd05Add user settings inheritance for MCP servers and CLAUDE.md📊 Changes
3 files changed (+77 additions, -16 deletions)
View changed files
📝
pyproject.toml(+1 -1)📝
src/ralph_orchestrator/adapters/claude.py(+58 -9)📝
uv.lock(+18 -6)📄 Description
Summary
claude-code-sdktoclaude-agent-sdk>=0.1.10(package was renamed upstream)max_buffer_size(default 10MB) to handle large JSON responses from MCP tools like chrome-devtools-mcp screenshotsclaude_code_sdkimportProblem
When using MCP tools that return large payloads (like screenshots from chrome-devtools-mcp), the SDK threw:
The new
claude-agent-sdkno longer reads filesystem settings by default (breaking change from the oldclaude-code-sdk). Without this fix, users would lose access to their configured MCP servers and CLAUDE.md files.Solution
claude-agent-sdk>=0.1.10which includes configurablemax_buffer_sizesetting_sources=['user', 'project', 'local']to restore the previous behavior of loading user's Claude Code configuration:~/.claude/settings.json.claude/settings.json.claude/settings.local.jsoncli_pathparameter to use user's installed Claude Code CLI instead of bundledNew Parameters
inherit_user_settings(default:True) - Load user's Claude Code settings including MCP serverscli_path(optional) - Path to user's Claude Code CLIhttps://github.com/anthropics/claude-agent-sdk-python/issues/98
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.