Skip to content

Commit 385b3cf

Browse files
committed
test(opencode): keep capacity title coverage at shared boundary
1 parent e98ecf9 commit 385b3cf

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

‎apps/mobile/src/features/threads/UsageLimitRecoveryCard.test.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ describe("UsageLimitRecoveryCard", () => {
8686
),
8787
);
8888

89-
expect(container.textContent).toContain("Provider at capacity");
9089
expect(container.textContent).toContain(message);
9190
expect(
9291
[...container.querySelectorAll("button")].find(

‎apps/web/src/components/chat/UsageLimitRecoveryBanner.test.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe("usageLimitRecoveryBannerItem", () => {
4848
onChange: async () => {},
4949
});
5050

51-
expect(item.title).toBe("Provider at capacity");
5251
expect(item.description).toBe(message);
5352
expect(item.actions).not.toBeNull();
5453
});

‎packages/provider-core/src/server/failure.test.ts‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ it("does not serialize arbitrary provider causes", () => {
175175
});
176176
});
177177

178-
it("uses capacity wording for OpenCode admission refusals and keeps recovered retry titles", () => {
178+
it("preserves OpenCode admission-refusal data and recovered retry titles", () => {
179179
const driver = ProviderDriverKind.make("opencode");
180180
const threadId = ThreadId.make("thread:provider-capacity-title");
181181
const runId = RunId.make("run:provider-capacity-title");
@@ -204,7 +204,6 @@ it("uses capacity wording for OpenCode admission refusals and keeps recovered re
204204
} as const;
205205

206206
const failed = makeProviderFailureTurnItem({ ...base, occurredAt });
207-
assert.equal(failed.title, "Provider at capacity");
208207
assert.deepEqual(failed.failure, {
209208
class: "usage_limit",
210209
code: "provider.rate-limit",
@@ -213,14 +212,6 @@ it("uses capacity wording for OpenCode admission refusals and keeps recovered re
213212
resetAt: "2026-10-29T00:00:30.000Z",
214213
});
215214

216-
const failedRetry = makeProviderRetryTurnItem({
217-
...base,
218-
status: "failed",
219-
startedAt: occurredAt,
220-
updatedAt: occurredAt,
221-
});
222-
assert.equal(failedRetry.title, "Provider at capacity");
223-
224215
const completedRetry = makeProviderRetryTurnItem({
225216
...base,
226217
status: "completed",

0 commit comments

Comments
 (0)