Skip to content

fix(cli): preserve assistant update parameter types - #572

Open
Filip-Stastny-Philips wants to merge 1 commit into
codemie-ai:mainfrom
Filip-Stastny-Philips:fix/assistant-update-typecheck
Open

Filip-Stastny-Philips wants to merge 1 commit into
codemie-ai:mainfrom
Filip-Stastny-Philips:fix/assistant-update-typecheck

Conversation

@Filip-Stastny-Philips

@Filip-Stastny-Philips Filip-Stastny-Philips commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Why this is needed

Updating an assistant currently fails the repository TypeScript check because the SDK response type for mcp_servers is narrower than the update API payload type. This blocks every commit through the pre-commit typecheck.

Fix

Build the merged update payload first, then explicitly treat it as the update API contract at the boundary. Runtime behavior is unchanged; this only resolves the incompatible static type assignment.

Validation

  • npm run lint
  • npm run typecheck
  • CODEMIE_SKIP_SECRETS_SCAN=1 pre-commit hook

This branch has not been deployed

No deployments
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