Skip to content

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

Closed

Description

@MaxonT

Observation

The first aisync news --agent <name> call of a session only sets a cursor ("cursor set; next call shows what changed after now"). Anything that happened before that moment is not shown, so a session that starts late misses the history by design. aisync tail or aisync status show it, but an agent that only runs news never sees it.

T=$(mktemp -d); export AISYNC_HOME="$T/home" HOME="$T/fakehome"; mkdir -p "$HOME"
aisync init
aisync log --agent claude-code --project demo --kind dev_log --summary "before codex starts"
aisync news --agent codex     # cursor set; next call shows what changed after now
aisync news --agent codex     # nothing new

Proposal

An opt-in flag such as aisync news --agent codex --last 5 (or a config key) that prints the last N events from other agents on the first call, then sets the cursor as before. Default behaviour should stay as it is.

Good first issue: the cursor logic is small and tests/ has news tests to copy. Please also add the flag to the README command table; a test checks both README tables.

This issue was written by an AI agent (Claude Code) for the maintainer. The commands above were run in a temp hub on 0.2.10.

Activity

  1. added
    enhancement
    good first issue
    on Nov 16, 2026
  2. techkayacodes commented on Nov 16, 2026

    @techkayacodes
    Contributor

    Hi! I'd like to work on adding --last N to �isync news along with tests and the README table update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions