graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
fix: surface gpt-6-astra on Codex by raising the /models client version
Rach Pradhan2b0d0bd18127
diff --git a/src/models_cache.zig b/src/models_cache.zigindex f92c4976..03d12611 100644--- a/src/models_cache.zig+++ b/src/models_cache.zig@@ -27,8 +27,8 @@ const codex_cache_ttl_ms: i64 = 5 * 60 * 1000;// sends its compiled package version, not another Codex installation on PATH.// This is the newest protocol Graff has verified; a newer installed/native version// may raise it, but an older one must never hide models Graff supports.-// Reference: openai/codex rust-v0.144.1, codex-rs/models-manager.-const codex_client_version_floor = "0.144.1";+// gpt-6-astra's minimal_client_version is 0.153.0 (probed live 2026-09-04).+const codex_client_version_floor = "0.153.0";pub var codex_catalog_source: []const u8 = "baked offline fallback";/// Session-owned cache-first loader, invalidated after in-session login.diff --git a/src/models_cache_tests.zig b/src/models_cache_tests.zigindex 35978866..5981d06a 100644--- a/src/models_cache_tests.zig+++ b/src/models_cache_tests.zig@@ -66,7 +66,7 @@ pub fn visibleSnapshots(parse_snapshot: anytype) !void {pub fn versionFloor(floor: []const u8, effective_version: anytype, snapshot_matches: anytype) !void {try std.testing.expectEqualStrings(floor, effective_version("0.130.0", null));- try std.testing.expectEqualStrings("0.145.0", effective_version("0.145.0", null));+ try std.testing.expectEqualStrings("0.200.0", effective_version("0.200.0", null));try std.testing.expectEqualStrings(floor, effective_version("invalid", null));try std.testing.expect(!snapshot_matches(.{.models = &.{},diff --git a/src/pricing.zig b/src/pricing.zigindex af22766d..fc0f4356 100644--- a/src/pricing.zig+++ b/src/pricing.zig@@ -226,6 +226,7 @@ pub const model_table = [_]ModelInfo{// Codex slice from the account-scoped /models response (5-minute cache).// Keep this usable when auth/discovery is unavailable: these are the// visible rows and advertised windows from the 2026-07-10 Codex catalog.+ .{ .provider = "codex", .name = "gpt-6-astra", .context = 272_000 },.{ .provider = "codex", .name = "gpt-5.6-sol", .context = 272_000 },.{ .provider = "codex", .name = "gpt-5.6-terra", .context = 272_000 },.{ .provider = "codex", .name = "gpt-5.6-luna", .context = 272_000 },diff --git a/src/pricing_tests.zig b/src/pricing_tests.zigindex c0221a4e..7448672b 100644--- a/src/pricing_tests.zig+++ b/src/pricing_tests.zig@@ -165,6 +165,7 @@ test "Codex discovery replaces only the baked Codex fallback" {}test "baked Codex catalog is an offline fallback, not rollout data" {+ try std.testing.expect(pricing.providerModelInTable("codex", "gpt-6-astra"));try std.testing.expect(pricing.providerModelInTable("codex", "gpt-5.6-sol"));try std.testing.expect(pricing.providerModelInTable("codex", "gpt-5.6-terra"));try std.testing.expect(pricing.providerModelInTable("codex", "gpt-5.6-luna"));@@ -172,7 +173,7 @@ test "baked Codex catalog is an offline fallback, not rollout data" {try std.testing.expect(pricing.providerModelInTable("codex", "gpt-5.4"));try std.testing.expect(pricing.providerModelInTable("codex", "gpt-5.3-codex-spark"));try std.testing.expectEqual(pricing.codex_context_window, pricing.contextFor("codex", "gpt-5.6-sol"));- try std.testing.expectEqualStrings("gpt-5.6-sol", pricing.providerDefaultModel("codex", "fallback"));+ try std.testing.expectEqualStrings("gpt-6-astra", pricing.providerDefaultModel("codex", "fallback"));try std.testing.expect(!pricing.providerModelInTable("codex", "gpt-5.5-codex"));try std.testing.expect(!pricing.providerModelInTable("codex", "gpt-5-codex"));try std.testing.expect(pricing.providerModelInTable("openai", "gpt-5-codex"));