From 641769d7a47fc0dd82809e26265bcaa483ae5d4a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 04:01:24 +0000 Subject: [PATCH 1/5] chore: update submodules to latest versions --- frontend/public/bsatn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/bsatn b/frontend/public/bsatn index 63da499..a2f5b40 160000 --- a/frontend/public/bsatn +++ b/frontend/public/bsatn @@ -1 +1 @@ -Subproject commit 63da499c0ba39a116ddaca55c2abc471131ab7e9 +Subproject commit a2f5b4089cf0c63eb94edfc694ea0f2246c371c4 From e1435b2dfd3f7302943046defd4af061bbe8a5bc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 08:43:59 +0000 Subject: [PATCH 2/5] chore: update submodules to latest versions --- frontend/public/bsatn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/bsatn b/frontend/public/bsatn index a2f5b40..56d7e44 160000 --- a/frontend/public/bsatn +++ b/frontend/public/bsatn @@ -1 +1 @@ -Subproject commit a2f5b4089cf0c63eb94edfc694ea0f2246c371c4 +Subproject commit 56d7e44a04269ef448a77267d7e9fd646c7db6e7 From ec09130ef2136ba793e2bb4c665c8d8dc8266a90 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 08:04:10 +0000 Subject: [PATCH 3/5] chore: update submodules to latest versions --- frontend/public/bsatn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/bsatn b/frontend/public/bsatn index 56d7e44..9a4194f 160000 --- a/frontend/public/bsatn +++ b/frontend/public/bsatn @@ -1 +1 @@ -Subproject commit 56d7e44a04269ef448a77267d7e9fd646c7db6e7 +Subproject commit 9a4194f00319b6113014041fe547ddbdbe19eb02 From 247fef3700084c6531d6b85c201c495a1fe33352 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sun, 15 Nov 2026 15:32:01 -0500 Subject: [PATCH 4/5] Cleanup displays in archived threads. --- backend/brico-bot/src/discord/display-manager.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/backend/brico-bot/src/discord/display-manager.ts b/backend/brico-bot/src/discord/display-manager.ts index ee209d2..ebd6c2d 100644 --- a/backend/brico-bot/src/discord/display-manager.ts +++ b/backend/brico-bot/src/discord/display-manager.ts @@ -59,6 +59,11 @@ function isForbidden(cause: unknown): boolean { return cause instanceof DiscordAPIError && cause.status === 403; } +/** The target is an archived thread (Discord error 50083, HTTP 400), which no longer accepts messages. */ +function isThreadArchived(cause: unknown): boolean { + return cause instanceof DiscordAPIError && cause.code === 50083; +} + export function createDisplayManager(options: DisplayManagerOptions): DisplayManager { const log = options.log.child("display"); let latestRows: CraftRow[] = []; @@ -78,7 +83,7 @@ export function createDisplayManager(options: DisplayManagerOptions): DisplayMan await recordMessage(conn, display.id, messageId, true); return; } catch (cause) { - if (isForbidden(cause)) { + if (isForbidden(cause) || isThreadArchived(cause)) { await markDeleted(conn, display); return; } @@ -105,7 +110,7 @@ export function createDisplayManager(options: DisplayManagerOptions): DisplayMan displayUpdatesTotal.inc({outcome: "posted"}); await recordMessage(conn, display.id, posted.id, false); } catch (cause) { - if (isForbidden(cause) || isNotFound(cause)) { + if (isForbidden(cause) || isNotFound(cause) || isThreadArchived(cause)) { await markDeleted(conn, display); return; } @@ -124,7 +129,7 @@ export function createDisplayManager(options: DisplayManagerOptions): DisplayMan }); } - /** The channel stopped accepting posts (403/404): tombstone the display (same reducer as `/crafts display-remove`). */ + /** The channel stopped accepting posts (403/404/archived thread): tombstone the display (same reducer as `/crafts display-remove`). */ async function markDeleted(conn: DbConnection, display: DiscordWatchDisplay): Promise { if (!conn.isActive) return; displayUpdatesTotal.inc({outcome: "detached"}); From 118d7ef2a18b370c8844fcfb349c6e1f959f8b94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:38:40 +0000 Subject: [PATCH 5/5] chore: update submodules to latest versions --- common/bitcraft-bindings/upstream | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/bitcraft-bindings/upstream b/common/bitcraft-bindings/upstream index 4f1e450..6084a9f 160000 --- a/common/bitcraft-bindings/upstream +++ b/common/bitcraft-bindings/upstream @@ -1 +1 @@ -Subproject commit 4f1e4500e16133c3cdfe832980598c388431d476 +Subproject commit 6084a9f140b20307f56d0ea22216cafbaa9e41a5