Expose the managed local Codex policy to clients (#65353)

## What changed

Add the boolean `allow_local` requirement. Apply the `true` default
after merging requirements layers, and show explicit values with their
source in the TUI config diagnostics.

Report the effective value as `requirements.allowLocal` in
`configRequirements/read` and update the protocol schemas and generated
client types. Clients should assume `true` when there are no managed
requirements or an older server omits the field. A value of `false`
is informational at this stage.

## Testing

Cover layer precedence, source tracking, rejection of non-boolean values,
RPC responses for explicit and omitted settings, and decoding responses
from older servers.

GitOrigin-RevId: 6cd400cacdf8981e0cabad642019c634549e0074
This commit is contained in:
willwang-openai
2026-12-02 23:10:36 +00:00
committed by copyberry
parent 411e0f6235
commit 40f961b069
19 changed files with 183 additions and 1 deletions
@@ -13270,6 +13270,13 @@ class ConfigRequirements(BaseModel):
allow_browser_and_computer_use: Annotated[
bool | None, Field(alias="allowBrowserAndComputerUse")
] = None
allow_local: Annotated[
bool | None,
Field(
alias="allowLocal",
description="Whether managed requirements allow local Codex sessions. Defaults to true, including when an older server omits this field.",
),
] = True
allow_login_shell: Annotated[bool | None, Field(alias="allowLoginShell")] = None
allow_managed_hooks_only: Annotated[bool | None, Field(alias="allowManagedHooksOnly")] = None
allow_remote_control: Annotated[bool | None, Field(alias="allowRemoteControl")] = None