Skip to content

fix: make all fields of Session private - #2285

Merged
bolinfest merged 1 commit into
mainfrom
pr2285
Aug 14, 2025
Merged

bolinfest merged 1 commit into
mainfrom
pr2285

Conversation

@bolinfest

@bolinfest bolinfest commented Aug 14, 2025 •

Copy link
Copy Markdown
Collaborator

As Session needs a bit of work, it will make things easier to move around if we can start by reducing the extent of its public API. This makes all the fields private, though adds three pub(crate) getters.


Stack created with Sapling. Best reviewed with ReviewStack.

@bolinfest
bolinfest merged commit 085f166 into main Aug 14, 2025
@bolinfest
bolinfest deleted the pr2285 branch August 14, 2025 05:53
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2025
user_instructions: Option<String>,
pub(crate) approval_policy: AskForApproval,
approval_policy: AskForApproval,
sandbox_policy: SandboxPolicy,

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.

I think we'll also need a getter for sandbox_policy: usage which is technically in codex.rs right now but have #2272 to refactor

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.

3 participants