mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-01 00:31:51 +03:00
feat(tui): integrate with Herdr host
This commit is contained in:
@@ -100,11 +100,30 @@ def test_goal_state_ws_blob_active_shape():
|
||||
}
|
||||
assert goal_state_ws_blob(meta) == {
|
||||
"active": True,
|
||||
"status": "active",
|
||||
"ui_summary": "feat",
|
||||
"objective": "Build feature.",
|
||||
}
|
||||
|
||||
|
||||
def test_goal_state_ws_blob_preserves_blocked_state_for_host_attention():
|
||||
meta = {
|
||||
GOAL_STATE_KEY: {
|
||||
"status": "blocked",
|
||||
"objective": "Deploy safely.",
|
||||
"ui_summary": "Approval required",
|
||||
"recap": "Production access is required.",
|
||||
},
|
||||
}
|
||||
assert goal_state_ws_blob(meta) == {
|
||||
"active": False,
|
||||
"status": "blocked",
|
||||
"ui_summary": "Approval required",
|
||||
"objective": "Deploy safely.",
|
||||
"recap": "Production access is required.",
|
||||
}
|
||||
|
||||
|
||||
def test_sustained_goal_active_false_when_missing_or_completed():
|
||||
assert sustained_goal_active(None) is False
|
||||
assert sustained_goal_active({}) is False
|
||||
|
||||
Reference in New Issue
Block a user