Skip to content

fix: copy code-server failed on second launch - #105

Open
whn-hjm wants to merge 1 commit into
nightmare-space:mainfrom
whn-hjm:main
Open

fix: copy code-server failed on second launch#105
whn-hjm wants to merge 1 commit into
nightmare-space:mainfrom
whn-hjm:main

Conversation

@whn-hjm

@whn-hjm whn-hjm commented Aug 8, 2026

Copy link
Copy Markdown

Fix two bugs causing '拷贝code-server失败' (copy code-server failed) on subsequent app launches:

  1. Missing await on loadCodeVersion() caused a race condition with permission request and code-server version reading (line 205).

  2. Custom code-server path: targetFile.lengthSync() threw when file didn't exist, and copy() always executed even after skip log due to missing if-else guard (lines 237-249).

Closes #96

Fix two bugs causing '拷贝code-server失败' (copy code-server failed)
on subsequent app launches:

1. Missing await on loadCodeVersion() caused a race condition with
   permission request and code-server version reading (line 205).

2. Custom code-server path: targetFile.lengthSync() threw when file
   didn't exist, and copy() always executed even after skip log due
   to missing if-else guard (lines 237-249).

Closes nightmare-space#96

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

code LFA在启动时遇到问题,“拷贝code-server失败”

1 participant