@swiss-ai-hub/web 0.305.3 → 0.305.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "bbv Software Services AG (https://www.bbv.ch)",
5
5
  "type": "module",
6
- "version": "0.305.3",
6
+ "version": "0.305.4",
7
7
  "description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
8
8
  "main": "./nuxt.config.ts",
9
9
  "repository": {
@@ -34,6 +34,8 @@
34
34
  </template>
35
35
 
36
36
  <script setup lang="ts">
37
+ import type { FormkitElement } from '@core/sdk/client'
38
+
37
39
  const route = useRoute()
38
40
  const { tenantId } = useTenant()
39
41
  const { agentInstance, agentInstanceIsLoading } = useAgentInstance()
@@ -41,7 +43,13 @@ const { updateAgentInstance } = useUpdateAgentInstance()
41
43
  const { t } = useI18n()
42
44
  const toast = useToast()
43
45
 
44
- const configForm = computed(() => agentInstance.value?.agent_config?.form || [])
46
+ // Lock agent_id on edit: it is the immutable instance key, and a divergent value silently breaks
47
+ // the SSE completion check so the chat never finishes. The backend pins it on save too; this is UX.
48
+ const configForm = computed<FormkitElement[]>(() =>
49
+ (agentInstance.value?.agent_config?.form || []).map(element =>
50
+ (element.name === 'agent_id' ? { ...element, disabled: true } : element) as FormkitElement,
51
+ ),
52
+ )
45
53
 
46
54
  // Pass the saved configuration through unchanged. DynamicConfiguration hydrates it
47
55
  // (seedNullableToggles then seedFormDefaults): non-nullable groups are materialised to