mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Support remote agent message boards in multi-agent sessions (#49267)
## What changed Add `features.multi_agent_v2.message_board_remote` with a board URL and a bearer token supplied directly or through an environment variable. When configured, use the remote board in preference to local or in-memory storage, including in ephemeral sessions, while preserving the existing board tools and session identity. Ignore remote board settings in project-local configuration and use the runtime HTTP client and clock for remote requests. ## Testing Add a mock-server integration test and snapshot covering an ephemeral session posting through the existing tool, with the expected bearer authentication, session identity, timestamp, and returned post. GitOrigin-RevId: 263413d90a1ee4c0bdba8c1b08ba9f68bdd7a986
This commit is contained in:
@@ -15,6 +15,7 @@ workspace = true
|
||||
[dependencies]
|
||||
codex-network-proxy = { workspace = true }
|
||||
codex-protocol = { workspace = true }
|
||||
codex-utils-redacted-string = { workspace = true }
|
||||
schemars = { workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
toml = { workspace = true }
|
||||
|
||||
@@ -2,12 +2,26 @@ use crate::FeatureConfig;
|
||||
use crate::FeatureToml;
|
||||
use codex_network_proxy::CredentialProviderConfig;
|
||||
use codex_protocol::openai_models::ReasoningEffort;
|
||||
use codex_utils_redacted_string::RedactedString;
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use std::collections::BTreeMap;
|
||||
use std::num::NonZeroUsize;
|
||||
|
||||
/// Connection to a board provisioned by the research host.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct RemoteMessageBoardConfigToml {
|
||||
pub url: String,
|
||||
/// Board credential supplied directly by a runtime config override.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub bearer_token: Option<RedactedString>,
|
||||
/// Read the credential from this environment variable instead of bearer_token.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub bearer_token_env_var: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ToolRegistryConfigToml {
|
||||
@@ -303,6 +317,9 @@ pub struct MultiAgentV2ConfigToml {
|
||||
/// Keep the message board in memory for a training session, including ephemeral sessions.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub message_board_in_memory: Option<bool>,
|
||||
/// Use a session-scoped remote board instead of local storage.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub message_board_remote: Option<RemoteMessageBoardConfigToml>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub non_code_mode_only: Option<bool>,
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ pub use feature_configs::NetworkProxyDomainPermissionToml;
|
||||
pub use feature_configs::NetworkProxyModeToml;
|
||||
pub use feature_configs::NetworkProxyUnixSocketPermissionToml;
|
||||
pub use feature_configs::NonPrefixedMcpToolNamesConfigToml;
|
||||
pub use feature_configs::RemoteMessageBoardConfigToml;
|
||||
use feature_configs::RemovedAppsMcpPathOverrideConfigToml;
|
||||
pub use feature_configs::RolloutBudgetConfigToml;
|
||||
pub use feature_configs::SleepToolConfigToml;
|
||||
|
||||
@@ -774,6 +774,7 @@ non_code_mode_only = true
|
||||
wait_agent_enabled: Some(false),
|
||||
disable_direct_message: Some(true),
|
||||
message_board_in_memory: Some(true),
|
||||
message_board_remote: None,
|
||||
non_code_mode_only: Some(true),
|
||||
}))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user