Commit 94647f1
authored
Fix desktop sidecar failing to start when the auth token begins with a dash (#1169)
The local server auth token is randomBytes(32).toString("base64url"), which
can begin with "-". The packaged app spawned the bundled CLI with the token as
a separate argument ("--auth-token", token), so a leading-dash token was parsed
as an unknown flag: the daemon printed its help and exited, and the desktop
showed a fatal "local Executor server crashed during startup" dialog. It is
persistent (the token is saved) and cross-platform, hitting about 1 in 64 fresh
installs.
Pass the token in the combined "--auth-token=<value>" form so a leading dash is
treated as the value, not a flag.1 parent eb9ed89 commit 94647f1
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
0 commit comments