mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Add a partial answer message phase (#51241)
## Why Assistant answer text may be followed by more output or tools. A distinct `partial_answer` phase lets callers represent this separately from commentary and a terminal `final_answer`. ## What changed - Add `MessagePhase::PartialAnswer` and expose `partial_answer` in the app-server schemas and generated TypeScript and Python types. - Keep the TUI working indicator visible after partial answers and exclude them from the thread history's final-answer summary field. - Route partial answers to the speakable channel in realtime V3 BEM-tag mode. ## Testing Add coverage for phase preservation through serialization, input-message conversion, and SSE item start/completion events. Extend TUI snapshot coverage to verify that partial answers keep the working indicator visible while final answers hide it. GitOrigin-RevId: 1ae3ad9264b6e36ae1cbe6b93df3d345ab4460e6
This commit is contained in:
@@ -2750,6 +2750,7 @@ class MergeStrategy(Enum):
|
||||
|
||||
class MessagePhase(Enum):
|
||||
commentary = "commentary"
|
||||
partial_answer = "partial_answer"
|
||||
final_answer = "final_answer"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user