quick-window-91705
12/07/2025, 6:41 PMlimited-student-10747
12/07/2025, 7:17 PMlimited-student-10747
12/07/2025, 7:18 PMnutritious-balloon-65098
12/07/2025, 7:18 PMnutritious-balloon-65098
12/07/2025, 7:24 PM740c8ac (PR #153) which added comprehensive tests for malformed mcp.json error handling, but contained several bugs in the test code itself.
Issues Fixed:
Checklist of problems addressed:
⢠ā
Missing import: Added NewSessionRequest to imports from acp.schema
⢠ā
Incorrect parameter naming: Changed mcpServers=[] to mcp_servers=[] (Python snake_case convention)
⢠ā
Incorrect method calls: Changed acp_agent.newSession(request) to acp_agent.new_session(cwd=request.cwd, mcp_servers=request.mcp_servers) (Python naming convention)
Changes Made:
⢠Modified tests/acp/test_agent.py only (9 insertions, 4 deletions)
⢠Two test functions fixed: test_new_session_with_malformed_mcp_json and test_new_session_with_malformed_mcp_json_integration
Verification:
ā
All lint checks pass: ruff format, ruff lint, pycodestyle, pyright
ā
All tests pass: 254 tests total (including the 22 ACP agent tests)
The fix is minimal, concise, and directly addresses only the bugs introduced in the recent PR. The changes have been committed locally.
Would you like me to push these changes and create a pull request? If so, I'll create a properly named branch and open a PR to fix the failing CI on main.
<sub>View full conversation</sub>nutritious-balloon-65098
12/07/2025, 8:18 PMtests/acp/test_agent.py
3. Verified the fix: All lint checks and 254 tests now pass
4. Created draft PR: Changes pushed to fix-acp-test-failures branch
The CI failures on main are now resolved. The draft PR is ready for review whenever you'd like to merge it!
<sub>View full conversation</sub>limited-student-10747
12/07/2025, 8:21 PMquick-window-91705
12/07/2025, 8:53 PM