Skip to content

fix(workflows): honor Pi effective HTTP idle timeout for child progress watchdog #425

Description

@seekskyworld

Problem

Workflow child sessions currently derive MODEL_PROGRESS_TIMEOUT_MS from the raw optional httpIdleTimeoutMs fields in project/global settings. When the user has no explicit override, those fields are absent even though Pi's effective setting is its 300-second default. OpenPI therefore applies an undocumented 45-second provider-progress watchdog to every child, which can abort slow but healthy provider turns before Pi's own transport timeout.

This is a focused reliability slice of #424. It does not change tool execution, provider protocol support, or cancellation semantics.

Evidence

  • Pi 0.85.1 exposes SettingsManager.getHttpIdleTimeoutMs(), returning the effective default of 300000 ms.
  • extensions/workflows/runner.ts currently reads getProjectSettings()/getGlobalSettings() directly and falls back to 45000 ms when both raw fields are absent.
  • The existing watchdog remains useful as a bounded child guard, so an explicit Pi timeout of 0 will retain the OpenPI minimum rather than creating an unbounded child.

Acceptance

  • Resolve the watchdog default from Pi's effective HTTP idle timeout API.
  • Preserve the 45-second minimum for effective values below that floor, including explicit 0 (disabled transport timeout).
  • Preserve test-only overrides and existing abort/cleanup behavior.
  • Add deterministic regression coverage for the effective default, wider values, floor values, and explicit zero.
  • Update the user-facing timeout contract and link this issue to fix: make child tool, workspace and provider execution reliable #424.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions