Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@PeterDaveHello
Copy link
Contributor

Context

openai-responses provider exists in the CLI provider list but the TypeScript type definition and config validation schema were not synced, causing validation failures and missing model field mapping.

Similar issue to #5359 (openai-codex fix).

Implementation

packages/core-schemas/src/config/provider.ts:

  • Created openAIResponsesProviderSchema (matches openAI schema structure)
  • Added to providerConfigSchema discriminated union
  • Exported OpenAIResponsesProviderConfig type
  • Marked with kilocode_change (per CLAUDE.md - packages/ requires markers)

cli/src/config/types.ts:

  • Re-exported schema and type

cli/src/config/mapper.ts:

  • Added openai-responses case to getModelIdForProvider (uses openAiModelId)

cli/src/constants/providers/models.ts:

  • Added openai-responses case to getModelIdKey (returns openAiModelId)
  • Fixes write/read consistency: both auth wizard and providers API use same field

cli/src/config/schema.json:

  • Added to provider enum
  • Added 3 validation blocks (field definitions, API key validation, model ID validation)

Screenshots

N/A (type definition and config validation fix)

How to Test

pnpm check-types  # All 20 packages pass
cd cli && pnpm test  # 2080 tests pass

Get in Touch

@PeterDaveHello

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2026

🦋 Changeset detected

Latest commit: 1f06759

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@kilocode/cli Patch
@kilocode/core-schemas Patch
kilo-code Patch
@kilocode/agent-runtime Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

openai-responses exists in the CLI provider list but
the core-schemas and CLI config schema are not synced,
leaving validation and model mapping incomplete.

- packages/core-schemas: add openAIResponsesProviderSchema
- cli/src/config/types.ts: re-export schema/type
- cli/src/config/mapper.ts: map openAiModelId
- cli/src/config/schema.json: add provider enum + validation blocks

pnpm check-types
cd cli && pnpm test
@PeterDaveHello PeterDaveHello force-pushed the fix/cli-openai-responses-schema branch from 1b627cb to 1f06759 Compare January 25, 2026 10:50
@PeterDaveHello
Copy link
Contributor Author

@chrarnoldus the conflict was resolved, please take a look, thanks ;)

@chrarnoldus
Copy link
Collaborator

Thanks!

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.

2 participants