-
Notifications
You must be signed in to change notification settings - Fork 446
Open
Description
Code Quality Issue: Hardcoded Path
Severity: HIGH → FIXED ✅
Location: src/main/index.ts:631
Description
Project auto-load contained hardcoded path /Users/kenny/1code that only worked for specific user.
Status
✅ RESOLVED - Changed to use AUTO_LOAD_PROJECT environment variable
Changes Made
- Removed hardcoded path
- Made auto-load conditional on
AUTO_LOAD_PROJECTenv var - Only runs in development mode (
!app.isPackaged) - Updated
.envand.env.examplewith documentation
Code Before
const projectPath = "/Users/kenny/1code" // Hardcoded!Code After
const autoLoadPath = process.env.AUTO_LOAD_PROJECT
if (autoLoadPath && !app.isPackaged) {
// Auto-load logic...
}This issue can be closed as resolved.
Labels: bug, fixed, configuration
Metadata
Metadata
Assignees
Labels
No labels