[Bug] 首次引导区分模型已配置与连接已验证
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bun, electron, react, typescript
Research direction
Read apps/electron/src/main/kernelHost.ts at the environment check, packages/ui/src/components/onboarding/EnvironmentStep.tsx for onboarding status, and packages/shared/src/agent/pi-runtime-adapter.ts for the existing connection test. Add offline tests for a selected model with authentication failure and for successful verification. Done when automatic checks distinguish configuration from verification, and onboarding text matches each verification result.
Written by the indexing model from the issue text.
Description
环境与最小复现
Windows,main 579395e,Bun 1.4.2。用模拟 Pi 控制面调用主进程的 checkHealth()。
让 getState() 返回已选择的模型,让 testProvider() 在被调用时返回鉴权失败。当前 checkHealth() 的 AI 项返回 ok: true,连接测试调用次数为 0。首次引导将 ok: true 渲染为绿勾,新用户容易把模型选择状态理解为连接已经验证。
验收标准
- 「检查环境」可区分尚未配置、已配置待验证、已验证和验证失败。自动检查展示配置状态,用户主动触发的验证复用现有连接测试。
- 用离线测试覆盖已选模型但鉴权失败、验证成功两条路径,确认引导文案与验证结果一致。
源码起点
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 37
- Avg merge
- 8h 8m
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ydflow/Trail
-
area:desktop bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:desktop bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area:desktop bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
bug triage:in-progress
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
e2e-failure ready-to-code
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/rhdh-plugin-export-overlays#4845 · 1 comment ·
Maintainers usually reply within 1 day
-
chore kaizen ui-rewrite
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
IBM/mcp-context-forge#7681 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cloudflare/workers-sdk#17159 ·
Maintainers usually reply within 1 day