[Bug] 首次引导区分模型已配置与连接已验证

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

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

area:desktop bug

环境与最小复现

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ydflow/Trail

All issues in ydflow/Trail

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.