Title: mcpx: dogfood .opencode plugin copy is stale — ops.gen.ts missing 9 operations (secrets, reload, preflight, servers_get), no drift guard · Issue #314 · developing-today/code · GitHub
Open Graph Title: mcpx: dogfood .opencode plugin copy is stale — ops.gen.ts missing 9 operations (secrets, reload, preflight, servers_get), no drift guard · Issue #314 · developing-today/code
X Title: mcpx: dogfood .opencode plugin copy is stale — ops.gen.ts missing 9 operations (secrets, reload, preflight, servers_get), no drift guard · Issue #314 · developing-today/code
Description: What is wrong This repo dogfoods the mcpx opencode plugin: .opencode/plugin/mcpx-session.ts + .opencode/plugin/mcpx/ are a copy of the shipped plugin in pkgs/mcpx/plugin/opencode/, installed in commit 0a56e58 (2026-10-09, "install openco...
Open Graph Description: What is wrong This repo dogfoods the mcpx opencode plugin: .opencode/plugin/mcpx-session.ts + .opencode/plugin/mcpx/ are a copy of the shipped plugin in pkgs/mcpx/plugin/opencode/, installed in com...
X Description: What is wrong This repo dogfoods the mcpx opencode plugin: .opencode/plugin/mcpx-session.ts + .opencode/plugin/mcpx/ are a copy of the shipped plugin in pkgs/mcpx/plugin/opencode/, installed in com...
Opengraph URL: https://github.com/developing-today/code/issues/314
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx: dogfood .opencode plugin copy is stale — ops.gen.ts missing 9 operations (secrets, reload, preflight, servers_get), no drift guard","articleBody":"## What is wrong\n\nThis repo dogfoods the mcpx opencode plugin: `.opencode/plugin/mcpx-session.ts` + `.opencode/plugin/mcpx/` are a copy of the shipped plugin in `pkgs/mcpx/plugin/opencode/`, installed in commit 0a56e58c (2026-10-09, \"install opencode plugin\"). The copy was never re-synced afterwards, and its generated operation table has fallen behind `/v1`:\n\nVerified on main `3e783d93` with `diff -r .opencode/plugin/mcpx pkgs/mcpx/plugin/opencode/mcpx` — the **only** differing file is `ops.gen.ts`:\n\n- `.opencode/plugin/mcpx/ops.gen.ts`: **72** operations\n- `pkgs/mcpx/plugin/opencode/mcpx/ops.gen.ts`: **81** operations\n\nMissing from the dogfood copy (9 ops, with the pkgs commits that added them):\n\n- `preflight` (`POST /v1/preflight`) and `reload` (`POST /v1/reload`) — ea15a2a0 (2026-10-09, hot reload)\n- `secrets_list`, `secrets_set`, `secrets_unset`, `secret_requests_list`, `secret_request_get`, `secret_request_decline` — d1078157 (2026-10-11, in-memory secrets)\n- `servers_get` (`GET /v1/servers/{name}`)\n\nEvery other file in the two trees is byte-identical (`mcpx-session.ts`, `daemon.ts`, `daemon.test.ts`, `ceiling.test.ts`, `ops.test.ts`), which is what makes the one stale file easy to miss.\n\n## Why it matters\n\n- An agent working in this repo through its own `.opencode` plugin has no typed `DaemonClient.ops` methods for secrets, reload, preflight or single-server status — the exact surfaces added since the install. Calls to them fail as missing methods instead of reaching the daemon.\n- Nothing catches the drift: the generation guard `TestPluginOpsAreGenerated` (`pkgs/mcpx/internal/api/plugin_ts_test.go:13`) only compares the **pkgs** copy (`pluginOpsPath = \"../../plugin/opencode/mcpx/ops.gen.ts\"`). No test, script or workflow compares the two trees, and `mcpx.yml`'s trigger paths don't even include `.opencode/plugin/**`, so a PR that only touches the dogfood copy runs no mcpx CI.\n\n## Suggested fix\n\n1. Regenerate/copy the current generated table into `.opencode/plugin/mcpx/ops.gen.ts` so both trees are identical again.\n2. Add a drift guard where it belongs — at this repo's level, not inside `pkgs/mcpx` (that package also lives standalone in dezren39/nix, where a repo-root `.opencode` copy does not exist): e.g. a step in `.github/workflows/mcpx.yml` running `diff -r pkgs/mcpx/plugin/opencode/mcpx .opencode/plugin/mcpx` plus the `mcpx-session.ts` comparison, with `.opencode/plugin/**` added to that workflow's PR/push paths.\n\n## Acceptance criteria\n\n- [ ] `diff -r .opencode/plugin/mcpx pkgs/mcpx/plugin/opencode/mcpx` is clean on main (both at 81 ops).\n- [ ] A deliberate one-line change to either copy makes the new guard fail; removing it makes it pass.\n- [ ] The pkgs generation test (`go test ./internal/api -run TestPluginOpsAreGenerated`) still passes, and the plugin bun tests pass against the synced copy.\n- [ ] The guard does not live inside `pkgs/mcpx`, so the standalone mcpx copy in dezren39/nix is unaffected.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-18T21:19:43Z","url":"https://github.com/developing-today/code/issues/314"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c416e0a-c8e2-1423-0cda-6cb5615e717b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9894:83B1:13F582F:1B86655:6B06BEF4 |
| html-safe-nonce | 575101113fcf079771d38ca77ae7a3adc3d2dfad4c2700981eb717bbd26666a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODk0OjgzQjE6MTNGNTgyRjoxQjg2NjU1OjZCMDZCRUY0IiwidmlzaXRvcl9pZCI6IjQzOTcwNzgzNzU3MzE0NzgyNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0713ff5efa4ef78aa9f3c2f299d8cb2382b676ac79704884e855a685ff3a320 |
| hovercard-subject-tag | issue:5914247305 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/314/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1d53def17548bed57658db055549b1542c03f51750d9a0ee73b42a96061c843/developing-today/code/issues/314 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1d53def17548bed57658db055549b1542c03f51750d9a0ee73b42a96061c843/developing-today/code/issues/314 |
| og:image:alt | What is wrong This repo dogfoods the mcpx opencode plugin: .opencode/plugin/mcpx-session.ts + .opencode/plugin/mcpx/ are a copy of the shipped plugin in pkgs/mcpx/plugin/opencode/, installed in com... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 32031aaff792fa7ad778f7418e1fbfc0d525a5779804329b769aa75230448a18 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 37014d914b7d14eede971655595f687a0202af40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width