-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cursor" editor and WSL2 OS not properly parsed from user-agent string #718
Comments
Thanks for reporting this! Given the above heartbeats, the editor is properly recognized as "Cursor" for me... 🤔 Can you send a screenshot that depicts the wrongly detected editor or possibly even an excerpt from your database's Regarding WSL: I'd actually argue resolving the OS to "Linux" is correct, because even though you're running Linux in a WSL 2 VM, it's still a Linux kernel and OS underneath (e.g. you wouldn't want to show "VirtualBox" as the OS when running Linux in a VirtualBox VM). But I'm open to be convinced otherwise. What does WakaTime show in this case? |
Thanks for all the details, this will help me debug the issue a lot better. Last question regarding the heartbeats shown above: have they been generated while coding or as part of a data import from WakaTime? |
I cloned the project for testing and found it's a version-related issue. Using the latest code, the editor displays correctly as Cursor. However, when I switched to the 2.12.2 tag, the editor was incorrectly shown as VSCode. Currently, my server is running Docker 2.12.2. |
Oh, right, my bad! I remembered to have fixed this issue (see b96db4e), but forgot that this change isn't yet included in a release. I'll go about the WSL issue and a few minor other ones in the upcoming days and then push a new release. With the new version, all new heartbeats will have the correct editor set. To fix the editor also for already existing data retroactively, you can run the following query and afterwards do Regenerate Summaries under Settings. update heartbeats set editor = 'Cursor' where editor = 'Vscode' and user_agent like '%cursor%'; |
Describe the bug
Currently, Wakapi is unable to properly detect and display Windows Subsystem for Linux (WSL) as the operating system and Cursor as the editor, while WakaTime supports both. This affects the accuracy of tracking and reporting development activity.
Expected behavior:
Actual behavior:
Sample heartbeat data showing the environment:
System information
The text was updated successfully, but these errors were encountered: