Commit Graph
736 Commits
Author SHA1 Message Date
Raven ScottandCursor da8541dd0c Phase 434: home-mode mention ingest and notification error logging (v0.8.397).
Persist guild inbound handler as ingestInboundGuildMessage for home view, resolve mentions from DB members when guild mesh is detached, and add structured error logs for mark-all, open notification, and mark-channel-read.

Co-authored-by: Cursor <[email protected]>
2026-05-23 18:09:41 -04:00
Raven ScottandCursor 23c10599d7 Phase 433: DM and contacts error logging for diagnostics.
Log dm.open, dm.group, and contacts request/accept/decline failures
so the dm-errors dev-log filter surfaces actionable inbox issues.

Co-authored-by: Cursor <[email protected]>
2026-05-23 17:53:35 -04:00
Raven ScottandCursor 2da13ea78b Phase 432: voice/stage audit trail and leave error logging.
Record STAGE_LEAVE on stage channel exit, stage speaker moderation audits,
and voice.leave error spans so voice-errors diagnostics stay actionable.

Co-authored-by: Cursor <[email protected]>
2026-05-23 17:40:11 -04:00
Raven ScottandCursor d3637b4e20 Phase 431: emoji/sticker delete, audit, and mesh peer retry.
Adds removeGuildEmoji/Sticker with audit entries, delete gossip ingest, and
bounded post-open mesh retries when no peers connect initially.

Co-authored-by: Cursor <[email protected]>
2026-05-23 17:24:46 -04:00
Raven ScottandCursor 62cf3dbc16 feat(slash): delete API, audit trail, and execute hardening
deleteSlashCommand with gossip; slash.register/delete/invoke audit entries;
member role checks and ephemeral reply prefix on execute.

Co-authored-by: Cursor <[email protected]>
2026-05-23 17:05:16 -04:00
Raven ScottandCursor ff246ea7a2 feat(webhooks): channel webhook CRUD, execute, and audit integration
Wire pearcord-webhooks for local token posts, view.guildWebhooks, gossip
sync, and webhook author display names on messages.

Co-authored-by: Cursor <[email protected]>
2026-05-23 16:53:31 -04:00
Raven ScottandCursor df962ee440 fix(platform): continue guild open when joinMesh exceeds cap
Bounded joinMesh wait now logs INFO and completes guild.open instead of
rejecting the session when Hyperswarm join stalls past flushMs + 5s.

Co-authored-by: Cursor <[email protected]>
2026-05-23 14:33:20 -04:00
Raven ScottandCursor b20d0032d9 Log typing.signal at debug when gossiping typing state.
Improves observability for guild and DM typing without per-keystroke spans.

Co-authored-by: Cursor <[email protected]>
2026-05-23 13:10:12 -04:00
Raven ScottandCursor 9cb930d09f Improve voice leave, guild open resilience, and poll logging.
Recover orphaned voice rows on leave, bound joinMesh and initial guild load, demote view.light spans to trace, and log voice.leave.

Co-authored-by: Cursor <[email protected]>
2026-05-23 13:02:40 -04:00
Raven ScottandCursor a2565a83f0 feat(platform): log refresh mesh-on cache hit with scope at debug
Emit a dedicated debug line when mesh-enabled refresh reuses cached
search results, alongside the generic refresh cache hit log.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:29:47 -04:00
Raven ScottandCursor cdcb7d03cb fix(platform): log refresh mesh-off cache hit vs miss correctly
Emit cache hit when mesh-off refresh would reuse cached results and
cache miss only when the cache key does not match.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:26:53 -04:00
Raven ScottandCursor 4827eb7044 feat(platform): log setSearch mesh-off cache miss with scope at debug
When an unchanged setSearch call does not hit cache with mesh disabled,
emit a dedicated debug line with scope and includeMesh false.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:24:14 -04:00
Raven ScottandCursor 148f94df0a feat(platform): log setSearch mesh-on cache miss with scope at debug
When an unchanged setSearch call does not hit the search cache with mesh
enabled, emit a dedicated debug line with scope and includeMesh true.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:20:59 -04:00
Raven ScottandCursor 2472730835 feat(platform): log refresh mesh-on cache miss with scope at debug
When mesh search refresh misses cache with includeMesh true, emit a
dedicated debug line before the mesh-on refresh span.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:17:23 -04:00
Raven ScottandCursor 415843600d feat(platform): log setSearch mesh-off cache hit with scope at debug
Mirror mesh-on cache hit logging when includeMesh is false so guild
search diagnostics show scope on unchanged cache hits.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:12:21 -04:00
Raven ScottandCursor 5c00c19cd1 feat(platform): log refresh mesh-off cache miss with scope at debug
When refreshSearch is skipped because mesh is off but in-memory cache
would have hit, emit guild.search refresh mesh-off cache miss for diagnostics.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:06:40 -04:00
Raven ScottandCursor a4579f11a3 feat(platform): log setSearch mesh-on cache hit with scope at debug
When setSearch no-ops with valid in-memory cache and mesh enabled, emit
guild.search setSearch mesh-on cache hit including scope for diagnostics.

