Commit Graph
215 Commits
Author SHA1 Message Date
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
Raven ScottandCursor b35f407106 docs(platform): note v0.8.252 search skip and prefetch guards
Co-authored-by: Cursor <[email protected]>
2026-05-23 05:32:50 -04:00
Raven ScottandCursor 2afaff3426 feat(platform): skip guild search and warm emoji when channels locked
When guild open has no viewable channels, skip mesh search refresh and
resolve empty results with skip metadata. Emoji batch prefetch honors the
negative miss cache; sticker gossip prefetch waits for attachments module.
Session startup logs INFO when initial guild mesh flush was bounded.

Co-authored-by: Cursor <[email protected]>
2026-05-23 05:32:25 -04:00
Raven ScottandCursor caec052e0b feat(platform): session startup INFO on bounded mesh and emoji prefetch
Log session.startup at info when guild mesh flush was bounded, skip forum
stale search until a forum channel is active, batch-prefetch emoji attachments
after guild open, and guard sticker prefetch until attachments exist.

Co-authored-by: Cursor <[email protected]>
2026-05-23 05:22:13 -04:00
Raven ScottandCursor 172407468d fix(platform): guild load/search polish and bounded-mesh log levels
Downgrade slow guild.open and guild.load spans to info when mesh flush
was bounded, skip stale search refresh until a channel is selected, and
defer sticker attachment prefetch until the emoji registry is initialized.

Co-authored-by: Cursor <[email protected]>
2026-05-23 05:13:15 -04:00
Raven ScottandCursor 3fce1d4c94 fix(platform): always surface guild slash commands in view
Init registry and ensure builtins when the command list is empty so the
composer picker has /help and /ping after guild open.

Co-authored-by: Cursor <[email protected]>
2026-05-23 05:05:51 -04:00
Raven ScottandCursor e2bf604bff fix(platform): guild.open INFO when no viewable channels (v0.8.249)
Avoid slow-open WARN when the user lacks view permission on all text
channels by passing logLevel info on the guild.open span.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:56:17 -04:00
Raven ScottandCursor 2c87352a8d fix(platform): guild access hints and deferred module init (v0.8.248)
Defer guild module wiring until after channel pick, expose no-viewable-channel
state on the view, and clear emoji miss cache when mesh prefetch succeeds.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:50:04 -04:00
Raven ScottandCursor 130c2c4528 fix(v0.8.247): viewable channel pick, emoji/sticker prefetch, perf
_selectGuildChannelWithUnread skips channels without view permission.
Prefetch emoji/sticker bytes on gossip, parallel listChannels+members
in view(), joinMesh span INFO when flush is bounded.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:43:08 -04:00
Raven ScottandCursor 4d871dfafc feat(v0.8.246): parallel session meshes and emoji miss cache
Join discovery, contacts, and settings meshes in parallel after guild
load. Cache negative emoji attachment lookups with TTL to avoid
retry storms.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:37:17 -04:00
Raven ScottandCursor 8954916895 feat: light view() polls with cached devices list
view(opts) accepts { light: true } to reuse deviceSync.listDevices()
for up to PEARCORD_VIEW_DEVICES_CACHE_MS on hot poll paths.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:31:18 -04:00
Raven ScottandCursor 00a8869663 fix(emoji): sync attachment meta from gossip; graceful image miss
Ensure EMOJI_UPSERT rows hydrate attachments store, return null from
readEmojiImage when bytes are missing, and log mesh flush timeout at INFO.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:23:16 -04:00
Raven ScottandCursor dfe370d72d perf(guild): bounded mesh flush, open sub-spans, defer heavy init
Cap Hyperswarm flush at PEARCORD_GUILD_SWARM_FLUSH_MS, log sub-spans for
leave/join/voice, defer guild modules and discovery touch off critical path.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:15:24 -04:00
Raven ScottandCursor 1813708714 fix(compose): silent setComposeDraft without local prefs notify
Co-authored-by: Cursor <[email protected]>
2026-05-23 04:10:24 -04:00
Raven ScottandCursor ccedd20edf feat(log): platform session and guild load spans
Wire pearcord-log for ready(), session startup, loadGuild, and openGuild
with stale-load warnings and structured errors.

Co-authored-by: Cursor <[email protected]>
2026-05-23 04:02:53 -04:00
Raven ScottandCursor c4146fa079 fix(platform): sessionReady and guildLoading view fields (v0.8.237)
Expose boot/switch loading state, always emit session-ready in finally,
ignore stale loadGuild via generation counter, and cancel load on openHome.

Co-authored-by: Cursor <[email protected]>
2026-05-23 03:37:42 -04:00
Raven ScottandCursor c36c5799e4 feat(platform): updateGuildSettings nsfwGateEnabled (v0.8.174)
Expose server-wide age-restricted gate toggle through updateGuildSettings and
include nsfwGateEnabled in guild view snapshots for UI gate logic.

Co-authored-by: Cursor <[email protected]>
2026-05-22 22:48:40 -04:00
Raven ScottandCursor 25a4a48a1e Add setChannelNsfw for age-restricted channel marking
Manage Channels permission updates nsfw flag with audit log and channel gossip.

Co-authored-by: Cursor <[email protected]>
2026-05-22 22:35:53 -04:00
Raven ScottandCursor df0060623c Expose slowmode remaining and voice user limit APIs
Compute slowmodeRemainingSec for composer UI, setChannelUserLimit, and capacity checks on voice/stage join.

Co-authored-by: Cursor <[email protected]>
2026-05-22 22:25:38 -04:00
Raven ScottandCursor aa91e1a0ff Expose emoji-only layout and renameChannel for GUI
messageLayoutKind returns emoji-only; renameChannel gossips category/channel name updates for inline sidebar rename.

Co-authored-by: Cursor <[email protected]>
2026-05-22 22:17:44 -04:00
Raven ScottandCursor 21a5f7984b feat(platform): include custom role names in mentionNames (v0.8.170)
Role @mentions in composer autocomplete highlight in message rendering.

Co-authored-by: Cursor <[email protected]>
2026-05-22 22:05:57 -04:00
Raven ScottandCursor 45cf74ec42 feat(platform): moveChannelToParent with gossip and audit (v0.8.168)
Expose channel parent moves for Manage Channels permission holders.

Co-authored-by: Cursor <[email protected]>
2026-05-22 21:55:29 -04:00