You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(desktop): pin the Host port and stop reporting non-updatable builds as errors
Two defects reported from the packaged app.
The Host was started with --port 0, so the window loaded a different
http://127.0.0.1:<port> origin on every launch. localStorage is keyed by
origin, so the web UI's persisted state was discarded each time: the
first-run onboarding dialog reappeared, and theme, colour scheme, UI font
size, permission mode, thinking level, plan mode, starred models, unread
state and the active workspace all reset. Packaged builds now use port
24827 and development uses 24828, with a validated PYTHINKER_DESKTOP_PORT
override.
There is deliberately no fallback port. A fallback would reintroduce the
same silent data loss on exactly the machines most likely to hit a
collision, so a bind failure now shows a dialog naming the port and the
override, offering Retry or Quit.
A locally packed build (electron-builder --dir) sets isPackaged but ships
no app-update.yml, so the first update check threw ENOENT and Settings
showed a red error. The updater now checks for that file first and reports
the calm 'disabled' state instead.
message: `${APP_NAME} cannot use port ${String(port)}. It needs this fixed port so settings persist between launches. Free the port, or set PYTHINKER_DESKTOP_PORT to an unused port.`,
0 commit comments