Skip to content

fix: Final robust TrueForge launch and port assignment - #19

Merged
ADITYA-tp01 merged 1 commit into
mainfrom
final-trueforge-fix
Aug 30, 2026
Merged

ADITYA-tp01 merged 1 commit into
mainfrom
final-trueforge-fix

Conversation

@ADITYA-tp01

@ADITYA-tp01 ADITYA-tp01 commented Aug 30, 2026

Copy link
Copy Markdown
Owner

User description

Fixes.


CodeAnt-AI Description

Make TrueForge launch reliably on Windows and use a consistent port

What Changed

  • TrueForge now starts from the correct project directory when launched through the Windows script
  • The service always listens on port 8790
  • Startup no longer stops immediately when an OpenAI API key is missing or still uses the placeholder value

Impact

✅ Fewer TrueForge launch failures
✅ Consistent access at localhost:8790
✅ Startup works without a preconfigured API key

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai

codeant-ai Bot commented Aug 30, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 14ad2fc Aug 30, 2026 · 12:01 12:03

@codeant-ai

codeant-ai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@ADITYA-tp01
ADITYA-tp01 merged commit 3264c20 into main Aug 30, 2026
1 check passed
@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Aug 30, 2026
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix reliable TrueForge WSL launch and port binding

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Launch TrueForge through a repository-relative WSL path without fragile path conversion.
• Bind TrueForge explicitly to port 8790, matching dashboard and startup URLs.
• Allow startup before API-key configuration so credentials can be added in the UI.
Diagram

graph TD
  A["PowerShell start"] -->|opens| B["WSL shell"] -->|runs| C["Launcher script"] -->|port 8790| D["TrueForge UI"]
  E["Optional .env"] -->|loads settings| C
Loading
High-Level Assessment

The repository-root working directory plus a short WSL-relative path is simpler than converting Windows paths or generating temporary scripts. Explicitly setting the documented port and deferring credential entry to the UI directly addresses the launch failures without adding bootstrap complexity.

Files changed (2) +2 / -7

Bug fix (2) +2 / -7
start-trueforge.shMake TrueForge startup independent of API-key setup +1/-5

Make TrueForge startup independent of API-key setup

• Removes the launch-blocking API-key validation so TrueForge can open before credentials are configured. Explicitly binds the service to port 8790 while retaining optional '.env' loading and the existing host binding.

scripts/wsl/start-trueforge.sh

start.ps1Launch the WSL script from the repository root +1/-2

Launch the WSL script from the repository root

• Starts the new PowerShell window with the repository as its working directory, then uses a relative WSL path to invoke the launcher. This avoids fragile Windows-to-WSL path conversion and quoting.

start.ps1

@github-actions

Copy link
Copy Markdown

Failed to generate code suggestions for PR

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can enable the Remediation agent and Qodo fixes findings in a dedicated fix PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread start.ps1
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
👍 | 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant