rtk-ai/rtk

bug: "rtk init -g --agent cursor" errors due to expecting $HOME/.claude

已关闭

#1,465 创建于 2026年4月22日

 (4 条评论) (13 个反应) (0 位负责人)Rust (2,914 个派生)batch import
P1-criticalbugeffort-smallgood first issue

仓库指标

星标
 (48,085 个星标)
PR 合并指标
 (平均合并 11天 1小时) (30 天内合并 45 个 PR)

描述

Using the latest version, v0.37.2, on WSL2 (ubuntu), I receive the following error during initial setup:

$ rtk init -g --agent cursor
rtk: Failed to write RTK.md: /home/liam/.claude/RTK.md: Failed to create temp file in /home/liam/.claude: No such file or directory (os error 2) at path "/home/liam/.claude/.tmpznCCwz"

I suspect that --agent cursor still tries to setup Claude and Copilot, but because I don't use either on this device, it errors out. I would expect:

  1. --agent cursor to only install for Cursor.
  2. If claude was used, but the directory didn't exist, create it first, and/or skip over it if the primary agent target isn't claude.

I am able to get around this by manually creating that directory, and re-running, but this still initializes files and pollutes my home directory unnecessarily, which should be avoided.

贡献者指南