Skip to content

Let users remember the working directory for resumed sessions - #33950

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7bf144c4b8c55bdb868cc8a71caf397c7740451a
Jul 18, 2026
Merged

Let users remember the working directory for resumed sessions#33950
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7bf144c4b8c55bdb868cc8a71caf397c7740451a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 18, 2026

Copy link
Copy Markdown

Let users remember the working directory for resumed sessions

What changed

  • Add tui.resume_cwd with current and session modes for resume and fork flows.
  • Let users persist either mode directly from the working-directory prompt, while preserving one-time choices when no preference is configured.
  • Apply the preference consistently during startup and in-app resume, honor explicit --cd overrides, and reject unsupported or unavailable directory choices with a clear error.

Testing

  • Cover configuration parsing and persistence, prompt behavior, startup and in-app flows, session metadata fallback, and remote workspace constraints.

## What changed

- Add `tui.resume_cwd` with `current` and `session` modes for resume and fork flows.
- Let users persist either mode directly from the working-directory prompt, while preserving one-time choices when no preference is configured.
- Apply the preference consistently during startup and in-app resume, honor explicit `--cd` overrides, and reject unsupported or unavailable directory choices with a clear error.

## Testing

- Cover configuration parsing and persistence, prompt behavior, startup and in-app flows, session metadata fallback, and remote workspace constraints.

GitOrigin-RevId: 7bf144c4b8c55bdb868cc8a71caf397c7740451a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7bf144c4b8c55bdb868cc8a71caf397c7740451a branch from cf04d80 to 2895d82 Compare July 18, 2026 03:59
@copyberry
copyberry Bot merged commit 2895d82 into main Jul 18, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7bf144c4b8c55bdb868cc8a71caf397c7740451a branch July 18, 2026 04:00
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants