Skip to content

Regression: httpIdleTimeoutMs no longer respected for self-hosted OpenAI-compatible provider (v0.80.6, worked fine in v0.80.3) #6476

Description

@hoho51

What happened?

After upgrading from v0.80.3 to v0.80.6, requests to my self-hosted model (via vLLM, OpenAI-compatible API) now fail with Error: The operation timed out after only a few minutes, even though httpIdleTimeoutMs is explicitly set to a much larger value in /settings.

Downgrading back to v0.80.3 resolves the issue completely — same model, same settings, same request. This strongly suggests a regression introduced somewhere between v0.80.3 and v0.80.6.

This looks related to a previously fixed issue (#5294 / v0.78.1 changelog: "Fixed HTTP timeout setting not being respected for non-Codex providers, e.g., llama.cpp via OpenAI-compatible API"). It's possible that fix was reverted or broken by a later change.

Environment

  • Pi version: v0.80.6 (regression; not present in v0.80.3)
  • Provider: self-hosted model via vLLM, OpenAI-compatible API
  • /settings → HTTP timeout (httpIdleTimeoutMs): 6000000 (6,000,000 ms)

Steps to reproduce

  1. Configure Pi to use a self-hosted OpenAI-compatible endpoint (vLLM backend)
  2. Set httpIdleTimeoutMs to 6000000 via /settings
  3. Ask the agent to write a test file / generate code that takes the local model several minutes to produce (self-hosted model is slower than cloud APIs)
  4. Wait — after a few minutes, the request fails with Error: The operation timed out, even though the configured idle timeout is far larger than the elapsed time
  5. Reproduced consistently across multiple attempts on v0.80.6
  6. Downgrading to v0.80.3 with identical settings/model/prompt — no timeout, works as expected

Expected behavior

The request should not time out before httpIdleTimeoutMs (6,000,000 ms) elapses, consistent with v0.80.3 behavior.

Version

v0.80.6

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked on

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions