# perf: run provider health checks in background, notify clients on ready · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/6593645c8092696403f39e7d6eeebeec190385dc)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 6593645c8092696403f39e7d6eeebeec190385dc

Requested commit: 6593645c8092696403f39e7d6eeebeec190385dc

Commit: 6593645c8092696403f39e7d6eeebeec190385dc

Tree: 2b228810c69cf22bbc1f43c2c97d88ad9421abd8

Author: Chukwudi Nwobodo

Committer: Julius Marminge

## Message

```
perf: run provider health checks in background, notify clients on ready

The ProviderHealth layer blocked server startup with two sequential CLI
spawns (codex --version + codex login status), each with a 4-second
timeout, delaying startup by up to 8 seconds.

Run health checks in the background via Effect.runPromise so the layer
resolves immediately with a placeholder status. Add an onReady callback
to ProviderHealthShape so wsServer can push the resolved statuses to
connected clients once checks complete, preventing early-connecting
clients from showing "Checking..." indefinitely.

```

## Parents

- [296eb82c312b3c36237b51870b9a87249f5c6d83](https://git.cafe/screen/t3code-personal/commit/296eb82c312b3c36237b51870b9a87249f5c6d83?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/6593645c8092696403f39e7d6eeebeec190385dc?format=markdown)
