# fix\(codex\): honor the unit a retry-after delay names · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/bf6a2fa2edaca9c5e1db7d733d8f41e9a70292ec)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: bf6a2fa2edaca9c5e1db7d733d8f41e9a70292ec

Requested commit: bf6a2fa2edaca9c5e1db7d733d8f41e9a70292ec

Commit: bf6a2fa2edaca9c5e1db7d733d8f41e9a70292ec

Tree: 4268746cf62f0b4be34f92381bbc83d93b76887e

Author: Hong Liu

Committer: Hong Liu

## Message

```
fix(codex): honor the unit a retry-after delay names

"retry after N" was always read as seconds, so "retry after 2 minutes"
became a 2 second delay and "retry after 500ms" a 500 second one. The
retry-after value now takes an optional unit, as "try again in" already
did, and a retry-after-ms header is read as milliseconds. A bare value
stays delay-seconds.

```

## Parents

- [a77e1c8f9482ad1524eb2cba59c1aa52a1e49763](https://git.cafe/pingdotgg/t3code/commit/a77e1c8f9482ad1524eb2cba59c1aa52a1e49763?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/bf6a2fa2edaca9c5e1db7d733d8f41e9a70292ec?format=markdown)
