fabro/lib/crates/fabro-sandbox
Bryan Helmkamp 88216313bf
perf(sandbox): skip throwaway reqwest::Client in Daytona probe
Two follow-ups that were still costing ~1s per credential probe:

- Bumped the daytona-sdk-rust pin to fa4870f, which deletes a dead
  underscore-prefixed _http_client field on Client. The field was
  unused but new_with_config built a fresh reqwest::Client for it on
  every call, paying the macOS proxy-discovery tax even with our
  injection seam in place.

- build_api_keys_configuration was using Configuration::new() and then
  overwriting cfg.client with our injected client. The Default impl
  generated by openapi-generator builds a reqwest::Client::new() for
  the client field eagerly, which we then threw away — another
  ~470ms hit per probe. Construct the Configuration as a struct
  literal so the injected client is the only one we ever build.

Drops the three credential-probe tests from ~700ms to ~10ms.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 12:48:44 -04:00
..
src perf(sandbox): skip throwaway reqwest::Client in Daytona probe 2026-05-04 12:48:44 -04:00
tests test(sandbox): move Docker streaming check out of unit tests 2026-05-01 08:31:31 -04:00
Cargo.toml perf(sandbox): inject http client into Daytona credential probe 2026-05-04 12:39:46 -04:00