AUTO_DENIED_METADATA_KEY = 'deepagents_code_auto_denied'ToolMessage.additional_kwargs flag set on a synthetic auto-mode denial.
Set on both dispositions that synthesize a result instead of executing the
tool: policy_deny and the classifier_unavailable fallback.
The flag lets the TUI skip its uncorrelated-result warning for these. A
result reaches that warning when no widget mounted for the call, and a widget
mounts only when the streamed args parse (see ToolCallBuffer.parse_args).
A no-argument call streams no args, so it never mounts, and its denial result
arrives uncorrelated. The denial is not the cause of the miss; it is the
routine case in which the miss is expected.
The flag is carried in additional_kwargs so the adapter does not
string-match the content. additional_kwargs is dropped by the server
message converters unless they forward it; _convert_tool_message in
client/remote_client.py does, which is what the TUI depends on.