Skip to content

feat(codex): add GPT-6 Astra to the model picker - #115

Closed
chroxify wants to merge 1 commit into
jakemor:mainfrom
chroxify:feat/codex-gpt-6-astra
Closed

chroxify wants to merge 1 commit into
jakemor:mainfrom
chroxify:feat/codex-gpt-6-astra

Conversation

@chroxify

@chroxify chroxify commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

GPT-6 Astra (gpt-6-astra) can't be selected in Kanna. Codex models are hardcoded in shared/types.ts, unlike Cursor, Claude and Pi, which get theirs from the harness at runtime — and normalizeServerModel replaces any codex id the catalog doesn't list with the default model, so the model is unreachable even if it's set in ~/.codex/config.toml.

Adds it as the first codex entry: efforts match the 5.6 family (lowultra), Fast mode supported, default effort high — what OpenAI's docs recommend for this model, where the 5.6 family defaults to medium.

Deliberately not the catalog default. Access rolled out gradually after the Sep 3 release, so defaulting to it would move everyone onto a model they may not have; gpt-5.6-sol stays the default.

Requires Codex CLI v0.153.1+ on the machine — older CLIs don't know the id.

Full suite, typecheck and both builds pass.

🌸 Shipped with Kanna — an open-source workspace for all your coding agents. Written by claude/fable.

Codex models are hardcoded here, unlike Cursor, Claude and Pi, which get
theirs from the harness at runtime. So a new release isn't just missing
from the picker: normalizeServerModel silently swaps any id the catalog
doesn't list for the default model, which makes it unreachable even when
set in ~/.codex/config.toml.

Efforts match the 5.6 family (low…ultra), Fast mode is supported, and the
default effort is high — what OpenAI's docs recommend for this model,
where the 5.6 family defaults to medium.

Not made the catalog default: access rolled out gradually after release,
and defaulting to it would move everyone onto a model they may not have.

Needs Codex CLI v0.153.1+ on the machine; older CLIs don't know the id.

🌸 Shipped with Kanna — https://kanna.sh

Co-Authored-By: Kanna <noreply@kanna.sh>
Kanna-Agent: claude/fable
@greptile-apps

greptile-apps Bot commented Sep 5, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds GPT-6 Astra to the static Codex model catalog, advertises its reasoning-effort and fast-mode capabilities, and adds catalog/normalization tests.

  • Keeps GPT-5.6 Sol as the default Codex model.
  • Uses high as Astra’s default reasoning effort.
  • Exposes Astra without checking whether the installed Codex CLI meets its stated minimum version.

Confidence Score: 4/5

This PR should not merge until GPT-6 Astra is hidden or rejected when the installed Codex CLI cannot support it.

The new static catalog entry is offered on every installation, while Kanna neither enforces the stated Codex CLI minimum version nor discovers Codex capabilities; selecting Astra on an older CLI therefore reaches the app-server with an unsupported model ID and fails the turn.

Files Needing Attention: src/shared/types.ts

Important Files Changed

Filename Overview
src/shared/types.ts Adds the Astra catalog metadata, but exposes the model to incompatible Codex CLI installations without version or capability gating.
src/shared/types.test.ts Verifies Astra normalization, supported efforts, its high default effort, and preservation of the existing catalog default.
src/server/read-models.test.ts Updates the expected client-visible Codex model ordering to include Astra first.

Fix all with Greploop Fix All in Codex

Reviews (1): Last reviewed commit: "feat(codex): add GPT-6 Astra to the mode..." | Re-trigger Greptile

Comment thread src/shared/types.ts
Comment on lines +572 to +580
id: "gpt-6-astra",
label: "GPT-6 Astra",
supportsEffort: true,
supportedReasoningEfforts: GPT_5_6_REASONING_OPTIONS,
// OpenAI's Codex docs recommend high as the everyday default for this
// model, where the 5.6 family defaults to medium.
defaultReasoningEffort: "high",
supportsFastMode: true,
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Unsupported CLI exposes Astra

If a machine is running a Codex CLI older than the required v0.153.1, Kanna still offers GPT-6 Astra because the static model catalog is not filtered by CLI version or capabilities. Selecting it passes the unsupported model ID directly to thread/start or turn/start, where a Codex error rejects the request and the agent turn fails. Gate this entry on a compatible CLI version or otherwise prevent unsupported installations from selecting it.

Fix in Codex

@jakemor jakemor closed this Sep 14, 2026
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