Description
Both generatedSnapshotDescription and assistantInlineCompletions are currently registered as hardcoded true for all enterprise installations (forge/ee/lib/index.js:42,45), regardless of whether the assistant service is actually configured. This means the features appear available in the UI but fail at
runtime if the assistant service is not set up.
Changes:
- In
forge/ee/lib/index.js, change the registration of both flags to check that assistant.enabled is true and assistant.service.url is present before registering as true
- If assistant configuration is missing or disabled, both flags should be registered as
false
- This aligns their behaviour with how
expertAssistant is already handled (config-driven rather than hardcoded)
Affected lines:
forge/ee/lib/index.js:42: app.config.features.register('generatedSnapshotDescription', true, true)
forge/ee/lib/index.js:45: app.config.features.register('assistantInlineCompletions', true, true)
Expected result:
- On enterprise installations with assistant properly configured: both flags registered as
true (no change in behaviour)
- On enterprise installations without assistant configured: both flags registered as
false, features hidden from UI
Epic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Description
Both
generatedSnapshotDescriptionandassistantInlineCompletionsare currently registered as hardcodedtruefor all enterprise installations (forge/ee/lib/index.js:42,45), regardless of whether the assistant service is actually configured. This means the features appear available in the UI but fail atruntime if the assistant service is not set up.
Changes:
forge/ee/lib/index.js, change the registration of both flags to check thatassistant.enabledistrueandassistant.service.urlis present before registering astruefalseexpertAssistantis already handled (config-driven rather than hardcoded)Affected lines:
forge/ee/lib/index.js:42:app.config.features.register('generatedSnapshotDescription', true, true)forge/ee/lib/index.js:45:app.config.features.register('assistantInlineCompletions', true, true)Expected result:
true(no change in behaviour)false, features hidden from UIEpic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate