refactor(codex): name progress delta capability semantically

Use a provider capability name that describes user-visible progress delta support instead of the runner implementation detail.

Made-with: Cursor
This commit is contained in:
Xubin Ren
2026-04-27 18:48:05 +08:00
committed by Xubin Ren
parent ae14142a87
commit fdfecd3ba6
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -137,7 +137,7 @@ class TestToolEventProgress:
"""Providers that opt in can stream content deltas through _progress messages."""
bus = MessageBus()
provider = MagicMock()
provider.stream_progress_via_chat_stream = True
provider.supports_progress_deltas = True
provider.get_default_model.return_value = "openai-codex/gpt-5.5"
async def chat_stream_with_retry(*, on_content_delta, **kwargs):
@@ -175,7 +175,7 @@ class TestToolEventProgress:
) -> None:
"""If content was already streamed as progress, tool setup should not repeat it."""
loop = _make_loop(tmp_path)
loop.provider.stream_progress_via_chat_stream = True
loop.provider.supports_progress_deltas = True
tool_call = ToolCallRequest(id="call1", name="custom_tool", arguments={"path": "foo.txt"})
calls = iter([
LLMResponse(content="I will inspect it.", tool_calls=[tool_call]),