mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 03:10:38 +09:00
fix(adapter): support dangerouslyBypassSandbox alias in codex-local
Fall back to dangerouslyBypassSandbox when the full dangerouslyBypassApprovalsAndSandbox flag is not set, keeping the UI toggle in sync with either config key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d2f9ade30c
commit
544beaaae7
2 changed files with 8 additions and 2 deletions
|
|
@ -12,6 +12,9 @@ export function CodexLocalConfigFields({
|
|||
eff,
|
||||
mark,
|
||||
}: AdapterConfigFieldsProps) {
|
||||
const bypassEnabled =
|
||||
config.dangerouslyBypassApprovalsAndSandbox === true || config.dangerouslyBypassSandbox === true;
|
||||
|
||||
return (
|
||||
<>
|
||||
<ToggleField
|
||||
|
|
@ -23,7 +26,7 @@ export function CodexLocalConfigFields({
|
|||
: eff(
|
||||
"adapterConfig",
|
||||
"dangerouslyBypassApprovalsAndSandbox",
|
||||
config.dangerouslyBypassApprovalsAndSandbox !== false,
|
||||
bypassEnabled,
|
||||
)
|
||||
}
|
||||
onChange={(v) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue