Add append-only clear context operation

This commit is contained in:
Ahmed Ibrahim
2026-01-26 00:56:15 -08:00
parent d27f2533a9
commit 1aea5ff6c1
18 changed files with 327 additions and 26 deletions

View File

@@ -99,6 +99,7 @@ pub enum CodexErrorInfo {
Unauthorized,
BadRequest,
ThreadRollbackFailed,
ContextClearFailed,
SandboxError,
/// The response SSE stream disconnected in the middle of a turn before completion.
ResponseStreamDisconnected {
@@ -130,6 +131,7 @@ impl From<CoreCodexErrorInfo> for CodexErrorInfo {
CoreCodexErrorInfo::Unauthorized => CodexErrorInfo::Unauthorized,
CoreCodexErrorInfo::BadRequest => CodexErrorInfo::BadRequest,
CoreCodexErrorInfo::ThreadRollbackFailed => CodexErrorInfo::ThreadRollbackFailed,
CoreCodexErrorInfo::ContextClearFailed => CodexErrorInfo::ContextClearFailed,
CoreCodexErrorInfo::SandboxError => CodexErrorInfo::SandboxError,
CoreCodexErrorInfo::ResponseStreamDisconnected { http_status_code } => {
CodexErrorInfo::ResponseStreamDisconnected { http_status_code }