| 5578 | } |
| 5579 | |
| 5580 | static bool openhands_settings_entry_absent(const char *settings_path, const char *name) { |
| 5581 | yyjson_doc *doc = openhands_read_doc(settings_path); |
| 5582 | yyjson_val *root = doc ? yyjson_doc_get_root(doc) : NULL; |
| 5583 | yyjson_val *mcp_config = root ? yyjson_obj_get(root, "mcp_config") : NULL; |
| 5584 | bool absent = root && (!mcp_config || !yyjson_obj_get(mcp_config, name)); |
| 5585 | yyjson_doc_free(doc); |
| 5586 | return absent; |
| 5587 | } |
| 5588 | |
| 5589 | /* profile → mcp_server_refs must be exactly the given strings in order. */ |
| 5590 | static bool openhands_profile_refs_equal(const char *profile_path, const char *const *expected, |
no test coverage detected