Skip to content

P4 — Wire Compat Middleware Edge-Case Tests#1555

Merged
Trecek merged 1 commit intointegrationfrom
p4-wire-compat-middleware-edge-case-tests/1546
Apr 30, 2026
Merged

P4 — Wire Compat Middleware Edge-Case Tests#1555
Trecek merged 1 commit intointegrationfrom
p4-wire-compat-middleware-edge-case-tests/1546

Conversation

@Trecek
Copy link
Copy Markdown
Collaborator

@Trecek Trecek commented Apr 30, 2026

Summary

Create tests/server/test_wire_compat.py with 4 async edge-case tests for ClaudeCodeCompatMiddleware covering: empty tool list passthrough, title stripping when output_schema is already None, unconditional model_copy invocation when both fields are already None, and mixed tool list cleaning. All tests are pure unit tests using MagicMock/AsyncMock — no server import, no fixtures beyond anyio_backend.

Closes #1546

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-1546-20260429-203139-214889/.autoskillit/temp/make-plan/p4_wire_compat_middleware_edge_case_tests_plan_2026-04-29_203600.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step uncached output cache_read cache_write count time
plan 46 6.0k 397.1k 37.8k 1 4m 6s
verify 30 4.4k 507.5k 42.1k 1 1m 48s
implement 30 4.0k 441.7k 51.0k 1 4m 30s
prepare_pr 23 3.3k 138.3k 24.7k 1 1m 6s
compose_pr 22 1.4k 128.2k 17.9k 1 39s
review_pr 139 19.3k 488.2k 54.7k 1 5m 33s
Total 290 38.3k 2.1M 228.1k 17m 44s

Cover 4 edge cases: empty tool list passthrough, title stripping when
output_schema is already None, unconditional model_copy invocation,
and mixed tool list cleaning.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator Author

@Trecek Trecek left a comment

Choose a reason for hiding this comment

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

AutoSkillit PR Review — Verdict: approved. Clean edge-case test coverage for ClaudeCodeCompatMiddleware. No blocking or warning issues found.

@Trecek Trecek added this pull request to the merge queue Apr 30, 2026
Merged via the queue into integration with commit 6171f15 Apr 30, 2026
2 checks passed
@Trecek Trecek deleted the p4-wire-compat-middleware-edge-case-tests/1546 branch April 30, 2026 04:35
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.

1 participant