René's URL Explorer Experiment


Title: mcpx stats: grouped opencode statistics always report messages: 0 (Group.Messages never populated) · Issue #261 · developing-today/code · GitHub

Open Graph Title: mcpx stats: grouped opencode statistics always report messages: 0 (Group.Messages never populated) · Issue #261 · developing-today/code

X Title: mcpx stats: grouped opencode statistics always report messages: 0 (Group.Messages never populated) · Issue #261 · developing-today/code

Description: Contribute to developing-today/code development by creating an account on GitHub.

Open Graph Description: Contribute to developing-today/code development by creating an account on GitHub.

X Description: Contribute to developing-today/code development by creating an account on GitHub.

Opengraph URL: https://github.com/developing-today/code

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx stats: grouped opencode statistics always report messages: 0 (Group.Messages never populated)","articleBody":"## Problem\n\n`mcpx stats` grouped opencode statistics always report `messages: 0`, even for sessions that have messages.\n\nThis is the same defect as dezren39/nix#393 (fixed there by dezren39/nix PR #394), present in this repo's `pkgs/mcpx` copy and not fixed here. Verified on main (54c223ce): this repo's `pkgs/mcpx/internal/opencode/opencode.go` is byte-identical to the pre-fix version in dezren39/nix.\n\n## Evidence\n\n- `pkgs/mcpx/internal/opencode/opencode.go:175-182` — `Group` declares `Messages int64 \\`json:\"messages\"\\``.\n- `pkgs/mcpx/internal/opencode/opencode.go:214` — `ByModel` merges groups with `m.Messages += g.Messages`, so the field is expected to be populated.\n- `pkgs/mcpx/internal/opencode/opencode.go:259-287` — `group()` (used by `ByAgent`, `ByModel`, `ByProject`) builds `SELECT %s AS k, count(*), %s, %s, %s FROM session ...` (key, session count, cost, tokens in, tokens out — no message count) and scans only `&g.Key, &g.Sessions, &g.Cost, &g.TokensIn, &g.TokensOut`. `Group.Messages` is therefore never populated and always serializes as `0`.\n- There is no test file at all in `pkgs/mcpx/internal/opencode/` in this repo, so nothing catches it.\n- Contrast: `Busiest` in the same file does count messages per session with a correlated subquery on `message.session_id`, which is the pattern the fix should reuse.\n\n## Why it matters\n\nAnyone reading grouped stats (by agent / model / project) from this repo's mcpx gets a permanently-zero message count — a silently wrong number, not a missing field — while totals and per-session views report real counts, so the outputs contradict each other.\n\n## Acceptance criteria\n\n- `group()` populates `Group.Messages` as the sum, over the group's sessions, of messages per session (correlated subquery on `message.session_id`, as `Busiest` uses).\n- A schema whose `message` table has no `session_id` column degrades to `messages: 0` instead of failing the statistic (guard with the existing `has(\"message\", \"session_id\")` helper).\n- New tests in `pkgs/mcpx/internal/opencode/` (first test file for the package) cover: grouped counts by agent, `ByModel` merging summing messages across sessions sharing a model, and the missing-`session_id` degradation case.\n- Reference implementation and tests: dezren39/nix PR #394 (commit d308cf5) — the fix should mirror it, since the two copies of this file were identical before that fix.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-18T09:02:08Z","url":"https://github.com/developing-today/code/issues/261"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:3bc11f93-ac1b-e070-9740-c6c51b38d909
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE0E0:1E2325:5C2AAF:7E7FB8:6B068E54
html-safe-nonce0037f6a11b21236346fede5e2f1d3ef78982f43482d2e2ee6606ccca8be6ee3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUwOjFFMjMyNTo1QzJBQUY6N0U3RkI4OjZCMDY4RTU0IiwidmlzaXRvcl9pZCI6IjYxOTU3MzExMjc5MTIwMDkzMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac64aab3395a97abfa10b5cba2c20b85d9e1e42c36a79dee66cdf5ac22131a7008
hovercard-subject-tagrepository:627308783
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/developing-today/code/issues/261
twitter:imagehttps://opengraph.githubassets.com/c1a2d415bd2c796fea2e23b2fed64a1efc7802730482e5b3777242c3e81bd5e2/developing-today/code
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1a2d415bd2c796fea2e23b2fed64a1efc7802730482e5b3777242c3e81bd5e2/developing-today/code
og:image:altContribute to developing-today/code development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-cache
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/261#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F261
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F261
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/261
Reloadhttps://github.com/developing-today/code/issues/261
Reloadhttps://github.com/developing-today/code/issues/261
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/261
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/261
#262https://github.com/developing-today/code/pull/262
mcpx stats: grouped opencode statistics always report messages: 0 (Group.Messages never populated)https://github.com/developing-today/code/issues/261#top
#262https://github.com/developing-today/code/pull/262
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 18, 2026https://github.com/developing-today/code/issues/261#issue-5907906169
dezren39/darwin-nix#393https://github.com/dezren39/darwin-nix/issues/393
#394https://github.com/developing-today/code/issues/394
54c223chttps://github.com/developing-today/code/commit/54c223ce040d27d034c049372c231ccbe54bbc86
ci: goreleaser and both Jules daily workflows pin checkout/setup-go three majors behind the repo (v4 vs v7) #394https://github.com/developing-today/code/issues/394
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 18, 2026https://github.com/developing-today/code/issues/261#event-33563620901
dezren39https://github.com/dezren39
on Oct 18, 2026https://github.com/developing-today/code/issues/261#event-33563804610
Merge pull request #262 from developing-today/creator/261-group-messageshttps://github.com/developing-today/code/commit/2b46689e7d72a7abbf0b54c54f54f4a6bffa4764
#262https://github.com/developing-today/code/pull/262
2b46689https://github.com/developing-today/code/commit/2b46689e7d72a7abbf0b54c54f54f4a6bffa4764
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#262https://github.com/developing-today/code/pull/262
on Oct 18, 2026https://github.com/developing-today/code/issues/261#event-33563804857
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/261
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/261
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.