Skip to content

Commit 55315bd

Browse files
committed
tui: fix sync loading indicator to properly show loading state on startup
1 parent 882b8e1 commit 55315bd

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

packages/opencode/src/cli/cmd/tui/context/sync.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
467467
return store.status
468468
},
469469
get ready() {
470-
return true
471470
if (process.env.OPENCODE_FAST_BOOT) return true
472471
return store.status !== "loading"
473472
},

packages/opencode/test/session/session-entry-stepper.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -547,27 +547,6 @@ describe("session-entry-stepper", () => {
547547
})
548548
})
549549

550-
test("records retries on the pending assistant", () => {
551-
const next = run(
552-
[
553-
SessionEvent.Retried.create({
554-
attempt: 1,
555-
error: retryError("rate limited"),
556-
timestamp: time(1),
557-
}),
558-
SessionEvent.Retried.create({
559-
attempt: 2,
560-
error: retryError("provider overloaded"),
561-
timestamp: time(2),
562-
}),
563-
],
564-
active(),
565-
)
566-
567-
expect(retriesOf(next)).toEqual([retry(1, "rate limited", 1), retry(2, "provider overloaded", 2)])
568-
})
569-
})
570-
571550
describe("known reducer gaps", () => {
572551
test("prompt appends immutably when no assistant is pending", () => {
573552
FastCheck.assert(

0 commit comments

Comments
 (0)