WilliamKarolDiCioccio / open_local_ui

OpenLocalUI: Native desktop app for Windows, MacOS and Linux. Easily run Large Language Models locally, no complex setups required. Inspired by OpenWebUI's simplicity for LLM use.
MIT License
16 stars 2 forks source link

Unable to change session if current one has no messages #36

Closed WilliamKarolDiCioccio closed 3 weeks ago

WilliamKarolDiCioccio commented 3 weeks ago

If there are no messages in the currently selected sessions it becomes impossible to change to another one due to this check in the setSession() method:

if (_session != null) {
      if (_session!.status == ChatSessionStatus.generating ||
          messageCount == 0) {
        return;
      }
    }