Pi provider reports "timed out" on pi --version because the version probe timeout is only 4 s
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 62/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- git, nodejs, typescript
调研方向
超时时间是 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 内容生成。
描述
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
- Install Pi CLI 1.4.0 via npm on Windows 11 (pi.cmd).
- Confirm in PowerShell: Measure-Command { pi --version } takes about 5 s (cold 4.97 s, warm 4.94 s).
- 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
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 62/100
维护者通常 1 天内回复
-
via-triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
[Bug]: Dragging a sidebar thread from the lower part of the list auto-scrolls the sidebar to the bottom可能已有人在做 @juliusmarminge 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pingdotgg/t3code#27146 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
🐛 bug
难度 2/5 1-3 小时 新手友好度 68/100
LibreChat-AI/LibreChat#17733 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
TypeStrong/typedoc#3150 ·
-
accessibility bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
Normalize image-source MIME types before SVG dispatch可能已有人在做 @HarsH-1877 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
tscircuit/image-utils#58 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 74/100
维护者通常 2 天内回复