Skip to content

Commit 13ead7c

Browse files
authored
Merge branch 'main' into ISSUE-6849
2 parents 6db9b05 + ad7b9d6 commit 13ead7c

File tree

103 files changed

+4249
-2230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+4249
-2230
lines changed

.github/actions/windows-code-sign/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ runs:
5353
files: |
5454
${{ github.workspace }}/codex-rs/target/${{ inputs.target }}/release/codex.exe
5555
${{ github.workspace }}/codex-rs/target/${{ inputs.target }}/release/codex-responses-api-proxy.exe
56+
${{ github.workspace }}/codex-rs/target/${{ inputs.target }}/release/codex-windows-sandbox-setup.exe
57+
${{ github.workspace }}/codex-rs/target/${{ inputs.target }}/release/codex-command-runner.exe

.github/workflows/rust-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ jobs:
101101
sudo apt-get install -y musl-tools pkg-config
102102
103103
- name: Cargo build
104-
run: cargo build --target ${{ matrix.target }} --release --bin codex --bin codex-responses-api-proxy
104+
shell: bash
105+
run: |
106+
if [[ "${{ contains(matrix.target, 'windows') }}" == 'true' ]]; then
107+
cargo build --target ${{ matrix.target }} --release --bin codex --bin codex-responses-api-proxy --bin codex-windows-sandbox-setup --bin codex-command-runner
108+
else
109+
cargo build --target ${{ matrix.target }} --release --bin codex --bin codex-responses-api-proxy
110+
fi
105111
106112
- if: ${{ contains(matrix.target, 'linux') }}
107113
name: Cosign Linux artifacts

AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ In the codex-rs folder where the rust code lives:
1111
- Always collapse if statements per https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
1212
- Always inline format! args when possible per https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
1313
- Use method references over closures when possible per https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
14-
- Do not use unsigned integer even if the number cannot be negative.
1514
- When writing tests, prefer comparing the equality of entire objects over fields one by one.
1615
- When making a change that adds or changes an API, ensure that the documentation in the `docs/` folder is up to date if applicable.
1716

codex-rs/Cargo.lock

Lines changed: 52 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codex-rs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ opentelemetry-appender-tracing = "0.30.0"
162162
opentelemetry-otlp = "0.30.0"
163163
opentelemetry-semantic-conventions = "0.30.0"
164164
opentelemetry_sdk = "0.30.0"
165+
tracing-opentelemetry = "0.31.0"
165166
os_info = "3.12.0"
166167
owo-colors = "4.2.0"
167168
path-absolutize = "3.1.1"

codex-rs/app-server-protocol/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ workspace = true
1515
anyhow = { workspace = true }
1616
clap = { workspace = true, features = ["derive"] }
1717
codex-protocol = { workspace = true }
18+
codex-utils-absolute-path = { workspace = true }
1819
mcp-types = { workspace = true }
1920
schemars = { workspace = true }
2021
serde = { workspace = true, features = ["derive"] }

codex-rs/app-server-protocol/src/protocol/v1.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use codex_protocol::protocol::ReviewDecision;
1616
use codex_protocol::protocol::SandboxPolicy;
1717
use codex_protocol::protocol::SessionSource;
1818
use codex_protocol::protocol::TurnAbortReason;
19+
use codex_utils_absolute_path::AbsolutePathBuf;
1920
use schemars::JsonSchema;
2021
use serde::Deserialize;
2122
use serde::Serialize;
@@ -359,7 +360,7 @@ pub struct Tools {
359360
#[serde(rename_all = "camelCase")]
360361
pub struct SandboxSettings {
361362
#[serde(default)]
362-
pub writable_roots: Vec<PathBuf>,
363+
pub writable_roots: Vec<AbsolutePathBuf>,
363364
pub network_access: Option<bool>,
364365
pub exclude_tmpdir_env_var: Option<bool>,
365366
pub exclude_slash_tmp: Option<bool>,

codex-rs/app-server-protocol/src/protocol/v2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use codex_protocol::protocol::SessionSource as CoreSessionSource;
2424
use codex_protocol::protocol::TokenUsage as CoreTokenUsage;
2525
use codex_protocol::protocol::TokenUsageInfo as CoreTokenUsageInfo;
2626
use codex_protocol::user_input::UserInput as CoreUserInput;
27+
use codex_utils_absolute_path::AbsolutePathBuf;
2728
use mcp_types::ContentBlock as McpContentBlock;
2829
use mcp_types::Resource as McpResource;
2930
use mcp_types::ResourceTemplate as McpResourceTemplate;
@@ -420,7 +421,7 @@ pub enum SandboxPolicy {
420421
#[ts(rename_all = "camelCase")]
421422
WorkspaceWrite {
422423
#[serde(default)]
423-
writable_roots: Vec<PathBuf>,
424+
writable_roots: Vec<AbsolutePathBuf>,
424425
#[serde(default)]
425426
network_access: bool,
426427
#[serde(default)]

codex-rs/app-server/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ codex-utils-json-to-toml = { workspace = true }
3131
chrono = { workspace = true }
3232
serde = { workspace = true, features = ["derive"] }
3333
serde_json = { workspace = true }
34-
sha2 = { workspace = true }
3534
mcp-types = { workspace = true }
3635
tempfile = { workspace = true }
3736
toml = { workspace = true }
38-
toml_edit = { workspace = true }
3937
tokio = { workspace = true, features = [
4038
"io-std",
4139
"macros",
@@ -45,7 +43,6 @@ tokio = { workspace = true, features = [
4543
] }
4644
tracing = { workspace = true, features = ["log"] }
4745
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
48-
opentelemetry-appender-tracing = { workspace = true }
4946
uuid = { workspace = true, features = ["serde", "v7"] }
5047

5148
[dev-dependencies]

0 commit comments

Comments
 (0)