mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## Why Local message boards use a fixed database filename. Callers need separate storage for boards that share a session identity. ## What changed - Add `LocalBoardOptions` with a validated `storage_namespace`, and support it when opening, configuring, and permanently deleting boards. - Allow `LocalBoard::with_options` to select storage for its connections. - Store custom namespaces in `message_board_<namespace>_1.sqlite`, while preserving `agent_message_board_1.sqlite` for the default namespace. - Have the agent message board extension select the same namespace for opening, setup, and deletion. ## Testing Add coverage for namespace isolation, reopening saved posts, and avoiding collisions with other runtime databases. Update setup tests to exercise a custom namespace through reopening and deletion. GitOrigin-RevId: a6ea8d171809625edeedc3a8ac3ee2e1bbf1682a
14 lines
473 B
Rust
14 lines
473 B
Rust
//! Installs agent message-board tools over the shared board interface.
|
|
//! Storage, backend behavior and tool implementations live in `codex-message-board`.
|
|
|
|
mod extension;
|
|
|
|
pub use extension::install;
|
|
|
|
/// Storage selected by the agent consumer for opening, setup and permanent deletion.
|
|
pub fn local_board_options() -> codex_message_board::LocalBoardOptions {
|
|
codex_message_board::LocalBoardOptions {
|
|
storage_namespace: "agent_message_board".into(),
|
|
}
|
|
}
|