feat(codeblock): log secure runner gate decision + block selection at INFO (#6874)
Some checks are pending
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Run tests and pre-commit / pip Package Smoke Tests (3.11) (push) Waiting to run
Run tests and pre-commit / pip Package Smoke Tests (3.13) (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run

This commit is contained in:
Shuchang Zheng 2026-06-28 11:11:30 -07:00 committed by GitHub
parent 7a525a6d26
commit 19df0bd30f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4113,6 +4113,13 @@ async def wrapper({default_args}):
workflow_run_block_id=workflow_run_block_id,
organization_id=organization_id,
)
LOG.info(
"CodeBlock runner selection at block",
use_codeblock_runner=use_codeblock_runner,
workflow_run_id=workflow_run_id,
workflow_run_block_id=workflow_run_block_id,
block_label=self.label,
)
if use_codeblock_runner:
secure_code_block_result = await app.AGENT_FUNCTION.execute_code_block_override(
block=self,
@ -4124,6 +4131,13 @@ async def wrapper({default_args}):
parameter_values=parameter_values,
credential_parameter_keys=credential_parameter_keys,
)
LOG.info(
"Secure CodeBlock override returned",
override_returned_none=secure_code_block_result is None,
workflow_run_id=workflow_run_id,
workflow_run_block_id=workflow_run_block_id,
block_label=self.label,
)
if secure_code_block_result is not None:
return secure_code_block_result