diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-05 02:38:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-05 02:38:14 +0200 |
| commit | 7916be1656d8ee9c5882b52753cd47f5e58e3e7e (patch) | |
| tree | d54015e01ecff6566bad26034ada4e8cca3d3edf /src/api/schema | |
| parent | 987651a760cdfe4cd9493388e8c16b8f99643a05 (diff) | |
fix: make Windows Codex prompt delay size-aware (#3552)
refs #3187
Diffstat (limited to 'src/api/schema')
| -rw-r--r-- | src/api/schema/agents.rs | 3 | ||||
| -rw-r--r-- | src/api/schema/tests.rs | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/api/schema/agents.rs b/src/api/schema/agents.rs index 9e1e7b15..ee496d5d 100644 --- a/src/api/schema/agents.rs +++ b/src/api/schema/agents.rs @@ -37,6 +37,9 @@ pub struct AgentPromptWaitOptions { pub until: Vec<AgentStatus>, #[serde(default, skip_serializing_if = "Option::is_none")] pub timeout_ms: Option<u64>, + #[serde(skip)] + #[schemars(skip)] + pub(crate) submission_deadline: Option<std::time::Instant>, } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)] diff --git a/src/api/schema/tests.rs b/src/api/schema/tests.rs index 06529f5e..693f0e85 100644 --- a/src/api/schema/tests.rs +++ b/src/api/schema/tests.rs @@ -133,6 +133,7 @@ fn agent_start_and_prompt_requests_round_trip() { wait: Some(AgentPromptWaitOptions { until: vec![AgentStatus::Idle, AgentStatus::Done], timeout_ms: Some(120_000), + submission_deadline: None, }), }), }; |