Co-authored-by: Cursor <[email protected]>
2026-05-23 10:03:06 -04:00
Raven ScottandCursor bb098b1eb5 feat(platform): log refresh cache miss and mesh-on with scope
refreshSearch emits guild.search refresh cache miss before mesh-on
invalidation, both including scope and includeMesh for diagnostics.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:59:38 -04:00
Raven ScottandCursor 14578a5adf feat(platform): include mesh flag in refreshSearch cache hit debug log
Logs includeMesh on guild.search refresh cache hit for diagnostics filtering.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:45:47 -04:00
Raven ScottandCursor 9121817c36 feat(platform): log guild.search refresh mesh-on at debug
Records scope and query length when refreshSearch runs with mesh enabled.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:41:01 -04:00
Raven ScottandCursor 66ec605383 feat(platform): log guild.search setSearch mesh-on at debug
Records scope and query length when includeMesh is toggled on.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:36:40 -04:00
Raven ScottandCursor e959a48f1c fix(platform): guild.open error log and refreshSearch mesh-off early return
Log guild.open error when _openGuild fails for diagnostics filtering.
refreshSearch returns immediately on mesh-off with scope in skipped debug log.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:27:24 -04:00
Raven ScottandCursor 5c4eca2480 feat(v0.8.281): setSearch mesh-off debug and guild.voice error logging
Log guild.search setSearch mesh-off when includeMesh is disabled.
Wrap guild voice init with guild.voice error on failure.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:18:57 -04:00
Raven ScottandCursor e17670066e feat(v0.8.280): guild mesh error logging and refresh skip debug
Log guild.mesh error when joinMesh fails during guild open. Log
guild.search refresh skipped with mesh-off reason in maybeRefreshStaleSearch.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:13:45 -04:00
Raven ScottandCursor 7ff4a4cf3a feat(v0.8.279): setSearch mesh-on scope change debug log
Log guild.search setSearch mesh-on scope change when includeMesh is on and
search scope changes between channel, forum, and guild.

Co-authored-by: Cursor <[email protected]>
2026-05-23 09:06:41 -04:00
Raven ScottandCursor 9e61a270ae feat(v0.8.278): refreshSearch cache hit debug logging
Skip invalidate when search cache is still valid and log guild.search refresh
cache hit with scope at debug level.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:54:24 -04:00
Raven ScottandCursor 18ba1e597d fix(search): log debug when setSearch unchanged hits cache
Emit guild.search unchanged cache hit with scope before the generic
unchanged log for mesh-on and mesh-off duplicate queries.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:48:48 -04:00
Raven ScottandCursor 953147d8f1 fix(search): log debug on refreshSearch with mesh disabled
Emit guild.search refresh mesh-off before cache invalidation when
includeMesh is false to aid diagnostics during local-only refresh.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:43:15 -04:00
Raven ScottandCursor dc3ffd78f7 fix(search): log mesh-off when setSearch query unchanged
Emit guild.search unchanged mesh-off at debug when duplicate search
runs with mesh disabled to distinguish from mesh-on no-ops.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:39:04 -04:00
Raven ScottandCursor 0fb10c4927 fix(search): log debug when refreshSearch is skipped
Emit guild.search refresh skipped with reason and query length for short
or missing queries to aid diagnostics during mesh-off refresh flows.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:33:49 -04:00
Raven ScottandCursor 2f88791593 feat(search): log guild.search unchanged at debug on setSearch no-op
Helps diagnose redundant search IPC and cache hits during light view
polling without spamming info-level guild.search spans.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:26:30 -04:00
Raven ScottandCursor 5188f6ea28 fix(search): clear searchUnchanged at start of every view()
Move the one-tick searchUnchanged flag to the top of view() so full and
light polls both consume it once before async work begins.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:21:16 -04:00
Raven ScottandCursor 7ebb5b945c fix(search): clear searchUnchanged after one view() tick
Expose duplicate setSearch as a single-view flag so UI and agentctl can
detect no-op searches without the flag sticking across polls.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:16:28 -04:00
Raven ScottandCursor 756b789ec5 fix(search): honor in-memory cache on unchanged setSearch and full view
Repeated setSearch with the same query now marks searchResultsCached when
the resolve cache is still valid, and cache hits apply to full view() polls
so agentctl and headless sessions do not re-run guild.search every tick.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:10:46 -04:00
Raven ScottandCursor 06db01f632 feat(search): setSearch no-op when unchanged; thread notify parent
Skip cache invalidation when search query/scope/mesh unchanged.
Pass parent channel name into notifications for thread messages.

