Skip to content

Conversation

@pakrym-oai
Copy link
Collaborator

@pakrym-oai pakrym-oai commented Nov 13, 2025

10s for exec and 250ms for write_stdin

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 33 to 37
#[serde(default = "default_login")]
login: bool,
#[serde(default)]
yield_time_ms: Option<u64>,
yield_time_ms: u64,
#[serde(default)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fix yield_time_ms type mismatch

The change on this struct makes yield_time_ms a bare u64, but ExecCommandRequest::yield_time_ms (core/src/unified_exec/mod.rs:71) still expects an Option<u64>. The struct literal at lines 162‑168 now tries to assign a u64 to that Option, which does not compile (expected enum Option<u64>, found integer). Please keep this field optional or wrap it in Some(...) and update the downstream request type so that cargo check -p codex-core succeeds again.

Useful? React with 👍 / 👎.

- Replace Option<u64> yield_time_ms with u64 in ExecCommand/WriteStdin requests and structs
- Assign explicit default yield_time_ms per command/write case
- Remove DEFAULT_YIELD_TIME_MS const; in favor of field defaults
- Simplify clamp_yield_time to accept a u64 (no Option)
- Adjust tests and internal logic accordingly
@pakrym-oai pakrym-oai changed the title Set default yield time Update default yield time Nov 13, 2025
Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok if ok for research

@pakrym-oai pakrym-oai merged commit 0792a79 into main Nov 13, 2025
23 of 25 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/set-default-yield-time branch November 13, 2025 18:24
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants