fix(daemon): expose config backend option to responses#908
Open
TZZheng wants to merge 1 commit into
Open
Conversation
This was referenced Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tasks[].backend_options.configin the daemon tool schema so constrained Responses providers can generate the keyadditionalPropertiescontract, keeping Expose daemon backend options schema #849's generic CLI-option passthrough open-endedProblem
#849 added the runtime passthrough from
backend_optionsto backend CLI arguments. The provider-facing schema, however, describedbackend_optionsonly withadditionalProperties.The Codex Responses compatibility scrub adds
properties: {}to object schemas that lack an explicitpropertieskey because the endpoint rejects that original free-form shape. Under constrained tool generation, that transformed schema could express only an emptybackend_optionsobject, so values such as:{"config": ["model_reasoning_effort=\"ultra\""]}never reached the already-correct runtime argument conversion.
Implementation
_backend_option_value_schema()returns a fresh copy of the existing safe scalar/list option-value contract.backend_options.properties.configandbackend_options.additionalPropertieseach receive an independent copy of that same contract. This makesconfignameable to constrained providers without enumerating or narrowing other backend flags.Follow-up to #849.
Validation
PYTHONPATH=src PYTHONDONTWRITEBYTECODE=1 $LINGTAI_RUNTIME_PYTHON -m pytest -q -p no:cacheprovider tests/test_daemon_backend_options.py tests/test_wire_tool_description.py tests/test_tool_glossary.py tests/test_daemon_codex_submanual.py tests/test_daemon_opencode_submanual.py— 231 passedgit diff --check— passedgit diff --checkclean; no blocking findings)Ruff was unavailable in the active runtime and is not claimed as run.
Scope
No runtime argument conversion, persistence, logging, global Codex configuration, adapter behavior, or unrelated daemon routing is changed.