Skip to content

[Documentation] /history default: docs say 30, code uses 5 #29

Closed

Description

@goichiro-y

Note from reporter
I am new to filing issues on GitHub and am not sure whether the length or structure here is appropriate.
Japanese is my first language; I apologize if any wording is awkward. This issue was drafted with AI assistance.

Summary

While using CursorRemote with Telegram, I noticed that the documented default for /history (30) and the value in code (5) do not match. This note is only to report that inconsistency—not to request a reply or ongoing discussion.

Environment (for reference)

  • CursorRemote version: 0.1.46 (the same mismatch appears present on current main from my reading of the repo)
  • Extension with Telegram enabled; /sync completed
  • Observed by sending /history with no numeric argument in a mapped forum topic

What the documentation describes

With no argument, /history is documented as returning the last 30 messages (or similar), for example:

File Wording
README.md (~L253) default 30
docs/setup-guide.md (~L261) default 30
docs/telegram_prd.md (~L241, §7.3, ~L411) default 30
docs/prd.md (~L766) default 30

README.md (~L247) separately describes /sync as sending the last 5 messages, which reads consistently with a “first sync = 5” rule.

docs/telegram_prd.md §7.3 also distinguishes initial sync (last 5 only) from /history [N] (default 30). If that split is intentional, the code constant below may be an oversight.

What the code does

In src/server/transports/telegram/commands.ts:

  • DEFAULT_HISTORY_COUNT = 5 (~L51)
  • With no valid argument: count = DEFAULT_HISTORY_COUNT → 5 (~L707–708)

In practice, /history without a number behaved like 5 items; /history 30 explicitly requested 30.

Steps I used to observe this

  1. Supergroup with Topics; bot as administrator
  2. /register, then /sync
  3. Topic with more than 5 messages in history: /history vs /history 30

Observation (not a support request)

Docs and implementation may simply need to be aligned one way or the other (default 5 vs 30, and how that relates to /sync’s 5 messages). If unifying the written spec was overlooked, a doc or code tweak might be worthwhile. I do not expect a response; posting this only so the mismatch is on record.

Possible user impact

Anyone who relies on the README and runs /history alone may get fewer messages than documented unless they use /history 30 explicitly.

Thank you for building CursorRemote.
I had been looking for a way to interact with Cursor from my phone, and this project has been very helpful to me.

Activity

  1. added a commit that references this issue on Jul 7, 2026
  2. len5ky commented on Jul 7, 2026

    @len5ky
    Owner

    Docs corrected in v0.1.47 — the /history default is 5, and the docs now say so.

  3. added a commit that references this issue on Nov 4, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions