Skip to content

feat(telegram): Cursor Cloud repo agent for linked chats#1072

Draft
ryokun6 wants to merge 2 commits intomainfrom
cursor/telegram-cursor-repo-agent-ab31
Draft

feat(telegram): Cursor Cloud repo agent for linked chats#1072
ryokun6 wants to merge 2 commits intomainfrom
cursor/telegram-cursor-repo-agent-ab31

Conversation

@ryokun6
Copy link
Copy Markdown
Owner

@ryokun6 ryokun6 commented Apr 29, 2026

Adds a telegram-only server tool cursorRepoAgent that launches Cursor Cloud Agents API v1 jobs against allowlisted GitHub repos (default https://github.com/ryokun6/ryos). The webhook passes the linked Telegram botToken/chat/reply_to through tool context so the executor can waitUntil a background task that streams SSE (with polling fallback) and sends status / completion messages back into the same DM.

Deploy config (secrets):

  • CURSOR_API_KEY — required; user or service API key from Cursor Dashboard → Integrations.
  • CURSOR_RYOS_REPO_URLS — optional comma-separated list of GitHub HTTPS repo URLs permitted for this deployment (omit to allow only the public ryOS repo).
  • CURSOR_CLOUD_API_BASE_URL — optional override of https://api.cursor.com.

Tests: bun tests updated/added (test-cursor-cloud-agent.test.ts, test-chat-tools-cursor-repo.test.ts, telegram status/heartbeat). This environment did not run the test runner (no bun/Node in PATH); please run locally: bun test tests/test-cursor-cloud-agent.test.ts tests/test-chat-tools-cursor-repo.test.ts tests/test-telegram-status.test.ts tests/test-telegram-heartbeat.test.ts.

Open in Web Open in Cursor 

cursoragent and others added 2 commits April 29, 2026 19:10
…p updates

- Add cursorRepoAgent to Telegram tool profile (Cloud Agents v1)
- Pass bot token/chat into tool context; stream run status to Telegram via waitUntil
- Document env vars (CURSOR_API_KEY, CURSOR_RYOS_REPO_URLS); default allowlist is public ryOS repo
- Extend tests for status text, heartbeat tools, and executor safety

Co-authored-by: Ryo Lu <me@ryo.lu>
@ryos-deploy
Copy link
Copy Markdown

ryos-deploy Bot commented Apr 29, 2026

The preview deployment for ryos-dev is ready. 🟢

Open Preview | Open Build Logs | Open Application Logs

Last updated at: 2026-04-29 19:14:58 CET

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