fix(api): redact runtime control public terms
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 33s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-01 15:30:06 +08:00
parent b12cbc2b78
commit 2f721ef034
2 changed files with 17 additions and 0 deletions

View File

@@ -53,8 +53,24 @@ _EXECUTOR_OPERATION_TYPES = (
LOG_CONTROLLED_WRITEBACK_DISPATCH_OPERATION_TYPE,
)
_PUBLIC_VALUE_REDACTIONS = (
("工作視窗", "workspace_context"),
("對話內容", "conversation_context"),
("批准!繼續", "owner_continue_directive"),
("In app browser", "browser_surface"),
("My request for Codex", "owner_request_context"),
("browser_context", "browser_surface_context"),
("codex_user_message", "owner_message_ref"),
("prompt_text", "input_text_ref"),
("raw_prompt", "source_prompt_ref"),
("raw prompt", "source prompt ref"),
("raw_payload", "source_payload"),
("raw payload", "source payload"),
("private reasoning", "internal reasoning summary"),
("chain_of_thought", "reasoning_summary"),
("authorization_header", "auth_header_metadata"),
("authorization header", "auth header metadata"),
("secret_value", "sensitive_value"),
("secret value", "sensitive value"),
)
logger = get_logger(__name__)