Skip to content

enhance(cli): Make --tmp toggle expiration#509

Merged
JeanMertz merged 1 commit intomainfrom
prr78
Apr 4, 2026
Merged

enhance(cli): Make --tmp toggle expiration#509
JeanMertz merged 1 commit intomainfrom
prr78

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

The --tmp flag on conversation edit now toggles when invoked without a value: if an expiration is already set it is removed; if none is set, the conversation is marked to expire immediately (on the next cleanup run).

Previously, --tmp without a value silently set expiration to Duration::ZERO, which was undocumented and didn't allow toggling.

The flag also now accepts now as an alias for immediate expiration alongside standard duration strings like 1h or 30m, handled by the new ExpirationDuration parsing type.

The `--tmp` flag on `conversation edit` now toggles when invoked without
a value: if an expiration is already set it is removed; if none is set,
the conversation is marked to expire immediately (on the next cleanup
run).

Previously, `--tmp` without a value silently set expiration to
`Duration::ZERO`, which was undocumented and didn't allow toggling.

The flag also now accepts `now` as an alias for immediate expiration
alongside standard duration strings like `1h` or `30m`, handled by the
new `ExpirationDuration` parsing type.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 9e6719b into main Apr 4, 2026
13 checks passed
@JeanMertz JeanMertz deleted the prr78 branch April 4, 2026 06:28
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.

1 participant