Skip to content

docs: simplify session_settings override wording#3634

Closed
mshsheikh wants to merge 2 commits into
openai:mainfrom
mshsheikh:patch-67
Closed

docs: simplify session_settings override wording#3634
mshsheikh wants to merge 2 commits into
openai:mainfrom
mshsheikh:patch-67

Conversation

@mshsheikh

Copy link
Copy Markdown
Contributor
  • Rephrase the RunConfig.session_settings explanation to make the per-run override behavior easier to understand.

  • This keeps the meaning the same while reducing ambiguity around how default session limits interact with per-run settings.

- Rephrase the `RunConfig.session_settings` explanation to make the per-run override behavior easier to understand.

- This keeps the meaning the same while reducing ambiguity around how default session limits interact with per-run settings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f26bdd7805

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/sessions/index.md Outdated
```

If your session implementation exposes default session settings, `RunConfig.session_settings` overrides any non-`None` values for that run. This is useful for long conversations where you want to cap retrieval size without changing the session's default behavior.
If your session backend has default history limits configured, passing `session_settings` in `RunConfig` overrides them for that specific run. This is useful for long conversations where you want to temporarily cap retrieval size without changing the session's default behavior.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the non-None override caveat

When a session backend has a default limit and the caller passes RunConfig(session_settings=SessionSettings(limit=None)) expecting to retrieve all history, this wording now says the per-run settings override the backend limits. The runtime resolves settings by overlaying only non-None values (SessionSettings.resolve()), so limit=None leaves the backend default limit in place; users following the preceding SessionSettings(limit=None) note may still get capped history unless the caveat is kept.

Useful? React with 👍 / 👎.

- Reword the `RunConfig.session_settings` explanation while keeping the non-`None` override behavior explicit.

- This keeps the docs accurate for cases where `SessionSettings(limit=None)` should not be read as overriding a backend default limit.
@seratch seratch added the wontfix This will not be worked on label Jun 15, 2026
@seratch seratch closed this Jun 15, 2026
@mshsheikh mshsheikh deleted the patch-67 branch June 16, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants