Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apps/api/app/services/cli/unified_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
def get_project_root() -> str:
"""Get project root directory using relative path navigation"""
current_file_dir = os.path.dirname(os.path.abspath(__file__))
# unified_manager.py -> cli -> services -> app -> api -> apps -> project-root
# unified_manager.py is in: app/services/cli/
# Navigate: cli -> services -> app -> api -> apps -> project-root
project_root = os.path.join(current_file_dir, "..", "..", "..", "..", "..")
return os.path.abspath(project_root)

Expand Down Expand Up @@ -1026,8 +1027,9 @@ async def _ensure_agent_md(self, project_path: str) -> None:
try:
# Read system prompt from the source file using relative path
current_file_dir = os.path.dirname(os.path.abspath(__file__))
# unified_manager.py -> cli -> services -> app
app_dir = os.path.join(current_file_dir, "..", "..", "..")
# unified_manager.py is in: app/services/cli/
# Navigate: cli -> services -> app
app_dir = os.path.join(current_file_dir, "..", "..")
app_dir = os.path.abspath(app_dir)
system_prompt_path = os.path.join(app_dir, "prompt", "system-prompt.md")

Expand Down