Skip to content

Conversation

@AndreJesusBrito
Copy link

Description

Adds a new option called "condition" that accepts a predicate function.
If it returns true then the session is saved, if not it is not saved.
This gives users flexibility to decide when they want the sessions to be saved or not.

Related Issue(s)

N/A

Screenshots

N/A

PS. I haven't worked with lua that much so feel free to do/suggest improvements.

@AndreJesusBrito AndreJesusBrito force-pushed the conditional-session-save branch from 260ed70 to 55956ea Compare September 7, 2025 16:50
@AndreJesusBrito AndreJesusBrito changed the title feat: add user defined condition before saving session feat(main): add user defined condition before saving session Sep 7, 2025
@winston0410
Copy link

+1. We need a way to selectively save a session, not saving all the time.

@AndreJesusBrito AndreJesusBrito marked this pull request as draft December 27, 2025 21:10
@AndreJesusBrito AndreJesusBrito force-pushed the conditional-session-save branch from 55956ea to d2d5dc3 Compare December 27, 2025 21:13
@github-actions github-actions bot added size/s Small PR (<10 lines changed) size/m Medium PR (<50 lines changed) labels Dec 27, 2025
@AndreJesusBrito AndreJesusBrito force-pushed the conditional-session-save branch from 4d90028 to 6e79776 Compare December 27, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m Medium PR (<50 lines changed) size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants