feat(pins): add activeChannelId to pin.message/unpin span metadata

Phase 614 extends pin span ends with activeChannelId for hub depth
diagnostics alongside existing guildCount and pinCount fields.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 18:45:22 -04:00
co-authored by Cursor
parent 4bb73e1322
commit e16e74af27
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
**v0.8.560 (Phase 597):** Session hub live region `#session-hub-panel-live`; **session-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence/discovery/contacts/dm/settings/invite bleed; clipboard `sessionHubPanelLiveBusy`; `session.startup`/`guild.open`/`identity.register` span cross-check. Bundle: `npm run test:phase597-session`. See [SESSION.md](../../docs/SESSION.md). Settings hub depth: see [SETTINGS.md](../../docs/SETTINGS.md) (Phase 598 — complete). **v0.8.560 (Phase 597):** Session hub live region `#session-hub-panel-live`; **session-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence/discovery/contacts/dm/settings/invite bleed; clipboard `sessionHubPanelLiveBusy`; `session.startup`/`guild.open`/`identity.register` span cross-check. Bundle: `npm run test:phase597-session`. See [SESSION.md](../../docs/SESSION.md). Settings hub depth: see [SETTINGS.md](../../docs/SETTINGS.md) (Phase 598 — complete).
**v0.8.576 (Phase 613):** Search hub depth — `syncSearchLivePanelDuringGuildLoading`; `#search-hub-panel-live` hub depth copy + mesh note; **search-errors** excludes pin/thread/automod/ban/kick/timeout bleed; clipboard `searchPanelLiveBusy`; `guild.search` `activeChannelId` re-verify. Bundle: `npm run test:phase613-search`. See [SEARCH.md](../../docs/SEARCH.md). Pins hub depth: Phase 614 — planned. **v0.8.577 (Phase 614):** Pin hub depth — `syncPinLivePanelDuringGuildLoading`; `#pin-hub-panel-live` hub depth copy + mesh note; **pin-errors** excludes thread/automod/ban/kick/timeout bleed; clipboard `pinPanelLiveBusy`; `pin.message`/`pin.unpin` `activeChannelId` re-verify. Bundle: `npm run test:phase614-pins`. See [PINS.md](../../docs/PINS.md). Moderation hub depth: Phase 615 — planned.
**v0.8.576 (Phase 613):** Search hub depth — `syncSearchLivePanelDuringGuildLoading`; `#search-hub-panel-live` hub depth copy + mesh note; **search-errors** excludes pin/thread/automod/ban/kick/timeout bleed; clipboard `searchPanelLiveBusy`; `guild.search` `activeChannelId` re-verify. Bundle: `npm run test:phase613-search`. See [SEARCH.md](../../docs/SEARCH.md). Pins hub depth: see [PINS.md](../../docs/PINS.md) (Phase 614 — complete).
**v0.8.575 (Phase 612):** Reaction hub depth — `syncReactionLivePanelDuringGuildLoading`; `#reaction-hub-panel-live` hub depth copy + `aria-busy`; **reaction-errors** excludes pin/automod/ban/kick/timeout bleed; clipboard `reactionPanelLiveBusy`; `reaction.toggle`/`reaction.clear` `activeChannelId` re-verify. Bundle: `npm run test:phase612-reactions`. See [REACTIONS.md](../../docs/REACTIONS.md). **v0.8.575 (Phase 612):** Reaction hub depth — `syncReactionLivePanelDuringGuildLoading`; `#reaction-hub-panel-live` hub depth copy + `aria-busy`; **reaction-errors** excludes pin/automod/ban/kick/timeout bleed; clipboard `reactionPanelLiveBusy`; `reaction.toggle`/`reaction.clear` `activeChannelId` re-verify. Bundle: `npm run test:phase612-reactions`. See [REACTIONS.md](../../docs/REACTIONS.md).
+4 -2
View File
@@ -12906,7 +12906,8 @@ class PearcordPlatform extends EventEmitter {
guildId, guildId,
guildCount: (this.guilds || []).length, guildCount: (this.guilds || []).length,
messageId, messageId,
pinCount: pinRows.length pinCount: pinRows.length,
activeChannelId: this.activeChannelId
}) })
return pin return pin
} catch (err) { } catch (err) {
@@ -12944,7 +12945,8 @@ class PearcordPlatform extends EventEmitter {
guildId, guildId,
guildCount: (this.guilds || []).length, guildCount: (this.guilds || []).length,
messageId, messageId,
pinCount: pinRows.length pinCount: pinRows.length,
activeChannelId: this.activeChannelId
}) })
} catch (err) { } catch (err) {
this.log.error('pin.unpin error', { this.log.error('pin.unpin error', {