- Date: 2025-09-30
Adds a config.toml-driven scheduler crate and feature-gated MCP server bootstrap. Default-off at build and runtime; starts only when [scheduler] is enabled in ~/.codex/config.toml.
- codex-rs/scheduler/Cargo.toml
- codex-rs/scheduler/src/lib.rs
- codex-rs/scheduler/src/config.rs
- codex-rs/scheduler/src/db.rs
- codex-rs/scheduler/src/cronloop.rs
- codex-rs/scheduler/src/runner.rs
- codex-rs/Cargo.toml (workspace member added)
- codex-rs/mcp-server/Cargo.toml (feature-gated dep)
- codex-rs/mcp-server/src/scheduler_bootstrap.rs
- codex-rs/mcp-server/src/main.rs (feature-gated call)
- Locking and due detection: any edge cases or improvements recommended?
- DB API: is post_json_with_retry sufficient; should inserts use AQL vs document POST consistently?
- Error handling and TLS: any additional hardening suggested?
- Tests: what minimal unit/integration tests do you want added?
Please provide unified diffs to:
- Add minimal tests (cron proximity, runner timeout path). Expose helpers as pub(crate) if preferred.
- Suggest DB API cleanup (query wrapper, retry policy) and migrate call sites.
- If desired, wire Option B submitter-based injection in mcp-server/src/message_processor.rs.