Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
0ede581
1
Parent(s): 3cd982c
Claude Code: Fix Cain - add health field to status initialization
Browse files- Add explicit health field to RUNNING_A2A_READY status initialization
- This ensures health field is authoritative, preventing "Error: unknown" display issues
- Ensures a2a.brain_ready is properly initialized before being updated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- app.py +3 -1
- openclaw/.openclaw/agents/cain_status.json +3 -1
app.py
CHANGED
|
@@ -471,6 +471,7 @@ try:
|
|
| 471 |
"agent": "cain",
|
| 472 |
"error": None, # ALWAYS null for healthy state
|
| 473 |
"error_display": "None", # Explicit display field to avoid "unknown" parsing issues
|
|
|
|
| 474 |
"startup_checks": {
|
| 475 |
"openclaw_imported": False,
|
| 476 |
"brain_imported": False
|
|
@@ -478,7 +479,8 @@ try:
|
|
| 478 |
"a2a": {
|
| 479 |
"endpoint": "/a2a/jsonrpc",
|
| 480 |
"enabled": True,
|
| 481 |
-
"status": "ready"
|
|
|
|
| 482 |
}
|
| 483 |
}
|
| 484 |
|
|
|
|
| 471 |
"agent": "cain",
|
| 472 |
"error": None, # ALWAYS null for healthy state
|
| 473 |
"error_display": "None", # Explicit display field to avoid "unknown" parsing issues
|
| 474 |
+
"health": "HEALTHY", # Explicit health field (authoritative)
|
| 475 |
"startup_checks": {
|
| 476 |
"openclaw_imported": False,
|
| 477 |
"brain_imported": False
|
|
|
|
| 479 |
"a2a": {
|
| 480 |
"endpoint": "/a2a/jsonrpc",
|
| 481 |
"enabled": True,
|
| 482 |
+
"status": "ready",
|
| 483 |
+
"brain_ready": False # Will be updated below
|
| 484 |
}
|
| 485 |
}
|
| 486 |
|
openclaw/.openclaw/agents/cain_status.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
-
"last_updated": "2026-03-
|
| 4 |
"agent": "cain",
|
| 5 |
"error": null,
|
|
|
|
|
|
|
| 6 |
"_note": "error=null means healthy - treated as 'no error'",
|
| 7 |
"stage": "RUNNING_A2A_READY",
|
| 8 |
"a2a": {
|
|
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
+
"last_updated": "2026-03-16T21:15:44.596532+00:00",
|
| 4 |
"agent": "cain",
|
| 5 |
"error": null,
|
| 6 |
+
"health": "HEALTHY",
|
| 7 |
+
"error_display": "None",
|
| 8 |
"_note": "error=null means healthy - treated as 'no error'",
|
| 9 |
"stage": "RUNNING_A2A_READY",
|
| 10 |
"a2a": {
|