feat: rollback empty interrupted turns

This commit is contained in:
2026-05-23 12:50:46 +09:00
parent 8813d966bb
commit 03e7795130
5 changed files with 373 additions and 0 deletions
+5
View File
@@ -571,6 +571,11 @@ pub enum RunResult {
Finished,
Paused,
LimitReached,
/// The accepted Method::Run produced no assistant/tool output before
/// user interruption, so the Pod rolled the submit-time turn state back
/// to its pre-submit snapshot. Clients should treat the Pod as Idle and
/// restore the just-submitted input into the editable composer if desired.
RolledBack,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]