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
+1 -1
View File
@@ -612,7 +612,7 @@ class AgentRunner:
wants_progress_streaming = (
not wants_streaming
and spec.progress_callback is not None
and getattr(self.provider, "stream_progress_via_chat_stream", False) is True
and getattr(self.provider, "supports_progress_deltas", False) is True
)
if wants_streaming:
+1 -1
View File
@@ -91,7 +91,7 @@ _SYNTHETIC_USER_CONTENT = "(conversation continued)"
class LLMProvider(ABC):
"""Base class for LLM providers."""
stream_progress_via_chat_stream = False
supports_progress_deltas = False
_CHAT_RETRY_DELAYS = (1, 2, 4)
_PERSISTENT_MAX_DELAY = 60
+1 -1
View File
@@ -26,7 +26,7 @@ DEFAULT_ORIGINATOR = "nanobot"
class OpenAICodexProvider(LLMProvider):
"""Use Codex OAuth to call the Responses API."""
stream_progress_via_chat_stream = True
supports_progress_deltas = True
def __init__(self, default_model: str = "openai-codex/gpt-5.1-codex"):
super().__init__(api_key=None, api_base=None)