# openai_subscribed: Log compaction response errors \(\#62540\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ba0e2a94295c99f48f00cdaa2858a29adae6f09d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ba0e2a94295c99f48f00cdaa2858a29adae6f09d

Requested commit: ba0e2a94295c99f48f00cdaa2858a29adae6f09d

Commit: ba0e2a94295c99f48f00cdaa2858a29adae6f09d

Tree: 666f288ca4e8a3a60e2542f19e6c85e714a93b05

Author: Max Brunsfeld

Committer: GitHub

## Message

```
openai_subscribed: Log compaction response errors (#62540)

ChatGPT subscription compaction failures currently flow through the
generic HTTP status conversion before callers can inspect the provider
response. A 404 therefore becomes `ApiEndpointNotFound`, which drops the
response body and leaves logs with only the inferred endpoint-not-found
message.

Log the original `RequestError` at the subscription compaction call site
before returning it unchanged. The log identifies the compact endpoint
and preserves the HTTP status and response body for diagnosis, without
logging credentials, request contents, or response headers. Error
classification, retry behavior, and user-facing presentation remain
unchanged.

Testing:

- `cargo fmt --all --check`
- `cargo nextest run -p openai_subscribed --lib`

Release Notes:

- N/A

---------

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
```

## Parents

- [ff9f114cd39692450ef7646db1198f54417531b8](https://git.cafe/gitcafe/zed/commit/ff9f114cd39692450ef7646db1198f54417531b8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ba0e2a94295c99f48f00cdaa2858a29adae6f09d?format=markdown)
