mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
Apply argument comment lint across codex-rs
This commit is contained in:
@@ -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!(
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user