mirror of
https://github.com/openai/codex.git
synced 2026-10-19 16:17:49 +00:00
Capture sender context for codex_app.create_thread deliveries (#54590)
## What changed Recognize `codex_app.create_thread` deliveries when capturing sender context so Guardian receives the sender's recent user messages and assistant context for delegated tasks. ## Testing Extend the sender-context integration test to cover `create_thread`, including reviewer-only context and clearing the snapshot on a subsequent delivery without sender provenance. GitOrigin-RevId: 7a47c3ac5b9c9405e6728010c494529274b7b73d
This commit is contained in:
@@ -38,6 +38,7 @@ impl LocalAgentRuntime {
|
||||
if !matches!(
|
||||
(namespace.as_str(), name.as_str()),
|
||||
("codex_app" | "codex_tui", "send_message_to_thread")
|
||||
| ("codex_app", "create_thread")
|
||||
| ("cloud_threads", "send_message")
|
||||
) {
|
||||
return None;
|
||||
|
||||
@@ -16,6 +16,7 @@ use pretty_assertions::assert_eq;
|
||||
use serde_json::json;
|
||||
|
||||
#[test_case::test_case(None, "codex_app", "send_message_to_thread", 0; "default")]
|
||||
#[test_case::test_case(None, "codex_app", "create_thread", 0; "desktop create thread")]
|
||||
#[test_case::test_case(Some(false), "codex_app", "send_message_to_thread", 0; "retired opt out")]
|
||||
#[test_case::test_case(None, "codex_tui", "send_message_to_thread", 0; "tui")]
|
||||
#[test_case::test_case(None, "cloud_threads", "send_message", 0; "cloud threads")]
|
||||
|
||||
Reference in New Issue
Block a user