chore(versioning): remove dead 423 freeze + v1-migration error handlers - #34
Merged
Merged
Conversation
Both branches in formatApiError are now unreachable after the v1 cleanup: - HTTP 423 config-freeze: the AGENT_CONFIG_FROZEN flag was removed (atoms cleanup PR1), so the backend never returns 423. - versioning_v2_migration_required: the deprecated v1 versioning write endpoints were deleted (atoms cleanup PR3), so the backend never emits this error_type. Drops both handlers and the now-unused VERSIONING_V2_MIGRATION_ERROR const; formatApiError falls through to its generic message. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
prat11m
requested review from
abhishekmishragithub,
harshitajain165 and
maharshi-smallest
as code owners
August 6, 2026 07:36
abhishekmishragithub
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PRO-1946
Part of the agent-versioning v1 cleanup program (parent PRO-1621). PR6 — mcp-server tidy.
What
Removes two now-unreachable branches from `formatApiError` in `src/api.ts`, plus the unused `VERSIONING_V2_MIGRATION_ERROR` constant:
`formatApiError` now falls through to its generic `API error : ` for any real error.
What to test
What to validate
Deployment
Plain merge — no env vars, no migration. Ships with the next mcp-server release.
Dependencies
Independent of atoms PR5. Relies on PR1 + PR3 (both merged & deployed).
🤖 Generated with Claude Code