Repository navigation
Description
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 currentmainfrom my reading of the repo) - Extension with Telegram enabled;
/synccompleted - Observed by sending
/historywith 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
- Supergroup with Topics; bot as administrator
/register, then/sync- Topic with more than 5 messages in history:
/historyvs/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
v0.1.47
len5ky commentedon Jul 7, 2026
Docs corrected in v0.1.47 — the /history default is 5, and the docs now say so.
v0.1.47