[PR #759] [CLOSED] Add native Responses API support for Codex clients #2812

Closed
opened 2026-11-04 02:03:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/759
Author: @Averyyy
Created: 10/4/2026
Status: ❌ Closed

Base: main ← Head: feat/codex-responses


📝 Commits (1)

  • 882de4a feat: add native Responses API for Codex clients

📊 Changes

4 files changed (+377 additions, -8 deletions)

View changed files

📝 docs/DETAILS.md (+10 -0)
📝 serve/frontend.py (+75 -3)
📝 serve/server.py (+168 -5)
➕ serve/test_responses.py (+124 -0)

📄 Description

Strata's server supports Chat Completions and Anthropic Messages, but clients such as Codex require the Responses API. Add POST /v1/responses so those clients can use the existing model and engine directly.

The endpoint supports streaming and non-streaming text, reasoning effort, function and custom tools, explicit tool namespaces, and full-history replay of tool calls and results. It reuses the existing authentication, cancellation, request monitoring, and output parser. The client owns conversation history; stored responses and structured output are outside this endpoint's supported scope.

Validation: 125 Responses and server tests, plus 28 monitoring and security tests, passed. Protocol tests cover streaming lifecycle, text and reasoning, output limits, authentication, function/custom tool replay, and namespaced calls.

On Windows with Codex CLI 0.160.0 and Qwen3.8 Flash Next, a real streaming turn completed an exec_command call, replayed its output, and returned the requested result. The initial prompt contained 92,672 tokens from the installed tools and skills. A separate local coding profile completed shell execution and a native spawn_agent / wait_agent / close_agent workflow; the Qwen child returned the requested marker.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/759 **Author:** [@Averyyy](https://github.com/Averyyy) **Created:** 10/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/codex-responses` --- ### 📝 Commits (1) - [`882de4a`](https://github.com/Niko1221/Strata/commit/882de4a6be73186eee1cfd1a215b1a1ab15054b9) feat: add native Responses API for Codex clients ### 📊 Changes **4 files changed** (+377 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+10 -0) 📝 `serve/frontend.py` (+75 -3) 📝 `serve/server.py` (+168 -5) ➕ `serve/test_responses.py` (+124 -0) </details> ### 📄 Description Strata's server supports Chat Completions and Anthropic Messages, but clients such as Codex require the Responses API. Add `POST /v1/responses` so those clients can use the existing model and engine directly. The endpoint supports streaming and non-streaming text, reasoning effort, function and custom tools, explicit tool namespaces, and full-history replay of tool calls and results. It reuses the existing authentication, cancellation, request monitoring, and output parser. The client owns conversation history; stored responses and structured output are outside this endpoint's supported scope. Validation: 125 Responses and server tests, plus 28 monitoring and security tests, passed. Protocol tests cover streaming lifecycle, text and reasoning, output limits, authentication, function/custom tool replay, and namespaced calls. On Windows with Codex CLI 0.160.0 and Qwen3.8 Flash Next, a real streaming turn completed an `exec_command` call, replayed its output, and returned the requested result. The initial prompt contained 92,672 tokens from the installed tools and skills. A separate local coding profile completed shell execution and a native `spawn_agent` / `wait_agent` / `close_agent` workflow; the Qwen child returned the requested marker. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:03:18 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2812
No description provided.