From 02b4c7a35ac0b714bc045d54fb4bb45d1ce4e490 Mon Sep 17 00:00:00 2001 From: t Date: Sat, 13 Jun 2026 23:45:59 -0600 Subject: Add Codex Responses support and session debugging Teach provider config and auth resolution about the Codex Responses dialect, including user-facing `style = "openai_responses"` with `dialect = "codex"`. Serialize and parse Responses traffic with provider-specific reasoning replay, assistant phase metadata, and robust function-call assembly keyed by `output_index` so streamed tool inputs survive proxy quirks and empty terminal payloads. Also persist thinking origins and message metadata across sessions, add the Anthropic interleaved-thinking header switch, write per-session debug logs, and improve the TUI and scripts for inspecting tool output and session costs. --- src/auth_manager.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/auth_manager.zig') diff --git a/src/auth_manager.zig b/src/auth_manager.zig index e26e28a..5504807 100644 --- a/src/auth_manager.zig +++ b/src/auth_manager.zig @@ -198,6 +198,11 @@ fn patchCredential( c.base_url = base_url; c.extra_headers = merged; }, + .openai_codex_responses => |*c| { + c.api_key = cred.api_key; + c.base_url = base_url; + c.extra_headers = merged; + }, } } -- cgit v1.3