Skip to content

Document session homes and how to deny a tool call - #6387

Merged
markstuart-oai merged 1 commit into
v1-alphafrom
docs/session-isolation-and-tool-denial
Dec 3, 2026
Merged

markstuart-oai merged 1 commit into
v1-alphafrom
docs/session-isolation-and-tool-denial

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Summary

This pull request explains how to run concurrent sessions without changing CODEX_HOME. Each session gets a temporary home. Credentials and the API endpoint remain process-wide, and selecting a command sandbox leaves Python approval handlers and application-launched stdio MCP servers on the worker.

It also shows how to deny one call with needs_approval=True and an approval handler that returns False. The development-branch example distinguishes denial from a transform exception, which stops the turn. The Python changes only update docstrings.

Test plan

  • Built the combined site with make build-docs using the pinned v0 source and checked the rendered v1 text and links.
  • Ran the README example against a local Responses fixture. The denied call never reached the function, the approved call used normalized arguments, and the turn continued.
  • Checked the Python syntax tree for executable changes, ran Ruff, and reviewed the guidance against the implementation and the latest alpha release.

Issue number

None.

Checks

  • Verified the existing example and built the docs.
  • Completed independent review of the final diff.
  • Full SDK verification script (not required for documentation-only changes).

@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners December 3, 2026 00:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T00:29:51.711144Z 7c89106 PR opened
🔒 Security Review ✅ Completed 2026-12-03T00:30:59.237540Z 7c89106 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No actionable findings. Checked session-home isolation and process-wide credential/endpoint guidance against native configuration, worker placement of callbacks/MCP servers, and single-call denial versus transform exceptions against dispatch behavior. Changes are documentation/docstrings only; independent static review agreed.

Hosted CI has 14 successful, 2 skipped and 6 running checks in the latest snapshot. No candidate code or tests were executed locally.

@markstuart-oai
markstuart-oai merged commit 768b38a into v1-alpha Dec 3, 2026
24 checks passed
@markstuart-oai
markstuart-oai deleted the docs/session-isolation-and-tool-denial branch December 3, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants