Skip to content

Rename Cursor repo agent tool to cursorCloudAgent; add listCursorCloudAgentRuns#1095

Draft
ryokun6 wants to merge 1 commit intomainfrom
cursor/cursor-cloud-agent-tools-rename-9108
Draft

Rename Cursor repo agent tool to cursorCloudAgent; add listCursorCloudAgentRuns#1095
ryokun6 wants to merge 1 commit intomainfrom
cursor/cursor-cloud-agent-tools-rename-9108

Conversation

@ryokun6
Copy link
Copy Markdown
Owner

@ryokun6 ryokun6 commented May 2, 2026

This PR renames the primary Cursor Cloud coding-agent tool from cursorRyOsRepoAgent to cursorCloudAgent, adds listCursorCloudAgentRuns for recent-run metadata from Redis, and keeps the old tool name as a backward-compatible shim that runs the same execute path.

Backend

  • api/chat/tools/cursor-repo-agent.ts: new primary names (cursorCloudAgentSchema, executeCursorCloudAgent, CURSOR_CLOUD_AGENT_DESCRIPTION, etc.), shared listCursorSdkRunsFromRedis, and executeListCursorCloudAgentRuns returning stable runId, status, timestamps, prompt/summary previews, prUrl, nextRunId / follow-up fields, and a relative pollUrl for /api/ai/cursor-run-status.
  • api/_utils/ryo-conversation.ts: registers cursorCloudAgent, listCursorCloudAgentRuns, and legacy cursorRyOsRepoAgent; system prompt references the new names.
  • api/admin.ts: delegates run listing to the shared Redis lister (adds nextRunId on admin rows).
  • api/_utils/telegram-status.ts: status text for both tool names.

Frontend

  • Chat: useAiChat server-side tool handling and SDK error recovery include cursorCloudAgent and listCursorCloudAgentRuns.
  • ToolInvocationMessage: cards for async runs accept both agent tool names; list-runs shows a short summary line.
  • i18n under apps.chats.toolCalls.cursorCloudAgent plus listCursorCloudAgentRuns; legacy cursorRyOsRepoAgent keys retained for old streams.
  • formatToolName overrides for readable labels.

Tests

  • tests/test-cursor-repo-agent-tool.test.ts: lister + executeListCursorCloudAgentRuns coverage.

Verification

  • bun test tests/test-cursor-repo-agent-tool.test.ts
  • bun run build

Follow-ups

  • Non-English listCursorCloudAgentRuns strings are English placeholders; translate when convenient.
  • Optionally drop the cursorRyOsRepoAgent shim after confirming no external automations depend on it.
Open in Web Open in Cursor 

- Primary tool name is cursorCloudAgent; cursorRyOsRepoAgent remains as shim
- Add listCursorCloudAgentRuns using shared Redis meta scan (listCursorSdkRunsFromRedis)
- Wire tools in ryo-conversation; refactor admin to reuse lister; update UI/i18n/tests

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

ryos-deploy Bot commented May 2, 2026

The preview deployment for ryos-dev is ready. 🟢

Open Preview | Open Build Logs | Open Application Logs

Last updated at: 2026-05-02 09:01:38 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