Repository navigation
feat: add next commands to paged reads and an empty chat cache (#176 on main) - #185
Merged
Merged
Conversation
A success answer can carry next: complete tg command lines, each with a reason, that continue the read. Paged lists (messages list and search, chats list, contacts list, messages wait on one chat) suggest the next page, and a chat search that finds nothing suggests the refresh. Each command is built from the parsed arguments, so it keeps the account and every filter, quoted for a POSIX shell. Existing fields are unchanged; pretty output prints the suggestions on stderr. Refs #160 Co-Authored-By: Claude Fable 5.2 <[email protected]>
Resolve conflicts with #177 (retryable errors): output.ts imports, CHANGELOG, README and cli-commands.md keep both changes. Add a unit test that the next page of chats and contacts keeps --fresh, the filters and the account. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ertembiyik
added a commit
to ertembiyik/telegram-sync-cli
that referenced
this pull request
Nov 18, 2026
No textual conflict. nextChatsPage (from neoromantic#185) takes the declared ChatsListOutput: PaginatedResult is no longer imported here. Co-Authored-By: Claude Fable 5.2 <[email protected]>
ertembiyik
added a commit
to ertembiyik/telegram-sync-cli
that referenced
this pull request
Nov 18, 2026
list.ts, search.ts: --type, --since and --until moved into the shared argument tables neoromantic#185 added, so next carries them; a repeated --type goes into next as one comma list, with tests. CHANGELOG: both sides' entries kept. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Nov 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Lands #176 (
nextcommands for paged reads and an empty chat cache, point 1 of #160) on the currentmain. #176 conflicted with #177 and #184; this branch is its headff3ff26, unchanged, plus a merge ofmain. Merged with a merge commit, so the original commit and its author stay in history and #176 closes as merged. Refs #160The merge commit:
src/utils/output.ts(imports only:success(data, next)anderror(..., retryable)both stay),CHANGELOG.md,README.mdanddocs/cli-commands.md, keeping both texts;chats listandcontacts listkeeps--fresh, the filters and the account.Behaviour kept from #176 as proposed: the account is carried as typed (no
--accountfollows the active account), and--freshis carried onto the next page. Error output, codes andretryablefrom #177/#184 are unchanged;nextappears only on success answers.How I checked it
bun run check: clean.bun run test: 2322 pass, 0 fail (before the extra test).bun run test:e2e: 450 pass, 0 fail, including the feat: add next commands to paged reads and an empty chat cache #176 e2e that runs eachnext[0].commandthroughsh -c.bun run build:dist/tg --versionandmessages list --helpwork without credentials.Not checked against Telegram: no Telegram calls changed.
Tests pass locally and use made-up data only
README, docs and affected demos follow the product content standard
Title follows Conventional Commits
🤖 Generated with Claude Code