Skip to content

Quality: Unconditional worktree mode enabled#278

Open
tuanaiseo wants to merge 1 commit intoNanmiCoder:mainfrom
tuanaiseo:contribai/improve/quality/unconditional-worktree-mode-enabled
Open

Quality: Unconditional worktree mode enabled#278
tuanaiseo wants to merge 1 commit intoNanmiCoder:mainfrom
tuanaiseo:contribai/improve/quality/unconditional-worktree-mode-enabled

Conversation

@tuanaiseo
Copy link
Copy Markdown

Problem

The isWorktreeModeEnabled function always returns true unconditionally. The comment mentions it was previously gated by a GrowthBook flag but the implementation is now a simple constant return.

Severity: medium
File: src/utils/worktreeModeEnabled.ts

Solution

If this is intentionally always enabled, consider using a constant instead of a function. If conditional behavior is needed, implement the proper feature flag logic.

Changes

  • src/utils/worktreeModeEnabled.ts (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

The isWorktreeModeEnabled function always returns true unconditionally. The comment mentions it was previously gated by a GrowthBook flag but the implementation is now a simple constant return.

Affected files: worktreeModeEnabled.ts

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

PR quality triage

Changed areas: area:cli-core

CLI core policy: Blocked by policy until a maintainer applies allow-cli-core-change and approves the PR.

CLI core files:

  • src/utils/worktreeModeEnabled.ts

Expected checks:

  • change-policy
  • server-checks

Test coverage signals:

  • Agent/model runtime path changed: use mock/request-shape tests in PR and maintainer live-model smoke before release.

Risk notes:

  • No special risk notes from changed paths.

Hard merge gates still come from GitHub Actions, not AI review.

Dosu handoff: Dosu can be used as the AI reviewer for risk explanation, missing-test prompts, and maintainer Q&A. If it does not comment automatically from the PR template, ask:

@dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact.

@dosubot dosubot Bot added the bug Something isn't working label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli-core bug Something isn't working needs-maintainer-approval size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant