Commit ae3c873
fix(ui): save memory config to spec.declarative.memory (#1887)
Memory was being written to `spec.memory` on the Agent CR, but the
v1alpha2 CRD defines `memory` under `spec.declarative`, not at the top
level of `AgentSpec` - see
https://github.com/kagent-dev/kagent/blob/e03ee3a61be8387f6148d4fae9205e75eb45d2ab/go/api/v1alpha2/agent_types.go#L162-L224.
The backend silently ignored the misplaced field, causing memory
configuration to appear to save but never actually persist.
Also removed a dead fallback in the edit-load path that attempted to
read `spec.memory` (a field that never exists in v1alpha2) masking the
underlying issue.
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e03ee3a commit ae3c873
3 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
| |||
0 commit comments