Skip to content

feat(news): add --last N flag to show recent events on first call - #40

Merged
MaxonT merged 4 commits into
MaxonT:mainfrom
techkayacodes:feat/news-last-flag
Nov 18, 2026
Merged

MaxonT merged 4 commits into
MaxonT:mainfrom
techkayacodes:feat/news-last-flag

Conversation

@techkayacodes

Copy link
Copy Markdown
Contributor

Added an opt-in --last N (-n N) flag to �isync news so a session starting late can inspect the last N events from other agents on its first call while keeping the default cursor-only behaviour unchanged.

  • �i_sync/hooks.py: added last: int = 0 to
    ews(), returning the last last events from other agents when cur is None and
    ot init_only.
  • �i_sync/cli.py: wired --last / -n into cmd_news with non-negative validation.
  • README.md: updated the
    ews row in the command table.
  • ests/test_hooks.py: added unit and CLI tests for --last and negative value handling.

Fixes #26

MaxonT commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution! I'm considering this PR and reviewing how it fits with the other proposed changes.

@MaxonT
MaxonT merged commit 6fa5f2b into MaxonT:main Nov 18, 2026
6 checks passed
MaxonT added a commit that referenced this pull request Nov 20, 2026
Co-authored-by: MaxonT <173550318+MaxonT@users.noreply.github.com>
Agent: codex
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.

news: optionally show the last N events on a session's first call

2 participants