@wrongstack/cli 0.104.0 → 0.109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1749,7 +1749,7 @@ async function runWebUI(opts) {
1749
1749
  const distDir = path8.resolve(path8.dirname(serverEntry), "..");
1750
1750
  httpServer = createHttpServer({ host, distDir, wsPort });
1751
1751
  const openUrl = `http://${host}:${httpPort}`;
1752
- httpServer.listen(httpPort, host, () => {
1752
+ httpServer?.listen(httpPort, host, () => {
1753
1753
  console.log(
1754
1754
  `
1755
1755
  \u25B8 WebUI ready \u2014 open \x1B[1m${openUrl}\x1B[0m in your browser
@@ -13030,7 +13030,8 @@ async function boot(argv) {
13030
13030
  if (choices.director) flags["director"] = true;
13031
13031
  flags["autonomy"] = choices.autonomy;
13032
13032
  try {
13033
- await persistLaunchChoices(wpaths.globalConfig, choices);
13033
+ const toPersist = flags["webui"] ? { ...choices, mode: lastChoices?.mode ?? config.launch?.mode ?? "tui" } : choices;
13034
+ await persistLaunchChoices(wpaths.globalConfig, toPersist);
13034
13035
  } catch {
13035
13036
  }
13036
13037
  printLaunchHints(renderer, flags, {