mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
1.1 KiB
1.1 KiB
Task 01: Dynamic Mount-Add and Mount-Remove Commands
Goal
Implement the /mount-add and /mount-remove slash commands in the TUI, supporting two modes:
- Inline DSL: e.g.
/mount-add host=/path/to/host container=/path/in/agent mode=rw - Interactive dialog: if the user just types
/mount-addor/mount-removewithout args, pop up a prompt to fill inhost,container, and optionalmodefields.
These commands should:
- Create or remove symlinks (or real directories) under the current working directory.
- Update the in-memory
SandboxPolicyto grant or revoke read/write permission for the host path. - Emit confirmation or error messages into the TUI log pane.
Acceptance Criteria
- Users can type
/mount-add host=... container=... mode=...and the mount is created immediately. - Users can type
/mount-addalone to open a small TUI form prompting for the three fields. - Symmetrically for
/mount-removeby container path. - The
sandbox_policyis updated so subsequent shell commands can read/write the newly mounted folder.
Notes
- This builds on the static
[[sandbox.mounts]]support introduced earlier.