Conversation
MAX sends `stats.views` with each channel post in CHAT_HISTORY (measured 2026-10-05 with the new `pnpm probe:channel-posts`, which prints key paths and value types only). toMessage puts it into providerMetadata, where the shared store keeps it and `chats stats` sums it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
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.
Task
Admin statistics, plan item 5: does MAX give channel post views, and if so, keep them.
Why
chats statssums views where a stored post carries them; on MAX nothing did.What
scripts/probe-channel-posts.ts(pnpm probe:channel-posts <chatId>): one page of history and the chat's login entry, printed as key paths and value types only — no text, names, links or ids.stats.views: number. No comment count seen (comments are off there).toMessagemapsstats.viewstoproviderMetadata.views; absent when MAX sends none.Testing
map.test.ts: a post with views, a message without.pnpm lint && pnpm typecheck && pnpm test: 1398 passed; 6 failed only under full-suite load and pass alone (176/176 in those files).🤖 Generated with Claude Code