mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #759] [CLOSED] Add native Responses API support for Codex clients #2812
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2812
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
882de4afeat: 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/responsesso 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_commandcall, 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 nativespawn_agent/wait_agent/close_agentworkflow; the Qwen child returned the requested marker.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.