Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(control-ui): enable stateless agent creation

Alfredo Lopez9116bd739a3c
diff --git a/control-ui/components/HostWizard/index.tsx b/control-ui/components/HostWizard/index.tsx
index 6aa970ab3..d9af0dc3d 100644
--- a/control-ui/components/HostWizard/index.tsx
+++ b/control-ui/components/HostWizard/index.tsx
@@ -67,9 +67,10 @@ import {
} from './constants'
import type { CreatedResource, HostWizardProps, HostWizardValidationState } from './types'
-// Stateless lifecycle support remains intact in the API and existing-agent UI;
-// only creation through this wizard is temporarily unavailable.
-const SHOW_STATELESS_AGENT_SELECTOR = false
+// Stateless agents can now be created from the wizard. The API and HCC
+// lifecycle support were already in place; this flag gates the operator-facing
+// type selector during the incremental rollout.
+const SHOW_STATELESS_AGENT_SELECTOR = true
// Asymmetric save gate (spec Topic 1b): the PRIMARY provider must be usable —
// its required credential slot(s) filled — before create is allowed. Fallbacks
diff --git a/control-ui/components/__tests__/HostWizard.test.tsx b/control-ui/components/__tests__/HostWizard.test.tsx
index f18eed5f1..3a1460c43 100644
--- a/control-ui/components/__tests__/HostWizard.test.tsx
+++ b/control-ui/components/__tests__/HostWizard.test.tsx
@@ -840,14 +840,14 @@ describe('HostWizard — baseline render', () => {
})
describe('HostWizard — Agent type (stateless lifecycle)', () => {
- it('hides the Agent type selector from the create flow', async () => {
+ it('shows the Agent type selector in the create flow', async () => {
await renderWizard()
- expect(screen.queryByText('Agent type')).not.toBeInTheDocument()
- expect(screen.queryByRole('radio', { name: /Stateful \(always on\)/i })).not.toBeInTheDocument()
+ expect(screen.getByText('Agent type')).toBeInTheDocument()
+ expect(screen.getByRole('radio', { name: /Stateful \(always on\)/i })).toBeInTheDocument()
expect(
- screen.queryByRole('radio', { name: /Stateless \(suspends when idle\)/i })
- ).not.toBeInTheDocument()
+ screen.getByRole('radio', { name: /Stateless \(suspends when idle\)/i })
+ ).toBeInTheDocument()
})
it('omits spec.lifecycle from the created Host when Stateful is kept (absent = disabled)', async () => {
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 982acfe34..6a11d5f01 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.653",
+ "version": "0.1.654",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.653",
+ "version": "0.1.654",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index 23fe01de0..956a113f2 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.653",
+ "version": "0.1.654",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",