From 5e1863d2315ec4449ffdb43d33ab7eb2bfad7b1d Mon Sep 17 00:00:00 2001 From: atlas Date: Sat, 11 Jul 2026 10:59:33 +0200 Subject: [PATCH] fix(#2377): org_list_hooks returns Vec, use .send() not .all() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit org_list_hooks response type is Vec (no pagination headers), so .all() (which is impl'd for (H, Vec) paginated responses) does not compile. Switch to .send() — the non-paginated call path. repo_list_hooks (used in workers/knowledge.rs) returns (H, Vec) and correctly uses .all(); the org variant is different. --- hive-c0re/src/forge/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive-c0re/src/forge/mod.rs b/hive-c0re/src/forge/mod.rs index b7c6c770..92f1c4cb 100644 --- a/hive-c0re/src/forge/mod.rs +++ b/hive-c0re/src/forge/mod.rs @@ -330,7 +330,7 @@ pub async fn ensure_config_pr_webhook(core_token: &str, dashboard_port: u16) -> // List existing org hooks — skip creation if ours is already there. // Best-effort: a listing failure falls through to the create attempt. - let listed = tokio::time::timeout(HTTP_TIMEOUT, client.org_list_hooks(CONFIG_ORG).all()) + let listed = tokio::time::timeout(HTTP_TIMEOUT, client.org_list_hooks(CONFIG_ORG).send()) .await .map_err(anyhow::Error::from) .and_then(|r| r.map_err(anyhow::Error::from));