+
+ Resolved mode: {resolution.resolved_mode} {" "}
+
+ ({SOURCE_LABELS[resolution.source]})
+
+
+
+ Org default: {resolution.org_default}
+
+
+
+ Override
+
+
void handleChange(e.target.value as DropdownChoice)}
+ className="w-full bg-surface-card border border-line rounded p-1 text-[10px] text-ink focus:outline-none focus:border-accent disabled:opacity-50"
+ >
+ {(Object.keys(MODE_LABELS) as DropdownChoice[]).map((m) => (
+
+ {MODE_LABELS[m]}
+
+ ))}
+
+
+
+ {MODE_DESCRIPTIONS[currentChoice]}
+
+
+ {success && (
+
+ Updated. Restart the workspace to apply.
+
+ )}
+
+ {resolution.workspace_override != null &&
+ !["platform_managed", "byok", "disabled"].includes(
+ resolution.workspace_override,
+ ) && (
+
+ Workspace override has a non-standard value (
+ {resolution.workspace_override}) and is being
+ ignored. Pick a valid mode above to clear the corrupt value.
+
+ )}
+
+ )}
+