fix(core): litellm tool-arg repair + pin cecli Grep hardening#3
fix(core): litellm tool-arg repair + pin cecli Grep hardening#3JessicaMulein wants to merge 7 commits into
Conversation
Submodule at 91540f39d (cherry-picked from pr/multi-repo-context): path: projects, .cecli.workspaces.yml walk-up, tests. Co-authored-by: Cursor <cursoragent@cursor.com>
…e split - Open-project gate (#50): vision-current-project, ProjectBar, e2e helpers - Multi-repo (#48 partial): .cecli.workspaces.yml, Vision API, Settings UI - Tasks aligned with open project (#49); workspace path utils - brightdate-python submodule; turn metrics; test-lab timing updates Co-authored-by: Cursor <cursoragent@cursor.com>
Submodule includes multi-repo workspaces (91540f39d) and UpdateTodoList normalize_json_array (5c79f96b5). Co-authored-by: Cursor <cursoragent@cursor.com>
Submodule at 6974c2e58: rebased local multi-repo workspaces and UpdateTodoList JSON hardening for integration testing. Co-authored-by: Cursor <cursoragent@cursor.com>
Route POST /sessions through Tauri/reqwest so WebKit fetch no longer fails with "Load failed", and harden engine spawn: wait for health, kill stale :8741 listeners, resolve install root from the binary, and align Settings paths when the repo lives under both /Users and /Volumes. Co-authored-by: Cursor <cursoragent@cursor.com>
… routing Repair /agent when Tasks prepends checklist context: rebuild slash preproc input, apply unlimited agent timeout (not VISION_SLASH_PREPROC_TIMEOUT_S), finalize with prose-shell recovery, auto-confirm, and empty-turn warnings. Route desktop WebKit POST/SSE through Tauri reqwest; free :8741 on Quit; add agent guard UI, workspace path filters, and troubleshooting notes. Co-authored-by: Cursor <cursoragent@cursor.com>
Import parse_tool_arguments from cecli.helpers.responses (not helpers.py). Pin cecli @ 383b6fd8b — Grep format_output hardening for local-model searches. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Static Code Review 📊 ✅ All quality checks passed! |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review Summary by QodoFix litellm tool-arg repair and pin cecli Grep hardening WalkthroughsDescription• Fix litellm_ollama_patch to import parse_tool_arguments from correct cecli module path • Pin cecli submodule to 383b6fd8b for Grep format_output hardening • Ensures glued local-model tool JSON uses cecli's full repair path Diagramflowchart LR
A["litellm_ollama_patch.py"] -->|"import from correct path"| B["cecli.helpers.responses"]
C["cecli submodule"] -->|"update to 383b6fd8b"| D["Grep format_output hardening"]
B -->|"parse_tool_arguments"| E["Tool JSON repair"]
File Changes1. bright_vision_core/litellm_ollama_patch.py
|
Code Review by Qodo
1. Silent tool-args wipe
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
21e57ea to
18d5d9c
Compare
Summary
litellm_ollama_patchto importparse_tool_argumentsfromcecli.helpers.responsesso glued local-model tool JSON uses cecli's full repair path383b6fd8b(Grepformat_outputhardening for malformedsearches)Depends on cecli: Digital-Defiance/cecli#12
Test plan
pytest tests/core/test_litellm_ollama_patch.py tests/core/test_cecli_tool_json.pysource activate.sh && pip install -e cecli && pip install -e .Note: will cherry-pick to
dev-integrationfor dogfood.Made with Cursor
PR Summary by Typo
Overview
This PR addresses a bug in
litellmtool argument parsing by updating an import path and pins thececlisubmodule to a newer version that includes hardening improvements.Key Changes
parse_tool_argumentsinbright_vision_core/litellm_ollama_patch.pyto reflect its new location within thececlilibrary.ceclisubmodule to a specific commit (383b6fd) for enhanced grep hardening.Work Breakdown
To turn off PR summary, please visit Notification settings.