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

未关闭 适合新手
#28,393 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
git, nodejs, typescript
领域
cli, devtools

调研方向

超时时间是 packages/provider-pi/src/server/status.ts 中的常量 VERSION_PROBE_TIMEOUT_MS(v0.1.6 的第 59 行),根据 issue 其值为 4_000。请将它与 apps/server/src/provider/ClaudeProvider.ts 中的 CLAUDE_VERSION_CHECK_TIMEOUT_MS 以及 Grok 的常量进行比较。完成的标准是:Pi 探测能容忍约 5 秒的 pi --version 运行,并且通过测试或手动检查显示该提供方报告为 Available。在修改各提供方的常量之前,请与维护者确认他们是否希望使用一个共享的、可配置的超时时间。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
13 小时 49 分钟
30 天内合并 PR
179

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。