Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 1 addition & 5 deletions scripts/wsl/start-trueforge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ fi

export OPENAI_BASE_URL="${OPENAI_BASE_URL:-https://integrate.api.nvidia.com/v1}"

if [ -z "${OPENAI_API_KEY:-}" ] || [ "$OPENAI_API_KEY" = "your-openai-api-key-here" ]; then
echo "start-trueforge.sh: OPENAI_API_KEY is not set. Add it to $REPO_DIR/.env" >&2
exit 1
fi

if [ -d "$HOME/.local/node/bin" ]; then
export PATH="$HOME/.local/node/bin:$PATH"
fi

cd "$HOME"
export HOST=0.0.0.0
export PORT=8790
exec npx -y @truefoundry/trueforge
3 changes: 1 addition & 2 deletions start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ if ($tfInstalled -match "yes") {

# Step 7: Start TrueForge
Write-Host "[7/7] Starting TrueForge in WSL..." -ForegroundColor Yellow
$wslPath = (wsl -e wslpath -a -u "$PSScriptRoot/scripts/wsl").Trim()
Start-Process powershell -ArgumentList "-NoExit", "-Command", "wsl -- bash -c 'cd `"$wslPath`" && bash start-trueforge.sh'"
Start-Process powershell -WorkingDirectory "$PSScriptRoot" -ArgumentList "-NoExit", "-Command", "wsl -- bash -c 'cd scripts/wsl && bash start-trueforge.sh'"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Steps 5 and 6 install TrueForge in Ubuntu, but this command uses the default WSL distribution, so startup fails when another distribution is configured as default. [api mismatch]

Assessment: 🟠 Major · 🔁 Occurrence: Sometimes

Use CodeAnt Skill Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** start.ps1
**Line:** 82:82
**Comment:**
	*Api Mismatch: Steps 5 and 6 install TrueForge in Ubuntu, but this command uses the default WSL distribution, so startup fails when another distribution is configured as default.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Write-Host " TrueForge starting on http://localhost:8790" -ForegroundColor Green

# Done
Expand Down