fix: gate Soul page behind server version 0.0.67 (#407)

Add SOUL_SUPPORT feature flag to capabilities system requiring
minServerVersion 0.0.67. Hides "Agent Soul" nav item in settings
sidebar for older servers that lack the /soul endpoint.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nikhil
2026-03-04 18:20:40 -08:00
committed by GitHub
parent 61776cb0d6
commit 2bc5d6f5e4
2 changed files with 9 additions and 1 deletions

View File

@@ -33,7 +33,12 @@ const settingsNavItems: NavItem[] = [
icon: Palette,
feature: Feature.CUSTOMIZATION_SUPPORT,
},
{ name: 'Agent Soul', to: '/settings/soul', icon: Sparkles },
{
name: 'Agent Soul',
to: '/settings/soul',
icon: Sparkles,
feature: Feature.SOUL_SUPPORT,
},
{ name: 'Explore Features', to: '/onboarding/features', icon: Compass },
{ name: 'Revisit Onboarding', to: '/onboarding', icon: RotateCcw },
]

View File

@@ -35,6 +35,8 @@ export enum Feature {
WORKFLOW_SUPPORT = 'WORKFLOW_SUPPORT',
// previousConversation as structured array (older servers only accept string)
PREVIOUS_CONVERSATION_ARRAY = 'PREVIOUS_CONVERSATION_ARRAY',
// Soul page: agent personality viewer and editor
SOUL_SUPPORT = 'SOUL_SUPPORT',
}
/**
@@ -57,6 +59,7 @@ const FEATURE_CONFIG: { [K in Feature]: FeatureConfig } = {
[Feature.PROXY_SUPPORT]: { minBrowserOSVersion: '0.39.0.1' },
[Feature.WORKFLOW_SUPPORT]: { minServerVersion: '0.0.41' },
[Feature.PREVIOUS_CONVERSATION_ARRAY]: { minServerVersion: '0.0.64' },
[Feature.SOUL_SUPPORT]: { minServerVersion: '0.0.67' },
}
function parseVersion(version: string): number[] {