From 49caf6e5391ee2ec22933e0004db813fb8eeda14 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 20 May 2026 19:08:21 +0200 Subject: [PATCH] fix: also add write:notification scope to mark notifications as read --- hive-c0re/src/forge.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hive-c0re/src/forge.rs b/hive-c0re/src/forge.rs index bb798be..27bfea5 100644 --- a/hive-c0re/src/forge.rs +++ b/hive-c0re/src/forge.rs @@ -55,8 +55,10 @@ const SEEDED_ORGS: &[&str] = &[CONFIG_ORG]; /// - `write:misc` — hooks, attachments, the rest of the long tail. /// - `read:notification` — required by forge_notify to poll /// `GET /notifications` for unread PR/review events. +/// - `write:notification` — required by forge_notify to mark +/// notifications as read via `PATCH /notifications/threads/{id}`. const TOKEN_SCOPES: &str = - "read:user,write:user,read:notification,write:repository,write:issue,write:organization,write:misc"; + "read:user,write:user,read:notification,write:notification,write:repository,write:issue,write:organization,write:misc"; /// Token file inside the agent's bind-mounted state dir (visible as /// `/state/forge-token` from inside the container).