فهرست منبع

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

Dax Raad 1 روز پیش
والد
کامیت
55315bdffa

+ 0 - 1
packages/opencode/src/cli/cmd/tui/context/sync.tsx

@@ -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"
       },

+ 0 - 21
packages/opencode/test/session/session-entry-stepper.test.ts

@@ -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(