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:
felixxia-oai
2026-10-16 12:37:14 +00:00
committed by copyberry
parent 144779cd24
commit 4eb4a65407
2 changed files with 2 additions and 0 deletions
@@ -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;