Skip to content

Default Last-Event-ID resume to opt-in - #6

Merged
flaviomartins merged 5 commits into
mainfrom
flaviomartins-no-resume-default
Jul 10, 2026
Merged

flaviomartins merged 5 commits into
mainfrom
flaviomartins-no-resume-default

Conversation

@flaviomartins

Copy link
Copy Markdown
Owner

This updates ssecat to match curl/wget-style expectations where resume is not assumed by default.

What changed

  • Changed the default config value to resume=false.
  • Added a new --resume CLI flag so users can explicitly enable Last-Event-ID resume per run.
  • Kept --no-resume as an explicit disable override.
  • Updated README docs to clarify that automatic reconnect is always supported, while Last-Event-ID resume is optional and opt-in by default.
  • Added config tests for both the default (resume=false) and parsing override (resume=true).

Notes for reviewers

The reconnect behavior itself is unchanged. This PR only changes the default for persisted Last-Event-ID resume and the CLI surface to opt in explicitly.

flaviomartins and others added 5 commits July 10, 2026 14:40
Set resume off by default to align with curl/wget expectations, add an explicit --resume flag for opt-in behavior, and document the updated semantics in README.

Add config tests covering the new default and resume override parsing.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Simplify resume controls by keeping only --resume as the CLI override while preserving config-based enablement.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the custom --resume switch with --continue and -c for familiar CLI behavior while keeping config-based resume control.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Accept continue= in .ssecatrc and document it as the primary key to match --continue/-c, while keeping resume= for backward compatibility.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove backward compatibility for resume= in .ssecatrc so only continue= is accepted.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@flaviomartins
flaviomartins merged commit b2ca79d into main Jul 10, 2026
12 checks passed
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