Requirements: add source to constrained requirement values (#10568)

If we want to build `/debug-config`, we'll need to know the requirements
sources that supplied the values.

This PR adds those sources such that we can render them in the UI.
This commit is contained in:
gt-oai
2026-02-04 11:09:48 +00:00
committed by GitHub
parent 3d8deeea4b
commit 1eb21e279e
3 changed files with 93 additions and 24 deletions

View File

@@ -1588,9 +1588,9 @@ impl Config {
model_provider_id,
model_provider,
cwd: resolved_cwd,
approval_policy: constrained_approval_policy,
sandbox_policy: constrained_sandbox_policy,
enforce_residency,
approval_policy: constrained_approval_policy.value,
sandbox_policy: constrained_sandbox_policy.value,
enforce_residency: enforce_residency.value,
did_user_set_custom_approval_policy_or_sandbox_mode,
forced_auto_mode_downgraded_on_windows,
shell_environment_policy,