feat(local-agent): enable binding prompt by default - #237
Merged
jeff-r2026 merged 1 commit intoJul 24, 2026
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
将
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 个测试通过。