feat(providers): share Responses backend with Codex WebSocket continuation (#6096)

* feat(codex): continue sessions over Responses WebSocket

* fix(codex): retain API errors with repeated handshake headers

* test(codex): assert attachment paths before JSON escaping

* refactor(providers): share Responses transport and state backend

* fix(grok): update subscription client version

* docs: keep Codex configuration focused on user settings
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-08 11:54:23 +08:00
1 parent 59b89a834c
commit 5be1e589f2
39 files changed
+1690 -801

No files matched your search

@@ -474,6 +474,10 @@ async def test_codex_prompt_cache_key_prefers_stable_session_id(monkeypatch) ->
headers_seen.append(headers)
return provider_base.LLMResponse(content="ok")
async def http_only(_self, *_args, **_kwargs):
return None
monkeypatch.setattr("nanobot.providers.openai_responses.websocket.ResponsesWebSocketSession.request", http_only)
monkeypatch.setattr("nanobot.providers.openai_codex_provider._request_codex", fake_request)
provider = OpenAICodexProvider()