gptscript-ai / gptscript

Build AI assistants that interact with your systems
https://gptscript.ai
Apache License 2.0
3.03k stars 270 forks source link

UI - Provide user an indication when token expires instead of making all the data disappear without any notication. #721

Closed sangee2004 closed 2 months ago

sangee2004 commented 2 months ago

gptscript version v0.0.0-dev+160a7334

Steps to reproduce the problem:

  1. Launch UI - DISABLE_CACHE=true GATEWAY_URL=https://gateway-api.gptscript.ai gptscript --ui --disable-cache
  2. UI was functional for me.
  3. Wait for Token to expire
  4. On Token expiry, My Assistants shows no assistants (that i had created previously ) and the Explore page shows no assistants (used to show 11 assistants including 4 of mine). I also see myself as "undefined" in profile. Screenshot 2024-08-06 at 9 25 34 AM

Expected Behavior: User should be notified of token expiry in this case should be forced to login.

tylerslaton commented 2 months ago

This approach is overhauled please give it another look. @sangee2004

sangee2004 commented 2 months ago

This issue is not relevant anymore with the new approach.