修复 #3:以手动快照同步替代微信增量轮询 - #7
Merged
Merged
Conversation
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.
Closes #3.
wechat_get_updatespreviously polled an archive that never imported new messages after the initial load. Replace that behavior with explicitwechat_sync(conversation)and a 手动同步 button on each approved conversation. Approval leaves a new conversation waiting for its first manual sync; query tools read the resulting archive without polling.The pinned backend reads a finite snapshot from each source shard and resumes saved rowid positions, deferring subsequent arrivals until the next sync. It commits messages and cursors together, includes late/backdated newly appended rows and discovers new shards. Every archive read, including empty results and media tool responses, reports last_synced_at (null until first successful sync); lists/status carry the time per conversation. Failed syncs leave the time unchanged. Archive-only updates do not suggest a live source check. The obsolete session-index readiness error no longer blocks manual sync.
Docs/WeChat/IMPLEMENTATION.md.WeChat settings use the positive “图片配置可用” status (requiring a configured image key and no config error). Remove the “WeChat 自用构建 · 自动更新已关闭” text below Settings.