tui: fix sync loading indicator to properly show loading state on startup

This commit is contained in:
Dax Raad
2026-04-18 10:37:33 -04:00
parent 882b8e1e75
commit 55315bdffa
2 changed files with 0 additions and 22 deletions

View File

@@ -467,7 +467,6 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
return store.status
},
get ready() {
return true
if (process.env.OPENCODE_FAST_BOOT) return true
return store.status !== "loading"
},

View File

@@ -547,27 +547,6 @@ describe("session-entry-stepper", () => {
})
})
test("records retries on the pending assistant", () => {
const next = run(
[
SessionEvent.Retried.create({
attempt: 1,
error: retryError("rate limited"),
timestamp: time(1),
}),
SessionEvent.Retried.create({
attempt: 2,
error: retryError("provider overloaded"),
timestamp: time(2),
}),
],
active(),
)
expect(retriesOf(next)).toEqual([retry(1, "rate limited", 1), retry(2, "provider overloaded", 2)])
})
})
describe("known reducer gaps", () => {
test("prompt appends immutably when no assistant is pending", () => {
FastCheck.assert(