Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- CLI: respect `HTTPS_PROXY`/`HTTP_PROXY`/`NO_PROXY` env vars for outbound registry requests, with troubleshooting docs (#363) (thanks @kerrypotter).
- CLI: preserve registry base paths when composing API URLs for search/inspect/moderation commands (#486) (thanks @Liknox).
- API tests: lock `Retry-After` behavior to relative-delay semantics for v1 search 429s (#421) (thanks @apoorvdarshan).
- CLI tests: assert 5xx HTTP responses still perform retry attempts before surfacing final error (#457) (thanks @YonghaoZhao722).

## 0.6.1 - 2026-02-13

Expand Down
2 changes: 2 additions & 0 deletions packages/clawdhub/src/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ describe('apiRequest', () => {
})

it('falls back to HTTP status when body is empty', async () => {
mockImmediateTimeouts()
const fetchMock = vi.fn().mockResolvedValue({
ok: false,
status: 500,
Expand All @@ -212,6 +213,7 @@ describe('apiRequest', () => {
await expect(
apiRequest('https://example.com', { method: 'GET', url: 'https://example.com/x' }),
).rejects.toThrow('HTTP 500')
expect(fetchMock).toHaveBeenCalledTimes(3)
vi.unstubAllGlobals()
})

Expand Down