ADR icon indicating copy to clipboard operation
ADR copied to clipboard

CursorParser and ClineParser have no Windows path support, silently returning zero telemetry on Windows

Open Rahul-s-007 opened this issue 3 months ago • 31 comments

The top-level README.md claims ADR "captures agent intent, tool use, and execution traces across 7+ AI coding tools on macOS, Linux, and Windows." In practice, two of the Sensor's six parsers don't deliver on that for Windows:

  • CursorParser.__init__ (Sensor/adr_sensor/parsers/cursor_parser.py) only checks a macOS path (Library/Application Support/Cursor/...) and a Linux path (.config/Cursor/...).
  • ClineParser.__init__ (Sensor/adr_sensor/parsers/cline_parser.py) does the same, for Cline's task directory.

Neither has a Windows (%APPDATA%) branch. On a Windows machine, both nonexistent-path checks fail, the parser falls through to the (also nonexistent) Linux path, logs "no logs found," and returns zero entries — a silent blind spot for two of the most commonly Windows-installed tools this product claims to observe. Sensor/README.md's own compatibility table (lines 15-20) is honest about the current "macOS, Linux" only support, so this isn't a doc inconsistency — it's a real, closeable gap.

Verified (two independent sources) real Windows path for Cursor: %APPDATA%\Cursor\User\globalStorage\state.vscdb (C:\Users\<user>\AppData\Roaming\Cursor\User\globalStorage\state.vscdb) — the standard Electron-app-data convention already mirrored by the existing macOS/Linux split. Cline runs as a VS-Code-extension hosted inside Cursor (per the existing paths targeting .../Cursor/User/globalStorage/saoudrizwan.claude-dev/tasks), so its Windows path follows the same confirmed root: %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\tasks.

Confirmed via a full-repo pass that no %APPDATA%/Windows handling exists anywhere else in Sensor/adr_sensor/. The other four parsers don't have this gap: ClaudeParser/CodexParser already use bare Path.home()-relative paths that resolve correctly on Windows with no OS branching needed, and ClaudeDesktopParser/WarpParser target apps with no Windows release to begin with.

I already have a fix scoped: add an %APPDATA%-based Windows branch to both parsers' path-detection logic (preserving macOS-first precedence), plus test coverage for the new OS-detection branch and a compatibility-table update in Sensor/README.md. Opening this first for visibility — PR to follow.

Rahul-s-007 avatar Aug 04 '26 03:08 Rahul-s-007

🔥🧠 这个方向很实用,收藏学习了

montoyabrittany06 avatar Aug 04 '26 17:08 montoyabrittany06

⭐🧪 学到了,感谢维护者持续更新

wellsashley00 avatar Aug 04 '26 20:08 wellsashley00

请问本地跑通有没有常见坑 🔥📌🤝

daviskathy6643 avatar Aug 04 '26 20:08 daviskathy6643

跨平台兼容性测过 Windows 吗 🤝😄

blackwellmiranda8 avatar Aug 05 '26 02:08 blackwellmiranda8

代码生成会不会难 debug ✨🛠️

blackwellmiranda8 avatar Aug 05 '26 03:08 blackwellmiranda8

结构化输出强制 JSON 稳不稳 🤝

rodriguezrussell93 avatar Aug 05 '26 03:08 rodriguezrussell93

密钥管理别写死在仓库里啊 🧠📌🙌

wellsashley00 avatar Aug 05 '26 03:08 wellsashley00

有没有更轻量的替代实现思路 👍🛠️

rodriguezrussell93 avatar Aug 05 '26 03:08 rodriguezrussell93

幂等键你们放在哪一层 👍🙌🛠️

wellsashley00 avatar Aug 05 '26 21:08 wellsashley00

暗色主题适配费劲吗 🔥

harrisonmichael809 avatar Aug 06 '26 06:08 harrisonmichael809

👍📌💡 组件库设计 token 统一了吗

wellsashley00 avatar Aug 06 '26 06:08 wellsashley00

想贡献 PR,从哪块入手合适 😄📌

rodriguezrussell93 avatar Aug 06 '26 10:08 rodriguezrussell93