tui: fix sync loading indicator to properly show loading state on startup
This commit is contained in:
parent
882b8e1e75
commit
55315bdffa
2 changed files with 0 additions and 22 deletions
|
|
@ -467,7 +467,6 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
||||||
return store.status
|
return store.status
|
||||||
},
|
},
|
||||||
get ready() {
|
get ready() {
|
||||||
return true
|
|
||||||
if (process.env.OPENCODE_FAST_BOOT) return true
|
if (process.env.OPENCODE_FAST_BOOT) return true
|
||||||
return store.status !== "loading"
|
return store.status !== "loading"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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", () => {
|
describe("known reducer gaps", () => {
|
||||||
test("prompt appends immutably when no assistant is pending", () => {
|
test("prompt appends immutably when no assistant is pending", () => {
|
||||||
FastCheck.assert(
|
FastCheck.assert(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue