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]>
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]>
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]>
refreshSearch emits guild.search refresh cache miss before mesh-on
invalidation, both including scope and includeMesh for diagnostics.
Co-authored-by: Cursor <[email protected]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
Skip cache invalidation when search query/scope/mesh unchanged.
Pass parent channel name into notifications for thread messages.
Co-authored-by: Cursor <[email protected]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
_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]>
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]>
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]>
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]>
Wire pearcord-log for ready(), session startup, loadGuild, and openGuild
with stale-load warnings and structured errors.
Co-authored-by: Cursor <[email protected]>