Files
OmniRoute/tests
Diego Rodrigues de Sa e Souza b6f2bd85fe fix(executors): strip client context_management on 400 (port from 9router#1468)
Claude Code always sends a top-level `context_management` field. Strict
anthropic-compatible gateways reject it with 400 "context_management: Extra
inputs are not permitted". The dedicated context-editing 400-fallback in
base.ts only fires when OmniRoute's own `contextEditing` feature is enabled
(default off), so a client-sent field passed through untouched and 400'd with
no recovery. Add `context_management` to KNOWN_OFFENDING_FIELDS so the generic
reactive 400 field-downgrade strips-and-retries it once, independent of the
feature flag (the generic path already re-signs for claude-compatible relays).

Regression guard: tests/unit/provider-field-strips.test.ts.

Reported-by: ohahe52-dot (https://github.com/decolua/9router/issues/1468)
2026-07-06 16:53:43 -03:00
..
2026-05-23 01:46:59 -03:00
2026-07-02 10:47:13 -03:00
2026-06-19 06:49:01 -03:00
2026-06-10 13:49:08 -03:00
2026-06-13 17:27:40 -03:00