Apply argument comment lint across codex-rs

This commit is contained in:
Michael Bolin
2026-03-13 18:52:26 -07:00
parent 4e594bc93b
commit cfc2e4783d
208 changed files with 1652 additions and 944 deletions
+8 -4
View File
@@ -94,7 +94,9 @@ impl CloudBackend for HttpClient {
}
async fn apply_task(&self, id: TaskId, diff_override: Option<String>) -> Result<ApplyOutcome> {
self.apply_api().run(id, diff_override, false).await
self.apply_api()
.run(id, diff_override, /*preflight=*/ false)
.await
}
async fn apply_task_preflight(
@@ -102,7 +104,9 @@ impl CloudBackend for HttpClient {
id: TaskId,
diff_override: Option<String>,
) -> Result<ApplyOutcome> {
self.apply_api().run(id, diff_override, true).await
self.apply_api()
.run(id, diff_override, /*preflight=*/ true)
.await
}
async fn create_task(
@@ -533,8 +537,8 @@ mod api {
let _ = writeln!(
&mut log,
"stdout_tail=\n{}\nstderr_tail=\n{}",
tail(&r.stdout, 2000),
tail(&r.stderr, 2000)
tail(&r.stdout, /*max=*/ 2000),
tail(&r.stderr, /*max=*/ 2000)
);
let _ = writeln!(&mut log, "{summary}");
let _ = writeln!(
+6 -1
View File
@@ -70,7 +70,12 @@ impl CloudBackend for MockClient {
}
async fn get_task_summary(&self, id: TaskId) -> Result<TaskSummary> {
let tasks = self.list_tasks(None, None, None).await?.tasks;
let tasks = self
.list_tasks(
/*env=*/ None, /*limit=*/ None, /*cursor=*/ None,
)
.await?
.tasks;
tasks
.into_iter()
.find(|t| t.id == id)