Windows.
I have placed my project in some path in another drive than C.
Embody uses some logic where it compares path length to user home dir with path len of current directory, but doesn't ever check that current directory is actually a subdirectory of user home directory.
If that isn't the case, that logic doesn't make sense.
For me, that leads to the git repository not being found in subsequent runs after the first.
(In the first run I can pick the path manually, but in subsequent runs it doesn't remember it and tries to search and fails, then duplicates the configuration, and MCP server doesn't even connect anymore.)
|
home_dir = Path.home() |
|
for parent_dir in [project_dir] + list(project_dir.parents): |
|
if parent_dir == home_dir or len(parent_dir.parts) <= len(home_dir.parts): |
NB: I'd actually like for my TouchDesigner project, its AGENTS.md file, skills, rules etc to live in a sub directory of my actual git repository (I can then select my git_root/touchdesigner folder as my workspace root in Cursor), because my git repository contains more things than this and I need general AGENTS.md directives for it as well.
How can I achieve that?
Windows.
I have placed my project in some path in another drive than C.
Embody uses some logic where it compares path length to user home dir with path len of current directory, but doesn't ever check that current directory is actually a subdirectory of user home directory.
If that isn't the case, that logic doesn't make sense.
For me, that leads to the git repository not being found in subsequent runs after the first.
(In the first run I can pick the path manually, but in subsequent runs it doesn't remember it and tries to search and fails, then duplicates the configuration, and MCP server doesn't even connect anymore.)
Embody/dev/embody/Embody/EmbodyExt.py
Lines 654 to 656 in 965a138
NB: I'd actually like for my TouchDesigner project, its AGENTS.md file, skills, rules etc to live in a sub directory of my actual git repository (I can then select my git_root/touchdesigner folder as my workspace root in Cursor), because my git repository contains more things than this and I need general AGENTS.md directives for it as well.
How can I achieve that?