Skip to content

Conversation

@danielquintas8
Copy link

feat: Add session_limit parameter to control conversation history retrieval from sessions and include new test.

…etrieval from sessions and include new test.
@danielquintas8 danielquintas8 marked this pull request as draft December 16, 2025 22:38
@danielquintas8 danielquintas8 marked this pull request as ready for review December 16, 2025 22:45
@seratch seratch added this to the 0.6.x milestone Dec 17, 2025
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

Thanks for sending this pull request! Adding the limit option is reasonable, but we'd like to make the new option to be open to future enhancement. So can you create new SessionSettings class (in the same way with ModelSettings) and move the liimt parameter as the first and only property in it?

@seratch seratch changed the title Session limit parameter on Runner Add session customization options to Runner options Dec 17, 2025
@seratch seratch changed the title Add session customization options to Runner options Add session customization params to Runner options Dec 17, 2025
@seratch seratch marked this pull request as draft December 17, 2025 08:23
@danielquintas8 danielquintas8 marked this pull request as ready for review December 17, 2025 20:47
@danielquintas8
Copy link
Author

danielquintas8 commented Dec 17, 2025

Thanks for sending this pull request! Adding the limit option is reasonable, but we'd like to make the new option to be open to future enhancement. So can you create new SessionSettings class (in the same way with ModelSettings) and move the limit parameter as the first and only property in it?

Thanks for the feedback! I've refactored the implementation, following the same pattern as ModelSettings.

Changes made:

  • Created SessionSettings dataclass with limit as the first property
  • Added session_settings parameter to all session constructors and from_url/ from_address method
  • Integrated SessionSettings into RunConfig for runtime overrides
  • Added resolve() method for merging settings (base + override)
  • Updated all 7 session implementations consistently

I believe this is extensible for future properties. For example, I'd like to add branch_id support for conversation branching in AdvancedSQLiteSession (and a potential AdvancedSQLAlchemySession). If you're open to it, I can also implement it since I need it for my use case anyway.

Let me know if it needs any adjustments

@seratch seratch marked this pull request as draft January 20, 2026 22:19
@seratch seratch changed the title Add session customization params to Runner options Add session customization params Jan 20, 2026
@seratch
Copy link
Member

seratch commented Jan 20, 2026

Can you also resolve the conflicts?

@seratch seratch modified the milestones: 0.7.x, 0.8.x Jan 22, 2026
@seratch seratch marked this pull request as ready for review January 22, 2026 22:23
@seratch seratch modified the milestones: 0.8.x, 0.7.x Jan 22, 2026
@seratch seratch modified the milestones: 0.7.x, 0.8.x Jan 22, 2026
@seratch
Copy link
Member

seratch commented Jan 22, 2026

I haven't checked what's wrong here, but the tests are still failing

@seratch seratch marked this pull request as draft January 22, 2026 22:28
Copy link

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

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: 1e590fcb5d

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielquintas8 danielquintas8 marked this pull request as ready for review January 23, 2026 00:02
@danielquintas8
Copy link
Author

I haven't checked what's wrong here, but the tests are still failing

I forget to make it into Draft as I was planning to validate everything afterwards. It should work now

Copy link

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

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: decd19f31d

ℹ️ 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".

@seratch seratch marked this pull request as draft January 23, 2026 00:13
@danielquintas8 danielquintas8 marked this pull request as ready for review January 23, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants