[feat] harness: Add Cursor Agent support
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 28/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start by reading the existing runtime adapter boundary, conversation storage, execution directory, command transport, skills, and trace presentation. Evaluate Cursor ACP over stdio against those integration points, then validate session recovery, cancellation, image input, and reasoning controls with the documented Cursor CLI. Done means meeting the listed acceptance criteria, including real command results, restart recovery, localization, and implementation PR evidence.
由索引模型根據 Issue 內容生成。
描述
Parent roadmap #261. Relates to #33.
Goal and scope
Let users select Cursor as an Agent runtime in OpenDirector, use their Cursor account and models, and create or edit project content through the shared business commands.
User flow and rules
- Detect Cursor Agent CLI and provide installation or authentication guidance when unavailable. Reuse Cursor authentication.
- Offer model selection and preserve supported reasoning settings per conversation. Determine available controls from the supported CLI and model.
- Stream replies and tool activity into the conversation. Persist native session identity and resume with incremental input.
- Keep a consistent execution directory across turns and isolate conversations and projects, including after application restart.
- Expose OpenDirector CLI commands and skills through the existing discovery mechanisms. Apply the same revisions, locks, validation, and receipts as other runtimes.
- Pass supported attachments and project references to Cursor. Report unsupported inputs explicitly.
- Stop the local runtime operation and report its actual outcome. Already accepted generation jobs retain their own cancellation and recovery semantics.
- Provide English and Chinese setup, status, and error messages.
Feasibility and integration
Cursor documents an ACP server over stdio for custom clients. The inspected CLI, version 2026.03.30-a5d3e17, exposes agent acp, headless stream-JSON output, partial text output, model selection, and explicit session resume. These capabilities provide an integration starting point. Real OpenDirector tool execution, session recovery, cancellation, image input, and reasoning controls still require validation.
Evaluate ACP first against the existing runtime adapter boundary. Reuse conversation storage, execution directories, command transport, skills, and trace presentation. Map Cursor events to shared reply and tool states and retain raw events for diagnosis. Scope credentials and permissions to the runtime invocation.
Acceptance criteria
- Select Cursor and an available model, then complete a streamed conversation. Missing CLI, authentication failure, and unsupported versions produce actionable messages.
- Ask Cursor to create a text node through OpenDirector CLI. Verify its stored content, object revision, and command receipt.
- Edit the node through the UI, then ask Cursor to read and update it in the same conversation. Verify that the latest user changes are preserved.
- Resume after application restart and verify context retention, a consistent execution directory, and isolation between conversations and projects.
- Stop a running turn and continue without orphan processes, duplicate replies, or automatic resubmission of accepted work.
- Verify tool events and traces against actual command results, using the same status and color conventions as other runtimes.
- Verify supported image inputs with a real multimodal request and preserve selected model and supported reasoning settings.
- Check English and Chinese setup and failure flows. Include CLI version, reproducible checks, actual project results, and UI screenshots in the implementation PR.
References
- 主要語言
- TypeScript
- 星號
- 119
- 分支
- 16
- 平均合併
- 16 小時 13 分鐘
- 30 天內合併 PR
- 195
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ThinkFlowLab/OpenDirector 的其他 Issue
-
area:provider
難度 2/5 1-3 小時 新手友好度 78/100
ThinkFlowLab/OpenDirector#477 · 1 則留言 ·
維護者通常 1 天內回覆
-
area:ci
難度 2/5 1-3 小時 新手友好度 76/100
ThinkFlowLab/OpenDirector#411 ·
維護者通常 1 天內回覆
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉area:agent
難度 2/5 1-3 小時 新手友好度 88/100
ThinkFlowLab/OpenDirector#348 ·
維護者通常 1 天內回覆
-
area:provider
難度 2/5 1-3 小時 新手友好度 72/100
ThinkFlowLab/OpenDirector#311 ·
維護者通常 1 天內回覆
-
area:desktop area:install help wanted
難度 4/5 3-5 天 新手友好度 25/100
ThinkFlowLab/OpenDirector#475 ·
維護者通常 1 天內回覆
查看 ThinkFlowLab/OpenDirector 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verification可能已有人在做 @roboclaw-bot 今天認領。 未關閉clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難度 1/5 1 小時以內 新手友好度 78/100
openclaw/openclaw#204323 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
virtue-initiative/virtue-initiative#953 ·
維護者通常 1 天內回覆
-
needs-area-label
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
fumicode/bublys-org#261 ·
維護者通常 12 天內回覆