Skip to content

πŸ™Œ OpenHands: AI-Driven Development

APP-1546 feat(frontend): expose sandbox grouping strategy UI to all users (#14291)

Tim O'Farrell90cf5f8003c2
diff --git a/frontend/src/routes/app-settings.tsx b/frontend/src/routes/app-settings.tsx
index 43753fbec7..bfba036fc2 100644
--- a/frontend/src/routes/app-settings.tsx
+++ b/frontend/src/routes/app-settings.tsx
@@ -24,7 +24,6 @@ import {
SandboxGroupingStrategy,
SandboxGroupingStrategyOptions,
} from "#/types/settings";
-import { ENABLE_SANDBOX_GROUPING } from "#/utils/feature-flags";
import { createPermissionGuard } from "#/utils/org/permission-guard";
export const clientLoader = createPermissionGuard(
@@ -274,25 +273,23 @@ function AppSettingsScreen() {
</SettingsSwitch>
)}
- {ENABLE_SANDBOX_GROUPING() && (
- <SettingsDropdownInput
- testId="sandbox-grouping-strategy-input"
- name="sandbox-grouping-strategy-input"
- label={t(I18nKey.SETTINGS$SANDBOX_GROUPING_STRATEGY)}
- items={Object.keys(SandboxGroupingStrategyOptions).map((key) => ({
- key,
- label: t(`SETTINGS$SANDBOX_GROUPING_${key}` as I18nKey),
- }))}
- selectedKey={
- selectedSandboxGroupingStrategy ||
- settings.sandbox_grouping_strategy ||
- DEFAULT_SETTINGS.sandbox_grouping_strategy
- }
- isClearable={false}
- onSelectionChange={handleSandboxGroupingStrategyChange}
- wrapperClassName="w-full max-w-[680px]"
- />
- )}
+ <SettingsDropdownInput
+ testId="sandbox-grouping-strategy-input"
+ name="sandbox-grouping-strategy-input"
+ label={t(I18nKey.SETTINGS$SANDBOX_GROUPING_STRATEGY)}
+ items={Object.keys(SandboxGroupingStrategyOptions).map((key) => ({
+ key,
+ label: t(`SETTINGS$SANDBOX_GROUPING_${key}` as I18nKey),
+ }))}
+ selectedKey={
+ selectedSandboxGroupingStrategy ||
+ settings.sandbox_grouping_strategy ||
+ DEFAULT_SETTINGS.sandbox_grouping_strategy
+ }
+ isClearable={false}
+ onSelectionChange={handleSandboxGroupingStrategyChange}
+ wrapperClassName="w-full max-w-[680px]"
+ />
{!settings?.v1_enabled && (
<SettingsInput
diff --git a/frontend/src/utils/feature-flags.ts b/frontend/src/utils/feature-flags.ts
index 5cdd19f9ef..30ab15c59a 100644
--- a/frontend/src/utils/feature-flags.ts
+++ b/frontend/src/utils/feature-flags.ts
@@ -17,6 +17,4 @@ export const HIDE_LLM_SETTINGS = () => loadFeatureFlag("HIDE_LLM_SETTINGS");
export const VSCODE_IN_NEW_TAB = () => loadFeatureFlag("VSCODE_IN_NEW_TAB");
export const ENABLE_TRAJECTORY_REPLAY = () =>
loadFeatureFlag("TRAJECTORY_REPLAY");
-export const ENABLE_SANDBOX_GROUPING = () =>
- loadFeatureFlag("SANDBOX_GROUPING");
export const ENABLE_AUTOMATIONS = () => loadFeatureFlag("AUTOMATIONS");