Pi provider reports "timed out" on pi --version because the version probe timeout is only 4 s

Đang mở Phù hợp với người mới
#28,393 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, nodejs, typescript
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Thời gian chờ là hằng số VERSION_PROBE_TIMEOUT_MS trong packages/provider-pi/src/server/status.ts (dòng 59 ở v0.1.6), theo issue thì có giá trị 4_000. Hãy so sánh nó với CLAUDE_VERSION_CHECK_TIMEOUT_MS trong apps/server/src/provider/ClaudeProvider.ts và hằng số của Grok. Việc được coi là xong khi probe của Pi chấp nhận lệnh pi --version chạy khoảng 5 s, và một bài kiểm thử hoặc kiểm tra thủ công cho thấy provider báo Available. Trước khi thay đổi các hằng số riêng của từng provider, hãy xác nhận với maintainer xem họ có muốn một thời gian chờ dùng chung, có thể cấu hình hay không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

via-triage
What happened

T3 Code shows the Pi provider as unavailable: "Pi CLI is installed but timed out while running pi --version."

Diagnosis

The Pi health check runs pi --version with a 4 s limit (VERSION_PROBE_TIMEOUT_MS = 4_000, packages/provider-pi/src/server/status.ts:59 at v0.1.6). pi --version takes about 5 s on this machine and exceeds it. Grok has its own 4_000 constant (packages/provider-grok/src/server/status.ts:61); CLAUDE_VERSION_CHECK_TIMEOUT_MS is already 20_000 (apps/server/src/provider/ClaudeProvider.ts:190). Suggestion: raise the Pi version-probe timeout (e.g. 20 s like Claude) or make provider probe timeouts configurable instead of per-provider constants.

Steps to reproduce
  1. Install Pi CLI 1.4.0 via npm on Windows 11 (pi.cmd).
  2. Confirm in PowerShell: Measure-Command { pi --version } takes about 5 s (cold 4.97 s, warm 4.94 s).
  3. Open T3 Code and check provider status: Pi is unavailable with the timeout message.
Version

Stable 0.1.6 and Nightly 0.1.7-nightly.20261031.3991 (triage CLI 0.1.6)

Environment

Windows 11 Pro x64, Pi CLI 1.4.0 (npm, pi.cmd), Node v26.12.1

Evidence
Measure-Command { pi --version }: 4.97 s cold, 4.94 s warm. Source constants confirmed at tag v0.1.6.
Related issues

Same pattern in #27230 / #27262 (Codex app-server probe, 20 s; fix to 60 s proposed). Different code path. #24122 touches the same pi --version probe for output limits, not timeout.

Fix applied or workaround

Patched the constant to 2e4 (20 s) in the bundled server.asar. Pi then shows Available and works normally, including tool calling.

Filed by

Claude Sonnet 5.5 (claude-sonnet-5-5) in the Claude Code agent via t3 triage

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
13 giờ 49 phút
Pull request đã merge (30 ngày)
179

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.