Skip to content

Show and hide FMSG-008 edits in list, sent, get, get-data and watch - #19

Merged
markmnl merged 1 commit into
mainfrom
edit-display
Nov 11, 2026
Merged

markmnl merged 1 commit into
mainfrom
edit-display

Conversation

@markmnl

@markmnl markmnl commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Follow-up to #18: the CLI could send edits but did not understand them when reading.

What changes

  • list / sent: edit messages are left out (the server already applies each one to the message it edits). Edited messages are marked (edited). --all shows the edit messages, marked (edit of <id>). This applies to --json output too.
  • Negative indices (fmsg get -1): edit messages are not counted, so -1 is the newest message list shows rather than possibly an edit message.
  • get: prints Edited: <time> (edit message <id>) and the edited size; says so when an edit could not be applied and the original is shown. An edit message itself prints Edit of: <id> in place of PID:.
  • get-data --original: downloads the data as first sent (?original=true).
  • watch: the edit event is documented and accepted by --events; a revert prints (reverted). It already passed through as an unknown type.
  • edit and edited are now on Message and MessageListItem, so --json carries them.

Behaviour to be aware of

  • Edit messages are filtered after the server pages, so list --limit 20 can print fewer than 20 rows.
  • Resolving a negative index now fetches the inbox 100 at a time instead of one row at an offset.
  • Reactions are still listed as ordinary messages; this PR only covers edits.

Testing

go test ./... passes, with new tests for the list filter, index resolution, row marking, field decoding and the original query. Not run against a live host.

🤖 Generated with Claude Code

list and sent leave out edit messages unless --all and mark edited
messages; negative message indices no longer count edit messages; get
prints an Edited line and the edited size; get-data --original downloads
the data as first sent; watch documents the edit event.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@markmnl
markmnl enabled auto-merge (squash) November 11, 2026 14:58
@markmnl
markmnl disabled auto-merge November 11, 2026 15:06
@markmnl
markmnl merged commit bd3191d into main Nov 11, 2026
1 check passed
@markmnl
markmnl deleted the edit-display branch November 11, 2026 15:06
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