Skip to content

feat(settings): gate the Agents and Harness settings tabs behind enable-chat-v3-agents - #6089

Merged
ehayes2000 merged 1 commit into
eric.hayes/macrod-tuifrom
eric.hayes/gate-agent-settings-tabs
Sep 1, 2026
Merged

ehayes2000 merged 1 commit into
eric.hayes/macrod-tuifrom
eric.hayes/gate-agent-settings-tabs

Conversation

@ehayes2000

@ehayes2000 ehayes2000 commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #6031.

The new Agents and Harness settings tabs (and their sidebar group) were unconditionally visible — useSettingsTabAvailable returned true for both, while sibling tabs sit behind flags (Bots → bot-management, CRM → enable-crm).

This gates both tabs behind enable-chat-v3-agents, the same PostHog flag that already gates the channel agent-mention surfaces (useChatV3AgentsFlag), resolved through the tab config's existing useFeatureFlag pattern. The sidebar group disappears automatically when both items are hidden, and useSettingsTabAvailable is the single gate the settings panel and app sidebar both consult, so nothing else needs touching.

Known behavior while the flag is off: the macrod pairing deep link (/app/settings/harness?pair=CODE) dead-ends — intended for a gated rollout.


Note

Low Risk
Single gate change in settings tab visibility; no auth or data-path changes, only rollout alignment with an existing feature flag.

Overview
Agents and Harness settings tabs (and the sidebar Agents group when both are hidden) are no longer always shown. They now follow the same enable-chat-v3-agents PostHog flag—and dev override—as channel agent-mention UI, via useFeatureFlag in useSettingsTabAvailable.

With the flag off, users won’t see agent settings they can’t use in chat; direct URLs such as /app/settings/harness?pair=CODE won’t surface those tabs until the flag is on.

Reviewed by Cursor Bugbot for commit 962fd7f. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: db7fb2e6-fdde-404d-b46b-e796474b3c6b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ehayes2000
ehayes2000 force-pushed the eric.hayes/gate-agent-settings-tabs branch from 655fa9a to d4f9de4 Compare August 31, 2026 23:40
@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

@ehayes2000
ehayes2000 force-pushed the eric.hayes/gate-agent-settings-tabs branch from d4f9de4 to 3a8b425 Compare September 1, 2026 15:05
@ehayes2000
ehayes2000 force-pushed the eric.hayes/gate-agent-settings-tabs branch from 3a8b425 to 512ee2f Compare September 1, 2026 15:42
@ehayes2000
ehayes2000 force-pushed the eric.hayes/gate-agent-settings-tabs branch 2 times, most recently from 56e1def to c814550 Compare September 1, 2026 16:16
@ehayes2000
ehayes2000 force-pushed the eric.hayes/gate-agent-settings-tabs branch from c814550 to 962fd7f Compare September 1, 2026 16:49
@ehayes2000
ehayes2000 merged commit ce61734 into main Sep 1, 2026
31 of 48 checks passed
@ehayes2000
ehayes2000 deleted the eric.hayes/gate-agent-settings-tabs branch September 1, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant