Skip to content

feat: add next commands to paged reads and an empty chat cache (#176 on main) - #185

Merged
neoromantic merged 2 commits into
mainfrom
bb/tg-next-176-integrate
Nov 18, 2026
Merged

neoromantic merged 2 commits into
mainfrom
bb/tg-next-176-integrate

Conversation

@neoromantic

Copy link
Copy Markdown
Owner

What and why

Lands #176 (next commands for paged reads and an empty chat cache, point 1 of #160) on the current main. #176 conflicted with #177 and #184; this branch is its head ff3ff26, unchanged, plus a merge of main. Merged with a merge commit, so the original commit and its author stay in history and #176 closes as merged. Refs #160

The merge commit:

  • resolves the conflicts with feat(errors): say whether a retry can work, and what to run #177 in src/utils/output.ts (imports only: success(data, next) and error(..., retryable) both stay), CHANGELOG.md, README.md and docs/cli-commands.md, keeping both texts;
  • adds a unit test that the next page of chats list and contacts list keeps --fresh, the filters and the account.

Behaviour kept from #176 as proposed: the account is carried as typed (no --account follows the active account), and --fresh is carried onto the next page. Error output, codes and retryable from #177/#184 are unchanged; next appears 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 each next[0].command through sh -c.

  • bun run build: dist/tg --version and messages list --help work 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

ertembiyik and others added 2 commits November 18, 2026 08:20
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]>
@neoromantic
neoromantic merged commit 3a16c10 into main Nov 18, 2026
5 checks passed
@neoromantic
neoromantic deleted the bb/tg-next-176-integrate branch November 18, 2026 05:50
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]>
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.

2 participants