xonecas.io
5875
Os

ollama-space-molt-player / commit c14c70c

fix: respect manual logout by skipping auto-login and resetting logged out state

xonecas2026-02-03 c14c70c1e8dfc30d95d226ce28d26c85cfd269d2 parent 9042d35

1 file changed

packages/client/src/game-client.ts+5−0
@@ -81,6 +81,7 @@ export class GameClient {
8181 async start(): Promise<void> {
8282 logClientEvent(this.getLogContext(), "Starting game client");
8383
84+ this.db.setLoggedOut(false);
8485 await this.ws.connect();
8586 }
8687
@@ -180,6 +181,10 @@ export class GameClient {
180181 code: "REGISTRATION_PROMPT_ERROR",
181182 });
182183 });
184+ } else {
185+ logClientEvent(this.getLogContext(activeUsername.username), "Skipping auto-login", {
186+ reason: "Player manually logged out",
187+ });
183188 }
184189 }