Skip to content

feat(local-agent): enable binding prompt by default - #237

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
chongwu069:feat/enable-bind-prompt-by-default
Jul 24, 2026
Merged

feat(local-agent): enable binding prompt by default#237
jeff-r2026 merged 1 commit into
Tencent:mainfrom
chongwu069:feat/enable-bind-prompt-by-default

Conversation

@chongwu069

Copy link
Copy Markdown
Contributor

改动内容

TEAMAI_BIND_PROMPT_ENABLED 的默认值从 false 翻转为 true

背景

当前 organization-binding prompt(TTY prompt + injected hook context)默认关闭,需要显式设置 TEAMAI_BIND_PROMPT_ENABLED=1 才能开启。这使得新用户默认无法感知项目绑定功能,需要额外配置才能获得引导。

改动详情

  • isBindPromptEnabled() 在环境变量未设置时默认返回 true(开启)
  • 仍可通过 TEAMAI_BIND_PROMPT_ENABLED=0(或 false)显式关闭,保持 opt-out 能力
  • teamai bind-project 手动命令不受影响,始终可用

文件变更

  • src/local-agent.ts:修改 isBindPromptEnabled() 默认行为 + 更新函数 doc 和调用点注释
  • src/__tests__/local-agent.test.ts:将原"默认关闭不发 hint"测试改为"显式 `=0` 关闭不发 hint"

测试

src/__tests__/local-agent.test.ts 全部 36 个测试通过。

Flip the default of TEAMAI_BIND_PROMPT_ENABLED from off to on. The organization-binding prompt is now shown by default; users who want to suppress it can set TEAMAI_BIND_PROMPT_ENABLED=0 (or false).

- Update isBindPromptEnabled() to return true when env var is unset

- Update related comments to reflect the new default

- Adjust the test that asserted default-off to assert explicit-disable
@jeff-r2026
jeff-r2026 merged commit 520c40a into Tencent:main Jul 24, 2026
7 checks passed
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.

2 participants