feat: Discord Channels 页面渐进式加载#130
Merged
Keith-CY merged 2 commits intofeat/recipe-import-libraryfrom Mar 16, 2026
Merged
Conversation
- Guild names show spinner when name equals ID and full data pending - Channel names show mono ID + spinner when unresolved, normal text once resolved - Agent dropdown initializes from persisted cache for instant population - Uses discordChannelsResolved from InstanceContext (set by App.tsx fast/full loading)
Keith-CY
approved these changes
Mar 16, 2026
Collaborator
Keith-CY
left a comment
There was a problem hiding this comment.
Reviewed PR #130. Changes are clean and align with existing progressive-loading flow. No blocking issues found; loading/agent cache fallback behavior looks correct. Typecheck/tests pass locally (, 🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
优化 Channels 页面 Discord 区域的加载体验。
改动前
进入 Channels 页 →
Loading Discord...等待 2-5s → 数据一次性出现改动后
改动文件
src/pages/Channels.tsx(+27/-3)readPersistedReadCache("listAgents")初始化,无需等待getChannelsRuntimeSnapshotdiscordChannelsResolvedfromInstanceContextdocs/plans/discord-channels-progressive-loading.md— 设计文档依赖(已在 base 分支实现)
list_discord_guild_channels_fast后端命令refreshDiscordChannelsCacheFast(App.tsx)discordChannelsResolved(InstanceContext)基于
feat/recipe-import-library(PR #118)