fix: prioritize session list loading when resuming with -c (#5816)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
ja
2025-12-20 12:39:26 -05:00
committed by GitHub
parent 2f6d15a51e
commit 34eb03f5b8
2 changed files with 18 additions and 10 deletions

View File

@@ -229,7 +229,8 @@ function App() {
let continued = false
createEffect(() => {
if (continued || sync.status !== "complete" || !args.continue) return
// When using -c, session list is loaded in blocking phase, so we can navigate at "partial"
if (continued || sync.status === "loading" || !args.continue) return
const match = sync.data.session
.toSorted((a, b) => b.time.updated - a.time.updated)
.find((x) => x.parentID === undefined)?.id