Commit 0d02025
fix(cortex-tui): auto-redirect to login on session expiration (#226)
When the user's session has expired (remaining hours == 0), automatically
redirect them to the login screen instead of just showing a warning toast
that says 'Run /login to authenticate'.
This provides a better UX by removing the extra step of manually running
/login when the session has already expired.
Co-authored-by: Droid Agent <droid@factory.ai>1 parent cc0b7d5 commit 0d02025
1 file changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
| 344 | + | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
355 | 356 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 357 | + | |
| 358 | + | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
| 363 | + | |
| 364 | + | |
361 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
362 | 376 | | |
363 | 377 | | |
364 | 378 | | |
| |||
0 commit comments