improvements

This commit is contained in:
easong-openai
2025-09-25 03:05:30 -07:00
parent 3d12b46b18
commit 16ac10f9d3
18 changed files with 503 additions and 688 deletions

View File

@@ -221,7 +221,10 @@ mod tests {
Ok(out)
}
async fn get_task_diff(&self, _id: TaskId) -> codex_cloud_tasks_client::Result<String> {
async fn get_task_diff(
&self,
_id: TaskId,
) -> codex_cloud_tasks_client::Result<Option<String>> {
Err(codex_cloud_tasks_client::Error::Unimplemented(
"not used in test",
))
@@ -237,7 +240,10 @@ mod tests {
&self,
_id: TaskId,
) -> codex_cloud_tasks_client::Result<codex_cloud_tasks_client::TaskText> {
Ok(codex_cloud_tasks_client::TaskText { prompt: Some("Example prompt".to_string()), messages: Vec::new() })
Ok(codex_cloud_tasks_client::TaskText {
prompt: Some("Example prompt".to_string()),
messages: Vec::new(),
})
}
async fn apply_task(
@@ -249,6 +255,15 @@ mod tests {
))
}
async fn apply_task_preflight(
&self,
_id: TaskId,
) -> codex_cloud_tasks_client::Result<codex_cloud_tasks_client::ApplyOutcome> {
Err(codex_cloud_tasks_client::Error::Unimplemented(
"not used in test",
))
}
async fn create_task(
&self,
_env_id: &str,