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

+1 -1
View File
@@ -24,7 +24,7 @@ def _make_loop(
) -> AgentLoop:
"""Create a minimal AgentLoop for testing."""
bus = MessageBus()
provider = MagicMock()
provider = MagicMock(aclose=AsyncMock())
provider.get_default_model.return_value = "test-model"
provider.estimate_prompt_tokens.return_value = (10_000, "test")
provider.chat_stream_with_retry = AsyncMock(return_value=LLMResponse(content="ok", tool_calls=[]))