Skip to content

[Enhancement] Feature Flag for in-app chatbot#3470

Open
clayandgen wants to merge 2 commits into
mainfrom
ai-chatbot
Open

[Enhancement] Feature Flag for in-app chatbot#3470
clayandgen wants to merge 2 commits into
mainfrom
ai-chatbot

Conversation

@clayandgen

Copy link
Copy Markdown
Contributor

closes #3467
see corresponding Enterprise PR: https://github.com/OpenC3/cosmos-enterprise/pull/623

Adds below to the settings
Screenshot 2026-06-11 at 1 39 43 PM

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.17%. Comparing base (02f0108) to head (ad42e0f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3470      +/-   ##
==========================================
- Coverage   79.19%   79.17%   -0.03%     
==========================================
  Files         689      689              
  Lines       57284    57284              
  Branches      728      728              
==========================================
- Hits        45367    45353      -14     
- Misses      11839    11853      +14     
  Partials       78       78              
Flag Coverage Δ
python 80.28% <ø> (-0.01%) ⬇️
ruby-api 80.99% <ø> (-0.29%) ⬇️
ruby-backend 82.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ryanmelt

Copy link
Copy Markdown
Member

Also add some way to control which ai platforms are selectable. Likely will
Have to remove anthropic as a choice

To disable the MCP Server entirely, set the following environment variable in the `.env` file at the root of your COSMOS Enterprise project and restart COSMOS:

```
OPENC3_MCP_DISABLED=true

@EmilyRagan EmilyRagan Jun 12, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to also propose also having an environment variable that prevents the chat bot from ever being visible and hides the settings panel for it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is do-able, but the UI container doesn't have inherent access to the env vars set in the backend containers, and will need to make extra API calls to retrieve. I think the settings panel route is the established pattern.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There could be overlap with what Matthew is building in the init container here: #3471

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.

Feature Flag for in-app AI Chatbot

4 participants