Co-authored-by: Cursor <[email protected]>
2026-05-23 08:03:11 -04:00
Raven ScottandCursor 1389cdb172 fix(send): @here/@everyone use parent perms in threads
Thread channels inherit mention permissions from the parent text
channel. refreshSearch no-ops when the query is shorter than two chars.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:57:44 -04:00
Raven ScottandCursor 84dc333b6f fix(search): scope-aware refresh and forum cache invalidation
refreshSearch validates channel/forum scope before invalidating cache.
Forum archived toggle only busts search cache when forum scope is active.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:52:49 -04:00
Raven ScottandCursor 45bdab1fda fix(search): channel scope uses messages.history and cache guards
Prefer aligned messages.history for channel search, fall back to db
with channelId filter, and invalidate stale cache on channel switch.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:46:53 -04:00
Raven ScottandCursor 23ceb91db0 feat(platform): Phase 303 channel search rank and forum refresh (v0.8.265)
Rank channel-scoped search hits with pearcord-search; refreshSearch on
forumIncludeArchived toggle; debug log when light view skips listMembers.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:33:57 -04:00
Raven ScottandCursor 1d07463e01 feat(platform): Phase 302 search cache, channel scope, thread perms (v0.8.264)
Invalidate forum search cache on forum channel switch; add channel-scoped
_resolveSearchResults, forum archived hidden count, parentChannelPermissions,
cache-hit guild.search debug span, and skip listMembers during guild loading.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:29:13 -04:00
Raven ScottandCursor 167f0991cf feat(platform): guild-switch search cache safety and voice labels
Bust search cache at loadGuild/openHome/createGuild and on superseded
loads. Track guild id on cache entries; expose searchResultsCached.
Log cache misses at debug. Clear refreshing in refreshSearch finally.
Voice roster includes streamingLabel from screen share gossip.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:22:42 -04:00
Raven ScottandCursor 082929693b feat(platform): search cache invalidation and voice streaming state
Invalidate search cache on refresh, guild load, and forum archived toggle.
Log light-view cache hits at debug. Distinct @here permission error.
Expose streaming flag on voice roster from active screen shares.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:15:26 -04:00
Raven ScottandCursor fab95833fd fix(platform): forum search from post thread + light search cache
Resolve forum parent when active channel is a forum post thread so
forum-scoped search works after creating or viewing a post. Cache search
results for view(light), expose searchMs on mesh meta, and log superseded
guild loads at info.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:10:32 -04:00
Raven ScottandCursor 821d90afa5 feat(v0.8.260): guild search spans, superseded load, mention gate
Log guild.search around _resolveSearchResults, abort stale guild opens
after mesh join when load generation advances, and require MENTION_EVERYONE
for @everyone/@here sends.

Co-authored-by: Cursor <[email protected]>
2026-05-23 07:03:51 -04:00
Raven ScottandCursor 593dcd2b94 Complete Phase 297 observability spans and thread mentions (v0.8.259).
Log guild.open.selectChannel; pass mentionAlerts into buildThreadsPanel; deep-link guildId fallback.

Co-authored-by: Cursor <[email protected]>
2026-05-23 06:53:03 -04:00
Raven ScottandCursor 410193e080 Diagnostics JSONL meta line and view.light list timing spans.
writeDiagnosticsJsonl prepends diagnostics-meta with composerTraceCount; light view logs listChannels and listMembers separately.

Co-authored-by: Cursor <[email protected]>
2026-05-23 06:45:53 -04:00
Raven ScottandCursor 4d429a0985 Add guild.open listChannels and listMembers timing spans.
Parallel fetch during _openGuild is logged separately for load diagnostics in pearcord.log.

Co-authored-by: Cursor <[email protected]>
2026-05-23 06:40:26 -04:00
Raven ScottandCursor 6ce8575404 Expose formatSettingsDeepLink on platform API.
Wraps shared buildSettingsDeepLink for pearcord://settings URLs used by the settings copy-link button.

Co-authored-by: Cursor <[email protected]>
2026-05-23 06:33:51 -04:00
Raven ScottandCursor 4aa0e85c32 Handle pearcord://settings in navigateDeepLink.
Opens user or guild settings panels via deep-link-result without requiring guild load.

Co-authored-by: Cursor <[email protected]>
2026-05-23 06:27:39 -04:00
Raven ScottandCursor 3ae5581460 Add writeDiagnosticsJsonl for UI diagnostics panel export.
Persists filtered JSONL lines from the renderer to storage so agents and support can attach logs without clipboard limits.

Co-authored-by: Cursor <[email protected]>
2026-05-23 06:22:20 -04:00