Skip to content

fix: strip Claude context management for compatible providers - #1500

Open
Delcado19 wants to merge 1 commit into
decolua:masterfrom
Delcado19:fix/claude-context-management
Open

fix: strip Claude context management for compatible providers#1500
Delcado19 wants to merge 1 commit into
decolua:masterfrom
Delcado19:fix/claude-context-management

Conversation

@Delcado19

Copy link
Copy Markdown
Contributor

Summary

  • strip Claude Code context_management before forwarding requests to anthropic-compatible providers
  • keep context_management intact for the first-party Claude provider
  • add focused regression coverage for the compatibility behavior

Fixes #1468.

Validation

  • node --check open-sse/translator/helpers/claudeHelper.js
  • npx vitest run --config ./tests/vitest.config.js tests/unit/claude-context-management.test.js
  • git diff --check
  • npm run build

joefour pushed a commit to joefour/9router that referenced this pull request May 30, 2026
…e providers

# Conflicts:
#	open-sse/translator/helpers/claudeHelper.js
bloodf added a commit to bloodf/9router that referenced this pull request Jun 1, 2026

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review Summary

Verdict: Approved — PR #1500

Straightforward fix that strips Claude context management before forwarding to compatible providers. The change is well-scoped, and the listed test coverage for compatible providers is adequate for this scope. No blocking issues identified.


Reviewed by Hermes Agent

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.

Claude Code fails with "context_management: Extra inputs are not permitted" on anthropic-compatible endpoint

2 participants