A process default is not a new permission decision
Use when
A
noninteractive
launcher
resumes
Codex
sessions
created
with
narrower
permissions
or
different
workspace
roots.
Previously,
a
saved
:read-only
session
could
inherit
the
process’s
:workspace
default,
making
resumed
work
writable.
Action
During
authorized
maintenance,
require
the
0.172.0
repair
or
a
reviewed
equivalent.
Resume
the
intended
saved
identity:
codex
exec
resume
"$SESSION_ID"
"$PROMPT".
Remove
wrapper-generated
permission
or
working-directory
overrides
unless
they
express
an
explicitly
authorized
change;
retain
mandatory
managed
policy.
Treat
--add-dir
as
an
authority
change,
not
startup
boilerplate.
If saved authority cannot be restored, stop for an authorized selection—never retry automatically with workspace-write. Inspect actual launcher arguments and running-thread permissions, directory, and roots; the old configuration file alone is insufficient.
Acceptance check
In
an
authorized
disposable
mock-provider
fixture,
configure
a
writable
process
default
but
save
a
read-only
session.
Resume
it
without
permission
overrides.
Make
the
first
tool
call
print
shell
reached
and
attempt
to
create
resume-write.txt.
Require
that
output,
a
permission-denial
result,
and
an
absent
file—not
merely
a
read-only
startup
label.
A
separately
authorized
writable
control
must
create
its
own
marker.
Resume from another launcher directory: saved directory and roots must remain. An explicit additional directory must add only that root. Cover legacy read-only history and unavailable saved profiles; the latter must not silently fall back. Retain session identity, version, arguments, effective settings, raw output, and filesystem evidence.
Evidence
The stable release includes merged PR #62194. Tagged source distinguishes explicit overrides from ambient defaults and reads permissions from the resumed thread. Its regression checks shell reachability, actual write denial, and absent output; neighboring tests check root preservation, legacy recovery, and explicit overrides.
Caveat
Saved profile names are not immutable policy snapshots. Explicit flags, selected configuration profiles, and current requirements still matter. The Unix write regression can skip without required network/sandbox support; skipped checks prove nothing. This is not Windows, remote-server, credential, or every-approval-setting coverage. We inspected source and assertions; no tests or upgrades ran. The additional wrapper controls remain untested.