Skip to content

fix(doctor): skip env check when team repo has no env.yaml - #146

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
jeff-r2026:fix/doctor-skip-env-check-when-no-env-yaml
Jul 3, 2026
Merged

fix(doctor): skip env check when team repo has no env.yaml#146
jeff-r2026 merged 1 commit into
Tencent:mainfrom
jeff-r2026:fix/doctor-skip-env-check-when-no-env-yaml

Conversation

@jeff-r2026

@jeff-r2026 jeff-r2026 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • teamai doctor 的 "Env variables injected in shell profile" 检查之前无条件执行,当 team repo 没有 env/env.yaml 时会误报失败
  • 修复后,当 env/env.yaml 不存在或 sharing.env.injectShellProfile 为 false 时,检查直接跳过(视为通过)

Test plan

  • npx vitest run src/__tests__/doctor.test.ts — 7 tests pass
  • npx tsc --noEmit — no new type errors
  • 在无 env.yaml 的 team repo 上运行 teamai doctor,确认 env check 显示 ✔

🤖 Generated with Claude Code

The "Env variables injected in shell profile" doctor check previously
failed unconditionally when ~/.teamai/env.sh was missing, even if the
team repo defines no env variables. Now the check is skipped (passes)
when env/env.yaml does not exist or when injectShellProfile is disabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-r2026
jeff-r2026 merged commit e17c916 into Tencent:main Jul 3, 2026
7 checks passed
@jeff-r2026
jeff-r2026 deleted the fix/doctor-skip-env-check-when-no-env-yaml branch July 3, 2026 07:34
@hsuchifeng hsuchifeng mentioned this pull request Jul 3, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant