Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(claude): raise json buffer limit

yh ce55ca697ea44
diff --git a/main.py b/main.py
index f7151beb5..ad7455f97 100644
--- a/main.py
+++ b/main.py
@@ -37,6 +37,26 @@ def setup_logging(level: str = "INFO"):
)
+def apply_claude_sdk_patches():
+ """Apply runtime patches for third-party SDK limits."""
+ logger = logging.getLogger(__name__)
+ try:
+ from claude_code_sdk._internal.transport import subprocess_cli
+ except Exception as exc:
+ logger.warning(f"Claude SDK patch skipped: {exc}")
+ return
+
+ buffer_size = 16 * 1024 * 1024
+ previous = getattr(subprocess_cli, "_MAX_BUFFER_SIZE", None)
+ subprocess_cli._MAX_BUFFER_SIZE = buffer_size
+ if previous != buffer_size:
+ logger.info(
+ "Patched claude_code_sdk _MAX_BUFFER_SIZE from %s to %s bytes",
+ previous,
+ buffer_size,
+ )
+
+
def main():
"""Main entry point"""
try:
@@ -46,6 +66,8 @@ def main():
# Setup logging
setup_logging(config.log_level)
logger = logging.getLogger(__name__)
+
+ apply_claude_sdk_patches()
logger.info("Starting vibe-remote service...")
logger.info(f"Working directory: {config.claude.cwd}")
diff --git a/requirements.txt b/requirements.txt
index 231805484..31e17f105 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-claude-code-sdk>=0.0.19
+claude-code-sdk>=0.0.25
python-telegram-bot>=20.0
python-dotenv>=1.0.0
anyio>=4.0.0