Files
codex/codex-rs/app-server-client/src
Benjamin Carlsson ac2c4a339c Preserve agent message phases in the cloud backend (#61737)
## Why

Cloud agent messages lost their phase when converted to app-server thread items, leaving consumers unable to distinguish commentary, final answers, and partial answers.

## What changed

Decode the optional phase from cloud agent messages, expose it through `ItemSummary::AgentMessage`, and map it to the corresponding app-server `MessagePhase`. Leave the phase unset for missing or unrecognized values.

## Testing

Extend item lifecycle and completed-reply tests to verify that a final-answer phase survives decoding and conversion. Retain history coverage for messages without a phase.

GitOrigin-RevId: b7661386758685e0f3c07b53935ff7fd7ba35f7d
2026-11-16 03:39:14 +00:00
..