Skip to content

Add history pagination and bounded message lookup - #16

Merged
kongesque merged 3 commits into
mainfrom
feat/history-pagination-lookup
Oct 15, 2026
Merged

kongesque merged 3 commits into
mainfrom
feat/history-pagination-lookup

Conversation

@kongesque

Copy link
Copy Markdown
Owner

History and message actions were limited to the latest 100 messages, and replies did not verify their target's chat. This adds opt-in messages --page --json with chat-bound, versioned cursors preserving exact message IDs and delivered times. Legacy JSON remains an array.

Replies, downloads, reactions, and unsend now share lookup bounded to 10 pages, at most 1,000 returned records, and 30 seconds. Replies verify their target before upload, key registration, or send; unsend retains ownership checks. Empty available history, search-budget exhaustion, malformed pages, and deadlines are distinguished. Mutations remain single-attempt.

The protocol contract was verified against public Chrome extension 3.7.2 source, with provenance recorded in docs/protocol/endpoints/history.md. All four CLI guides and error/testing documentation are updated.

Validation: required race suite, goimports, go vet, staticcheck, native macOS build, affected command help, and CGO-disabled Linux/Windows builds passed. Synthetic regressions cover inclusive/exclusive anchors, IDs above 2^53, cursor/chat validation, older action targets, authentication recovery, cancellation, ownership, and output compatibility. No live LINE account tests were run.

@kongesque
kongesque merged commit 2713edc into main Oct 15, 2026
8 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