mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
- Add a "remote" thread store implementation - Implement the remote thread store as a thin wrapper that makes grpc calls to a configurable service endpoint - Implement only the thread/list method to start - Encode the grpc method/param shape as protobufs in the remote implementation A wart: the proto generation script is an "example" binary target. This is an example target only because Cargo lets examples use dev-dependencies, which keeps tonic-prost-build out of the normal codex-thread-store dependency surface. A regular bin would either need to add proto generation deps as normal runtime deps, or use a feature-gated optional dep, which this repo’s manifest checks explicitly reject.
14 lines
508 B
Markdown
14 lines
508 B
Markdown
# Remote Thread Store
|
|
|
|
- The Rust protobuf output in `proto/codex.thread_store.v1.rs` is checked in.
|
|
- Do not add build-time protobuf generation to `codex-thread-store` unless the Bazel/Cargo story is intentionally changed.
|
|
- When `proto/codex.thread_store.v1.proto` changes, regenerate the Rust file manually and include both files in the same commit.
|
|
|
|
Run this from the repository root:
|
|
|
|
```sh
|
|
./codex-rs/thread-store/scripts/generate-proto.sh
|
|
```
|
|
|
|
The command requires `protoc` to be available on `PATH`.
|