Skip to content

ci(quality): gate PRs on React Doctor errors in changed lines - #7931

Open
tylerslaton wants to merge 4 commits into
mainfrom
tylerslaton/react-doctor-vue-integration
Open

tylerslaton wants to merge 4 commits into
mainfrom
tylerslaton/react-doctor-vue-integration

Conversation

@tylerslaton

@tylerslaton tylerslaton commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds React Doctor as a quality gate for CopilotKit's non-deprecated React packages, so agents can't land the React bugs it detects (conditional hooks, writing ref.current during render, missing effect cleanup, and so on). Agents hit it while they build, not only in CI.

Where What it checks Blocks on
react-doctor job in static / quality (PRs and the merge queue) lines the PR adds or changes vs origin/main errors
lefthook pre-commit hook (~1s) lines staged in the commit errors
pnpm run react-doctor (local; fetches origin/main first) lines changed vs origin/main errors

Warnings are printed but never block. Existing findings on lines a PR doesn't touch are ignored, so unrelated PRs aren't blocked. Main currently has 71 errors in scope, and #7935 (stacked on this PR) fixes all of them.

Details

  • Scope: doctor.config.jsonc checks react-core, react-native, a2ui-renderer, channels, channels-core and channels-ui. Deprecated code is out: react-ui (whose only v2 export is CSS), react-textarea, and react-core's v1-deprecated/. Tests and mocks are also excluded.
  • No inline disables: respectInlineDisables: false, so react-doctor-disable comments are ignored and the only way past an error is to fix it. The pre-commit hook and CI enforce this the same way.
  • No double reporting: adoptExistingLintConfig: false, because the oxlint job already enforces .oxlintrc.json.
  • Local only: the score API, share URL, crash reporting and the Socket.dev dependency lookup are off.
  • Install: React Doctor 0.9.18 is an exact-pinned root devDependency, so it never ships with any package.
    • The lockfile adds its dependency tree; no workspace package's direct dependency versions change.
    • @opentelemetry/api is pinned to 1.9.0 with an override. The install would otherwise move it to 1.10.0, outside the <1.10.0 peer range of the OpenTelemetry 2.x SDK packages.
    • The remaining peer shifts are lightningcss 1.32.0 → 1.33.0 under Vite and jiti settling on 2.7.0.
    • engines.node rises to React Doctor's range (^20.19.0 || >=22.13.0).
  • Runs on every PR: static / quality no longer skips README.md and examples/**. Without that, a required check would never report on PRs that only touch those paths.
  • Merge queue: static / quality also triggers on merge_group. Only react-doctor runs there; the other jobs skip it.
  • Agent docs: CLAUDE.md and AGENTS.md describe the check and say inline disables are ignored.

After the stack merges: make it required

The PROTECT_OUR_MAIN ruleset only requires Intelligence runtime conformance today. Add react-doctor after this PR and #7941 (which removes the CI auto-formatter) have merged. Until then, the check doesn't exist on main, and a formatter push would leave a PR without the check.

gh api repos/CopilotKit/CopilotKit/rulesets/14521235 \
  | jq '{name, target, enforcement, conditions, bypass_actors, rules: [.rules[] | if .type == "required_status_checks" then .parameters.required_status_checks += [{"context": "react-doctor", "integration_id": 15368}] else . end]}' \
  | gh api -X PUT repos/CopilotKit/CopilotKit/rulesets/14521235 --input -

Testing

  • No React changes: the check exits 0 and skips every package. CI confirmed this on an earlier push of this PR.
  • New conditional hook: the check exits 1 and reports only the new line. The same applies with a react-doctor-disable-next-line comment on it, both in the CI mode and in the pre-commit mode.
  • Full scan: 71 errors (the existing debt that fix: resolve all React Doctor errors in the non-deprecated React packages #7935 fixes).
  • All 32 JS packages: test, publint and attw pass with the new lockfile. actionlint passes.

Related PRs and Issues

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores

    • Added React Doctor checks for changed lines in configured React packages. Errors block the quality check; warnings do not.
    • React Doctor runs on staged files during pre-commit checks and in the quality workflow, including for merge queue events.
    • Updated the required Node.js versions for development.
  • Documentation

    • Added guidance on running React Doctor and addressing reported errors.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between c7c9ed4 and cfd7018.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !**/pnpm-lock.yaml
📒 Files selected for processing: 5
  • .github/workflows/static_quality.yml
  • AGENTS.md
  • CLAUDE.md
  • doctor.config.jsonc
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

📝 Walkthrough

The change configures React Doctor for selected projects and adds local and CI checks for changed lines. The static quality workflow now handles merge-group events and skips selected existing jobs for those events. The package metadata also updates the Node engine requirement and pins an OpenTelemetry API version.

Changes: React Doctor integration

Layer / File(s) Summary
Configure React Doctor
doctor.config.jsonc, package.json
The configuration selects six projects and excludes deprecated v1, test, and mock paths. The package adds the React Doctor dependency and changed-line script. It also updates the Node engine requirement and pins @opentelemetry/api to 1.9.0.
Add local checks
lefthook.yml, AGENTS.md, CLAUDE.md
The pre-commit hook checks staged changed lines in package files. Contributor guidance describes blocking errors, non-blocking warnings, and the command to run.
Run React Doctor in CI
.github/workflows/static_quality.yml
The workflow runs React Doctor except on pushes. It now runs on merge-group events, removes README and example path exclusions, and skips oxlint, package-quality, check-types, and commitlint for merge-group events.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to cfd70

This PR adds a React Doctor quality gate for changed lines in local, pre-commit and CI workflows. It does not reduce existing merge-queue checks, and no merge-blocking issues were identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely identifies the main change: using React Doctor errors in changed lines as a CI quality gate for pull requests.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (5 skipped: 5 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 1.83 MB

ℹ️ View Unchanged
Filename Size
packages/a2ui-renderer/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/a2ui-renderer/dist/a2ui-types.cjs 472 B
packages/a2ui-renderer/dist/a2ui-types.mjs 469 B
packages/a2ui-renderer/dist/index.cjs 959 B
packages/a2ui-renderer/dist/index.mjs 637 B
packages/a2ui-renderer/dist/index.umd.js 13.4 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.cjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.mjs 1.46 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.cjs 1.57 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.mjs 1.5 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.cjs 904 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.mjs 492 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.cjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.mjs 603 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.cjs 829 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.mjs 419 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.cjs 1.1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.cjs 799 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.mjs 737 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.cjs 1.64 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.mjs 1.57 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.cjs 1.12 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.mjs 1.05 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.cjs 842 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.mjs 432 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.cjs 877 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.mjs 469 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.cjs 995 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.mjs 587 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.cjs 1.2 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.mjs 1.14 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.cjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.mjs 801 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.cjs 1.06 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.mjs 984 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.cjs 1.1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.mjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.cjs 903 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.mjs 489 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.mjs 1.14 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.cjs 788 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.mjs 378 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.cjs 928 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.mjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.cjs 579 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.mjs 556 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.cjs 989 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.mjs 584 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.cjs 800 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.mjs 735 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.cjs 1.08 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.mjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.cjs 894 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.mjs 839 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.cjs 849 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.mjs 804 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.cjs 310 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.mjs 325 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.cjs 1.59 kB
packages/a2ui-renderer/dist/react-renderer/catalog-utils.mjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.cjs 1.5 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.mjs 1.42 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.cjs 728 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.mjs 671 B
packages/a2ui-renderer/dist/react-renderer/create-catalog.cjs 1.35 kB
packages/a2ui-renderer/dist/react-renderer/create-catalog.mjs 1.28 kB
packages/a2ui-renderer/dist/react-renderer/filter-catalog.cjs 622 B
packages/a2ui-renderer/dist/react-renderer/filter-catalog.mjs 569 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.cjs 316 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.mjs 309 B
packages/a2ui-renderer/dist/react-renderer/index.cjs 409 B
packages/a2ui-renderer/dist/react-renderer/index.mjs 568 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.cjs 236 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.mjs 188 B
packages/a2ui-renderer/dist/react-renderer/styles/index.cjs 239 B
packages/a2ui-renderer/dist/react-renderer/styles/index.mjs 231 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.cjs 436 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.mjs 381 B
packages/core/dist/index.cjs 89.7 kB
packages/core/dist/index.mjs 89.2 kB
packages/core/dist/index.umd.js 95.5 kB
packages/mcp-apps-renderer/dist/activity.cjs 259 B
packages/mcp-apps-renderer/dist/activity.mjs 170 B
packages/mcp-apps-renderer/dist/activity.umd.js 2.24 kB
packages/mcp-apps-renderer/dist/constants.cjs 714 B
packages/mcp-apps-renderer/dist/constants.mjs 712 B
packages/mcp-apps-renderer/dist/content-schema.cjs 768 B
packages/mcp-apps-renderer/dist/content-schema.mjs 765 B
packages/mcp-apps-renderer/dist/follow-up.cjs 796 B
packages/mcp-apps-renderer/dist/follow-up.mjs 794 B
packages/mcp-apps-renderer/dist/index.mjs 354 B
packages/mcp-apps-renderer/dist/request-queue.mjs 2.39 kB
packages/mcp-apps-renderer/dist/sandbox.mjs 1.14 kB
packages/mcp-apps-renderer/dist/session.mjs 6.86 kB
packages/react-core/dist/copilotkit-Cae6z5WE.cjs 124 kB
packages/react-core/dist/copilotkit-DpjRIYze.mjs 127 kB
packages/react-core/dist/index.cjs 17.8 kB
packages/react-core/dist/index.mjs 17.7 kB
packages/react-core/dist/index.umd.js 69.8 kB
packages/react-core/dist/v2/context.cjs 1.58 kB
packages/react-core/dist/v2/context.mjs 1.5 kB
packages/react-core/dist/v2/headless.cjs 17.2 kB
packages/react-core/dist/v2/headless.mjs 16.7 kB
packages/react-core/dist/v2/index.cjs 4.1 kB
packages/react-core/dist/v2/index.mjs 4.1 kB
packages/react-core/dist/v2/index.umd.js 127 kB
packages/react-native/dist/chunk-C0xms8kb.cjs 546 B
packages/react-native/dist/components/index.cjs 8.65 kB
packages/react-native/dist/components/index.mjs 8.45 kB
packages/react-native/dist/CopilotKitProvider-CjoPnabW.cjs 1.55 kB
packages/react-native/dist/CopilotKitProvider-D8sn7G_C.mjs 1.43 kB
packages/react-native/dist/headless.cjs 632 B
packages/react-native/dist/headless.mjs 373 B
packages/react-native/dist/index.cjs 6.52 kB
packages/react-native/dist/index.mjs 6.14 kB
packages/react-native/dist/polyfills.cjs 195 B
packages/react-native/dist/polyfills.mjs 195 B
packages/react-native/dist/polyfills/crypto.cjs 373 B
packages/react-native/dist/polyfills/crypto.mjs 381 B
packages/react-native/dist/polyfills/dom.cjs 540 B
packages/react-native/dist/polyfills/dom.mjs 550 B
packages/react-native/dist/polyfills/encoding.cjs 332 B
packages/react-native/dist/polyfills/encoding.mjs 307 B
packages/react-native/dist/polyfills/location.cjs 236 B
packages/react-native/dist/polyfills/location.mjs 244 B
packages/react-native/dist/polyfills/streams.cjs 371 B
packages/react-native/dist/polyfills/streams.mjs 339 B
packages/react-native/dist/streaming-fetch-BnQh3vBz.mjs 2.22 kB
packages/react-native/dist/streaming-fetch-BTESzLKX.cjs 2.27 kB
packages/react-textarea/dist/index.cjs 17.6 kB
packages/react-textarea/dist/index.mjs 16.9 kB
packages/react-textarea/dist/index.umd.js 18.4 kB
packages/react-ui/dist/index.cjs 25.2 kB
packages/react-ui/dist/index.mjs 24.5 kB
packages/react-ui/dist/index.umd.js 26.4 kB
packages/runtime-client-gql/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/runtime-client-gql/dist/client/conversion.cjs 1.52 kB
packages/runtime-client-gql/dist/client/conversion.mjs 1.45 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.cjs 1.58 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.mjs 1.54 kB
packages/runtime-client-gql/dist/client/types.cjs 701 B
packages/runtime-client-gql/dist/client/types.mjs 642 B
packages/runtime-client-gql/dist/graphql/@generated/gql.cjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/gql.mjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/graphql.cjs 2.4 kB
packages/runtime-client-gql/dist/graphql/@generated/graphql.mjs 2.36 kB
packages/runtime-client-gql/dist/graphql/definitions/mutations.cjs 740 B
packages/runtime-client-gql/dist/graphql/definitions/mutations.mjs 732 B
packages/runtime-client-gql/dist/graphql/definitions/queries.cjs 316 B
packages/runtime-client-gql/dist/graphql/definitions/queries.mjs 304 B
packages/runtime-client-gql/dist/index.cjs 679 B
packages/runtime-client-gql/dist/index.mjs 495 B
packages/runtime-client-gql/dist/index.umd.js 9.58 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.cjs 1.72 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.mjs 1.7 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.cjs 1.56 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.mjs 1.53 kB
packages/runtime-client-gql/dist/package.cjs 181 B
packages/runtime-client-gql/dist/package.mjs 116 B
packages/shared/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/shared/dist/a2ui-prompts.cjs 2.85 kB
packages/shared/dist/a2ui-prompts.mjs 2.85 kB
packages/shared/dist/attachments/content.cjs 255 B
packages/shared/dist/attachments/content.mjs 253 B
packages/shared/dist/attachments/utils.cjs 1.83 kB
packages/shared/dist/attachments/utils.mjs 1.79 kB
packages/shared/dist/constants/index.cjs 362 B
packages/shared/dist/constants/index.mjs 345 B
packages/shared/dist/debug.cjs 454 B
packages/shared/dist/debug.mjs 452 B
packages/shared/dist/event-transforms/index.cjs 335 B
packages/shared/dist/event-transforms/index.mjs 165 B
packages/shared/dist/event-transforms/open-generative-ui-middleware.cjs 2.42 kB
packages/shared/dist/event-transforms/open-generative-ui-middleware.mjs 2.35 kB
packages/shared/dist/event-transforms/recorded-events.cjs 988 B
packages/shared/dist/event-transforms/recorded-events.mjs 925 B
packages/shared/dist/finalize-events.cjs 1.94 kB
packages/shared/dist/finalize-events.mjs 1.88 kB
packages/shared/dist/index.cjs 2.93 kB
packages/shared/dist/index.mjs 2.5 kB
packages/shared/dist/index.umd.js 32.2 kB
packages/shared/dist/intelligence-routing-fields.cjs 778 B
packages/shared/dist/intelligence-routing-fields.mjs 775 B
packages/shared/dist/logger.cjs 112 B
packages/shared/dist/logger.mjs 112 B
packages/shared/dist/open-generative-ui-prompts.cjs 1.59 kB
packages/shared/dist/open-generative-ui-prompts.mjs 1.59 kB
packages/shared/dist/package.cjs 181 B
packages/shared/dist/package.mjs 116 B
packages/shared/dist/standard-schema.cjs 740 B
packages/shared/dist/standard-schema.mjs 737 B
packages/shared/dist/telemetry/index.cjs 358 B
packages/shared/dist/telemetry/index.mjs 250 B
packages/shared/dist/telemetry/lambda-client.cjs 1.59 kB
packages/shared/dist/telemetry/lambda-client.mjs 1.58 kB
packages/shared/dist/telemetry/model-host.cjs 1.63 kB
packages/shared/dist/telemetry/model-host.mjs 1.63 kB
packages/shared/dist/telemetry/sampling.cjs 956 B
packages/shared/dist/telemetry/sampling.mjs 935 B
packages/shared/dist/telemetry/telemetry-client.cjs 1.88 kB
packages/shared/dist/telemetry/telemetry-client.mjs 1.83 kB
packages/shared/dist/telemetry/telemetry-disabled.cjs 454 B
packages/shared/dist/telemetry/telemetry-disabled.mjs 451 B
packages/shared/dist/telemetry/utils.cjs 321 B
packages/shared/dist/telemetry/utils.mjs 277 B
packages/shared/dist/transcription-errors.cjs 951 B
packages/shared/dist/transcription-errors.mjs 944 B
packages/shared/dist/utils/clipboard.cjs 407 B
packages/shared/dist/utils/clipboard.mjs 405 B
packages/shared/dist/utils/conditions.cjs 540 B
packages/shared/dist/utils/conditions.mjs 536 B
packages/shared/dist/utils/console-styling.cjs 1.23 kB
packages/shared/dist/utils/console-styling.mjs 1.21 kB
packages/shared/dist/utils/errors.cjs 4.51 kB
packages/shared/dist/utils/errors.mjs 4.41 kB
packages/shared/dist/utils/index.cjs 1.45 kB
packages/shared/dist/utils/index.mjs 1.77 kB
packages/shared/dist/utils/inspector-learning.cjs 2.58 kB
packages/shared/dist/utils/inspector-learning.mjs 2.57 kB
packages/shared/dist/utils/inspector-metadata.cjs 1.46 kB
packages/shared/dist/utils/inspector-metadata.mjs 1.45 kB
packages/shared/dist/utils/inspector-visibility.cjs 285 B
packages/shared/dist/utils/inspector-visibility.mjs 282 B
packages/shared/dist/utils/json-schema.cjs 1.97 kB
packages/shared/dist/utils/json-schema.mjs 1.91 kB
packages/shared/dist/utils/random-id.cjs 618 B
packages/shared/dist/utils/random-id.mjs 559 B
packages/shared/dist/utils/requests.cjs 706 B
packages/shared/dist/utils/requests.mjs 704 B
packages/shared/dist/utils/row-render-keys.cjs 3.38 kB
packages/shared/dist/utils/row-render-keys.mjs 3.36 kB
packages/shared/dist/utils/types.cjs 161 B
packages/shared/dist/utils/types.mjs 160 B
packages/voice/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/voice/dist/index.cjs 175 B
packages/voice/dist/index.mjs 95 B
packages/voice/dist/index.umd.js 1.5 kB
packages/voice/dist/transcription/transcription-service-openai.cjs 495 B
packages/voice/dist/transcription/transcription-service-openai.mjs 434 B
packages/web-inspector/dist/assets/inspector-logo-kite.cjs 2.36 kB
packages/web-inspector/dist/assets/inspector-logo-kite.mjs 2.3 kB
packages/web-inspector/dist/assets/inspector-logo.cjs 4.32 kB
packages/web-inspector/dist/assets/inspector-logo.mjs 4.23 kB
packages/web-inspector/dist/components/learning-view.cjs 11.2 kB
packages/web-inspector/dist/components/learning-view.mjs 11.2 kB
packages/web-inspector/dist/index.cjs 133 kB
packages/web-inspector/dist/index.mjs 133 kB
packages/web-inspector/dist/index.umd.js 200 kB
packages/web-inspector/dist/lib/context-helpers.cjs 866 B
packages/web-inspector/dist/lib/context-helpers.mjs 835 B
packages/web-inspector/dist/lib/home-briefing.cjs 2.8 kB
packages/web-inspector/dist/lib/home-briefing.mjs 2.79 kB
packages/web-inspector/dist/lib/hud-config.cjs 1.34 kB
packages/web-inspector/dist/lib/hud-config.mjs 1.33 kB
packages/web-inspector/dist/lib/hud-defaults.cjs 287 B
packages/web-inspector/dist/lib/hud-defaults.mjs 285 B
packages/web-inspector/dist/lib/hud-loader.cjs 557 B
packages/web-inspector/dist/lib/hud-loader.mjs 546 B
packages/web-inspector/dist/lib/inspector-learning.cjs 754 B
packages/web-inspector/dist/lib/inspector-learning.mjs 732 B
packages/web-inspector/dist/lib/inspector-metadata.cjs 760 B
packages/web-inspector/dist/lib/inspector-metadata.mjs 750 B
packages/web-inspector/dist/lib/inspector-nav.cjs 674 B
packages/web-inspector/dist/lib/inspector-nav.mjs 652 B
packages/web-inspector/dist/lib/learning-setup.cjs 1.12 kB
packages/web-inspector/dist/lib/learning-setup.mjs 1.09 kB
packages/web-inspector/dist/lib/notification-loader.cjs 792 B
packages/web-inspector/dist/lib/notification-loader.mjs 786 B
packages/web-inspector/dist/lib/notifications.cjs 2.39 kB
packages/web-inspector/dist/lib/notifications.mjs 2.37 kB
packages/web-inspector/dist/lib/onboarding-prompt.cjs 2.38 kB
packages/web-inspector/dist/lib/onboarding-prompt.mjs 2.37 kB
packages/web-inspector/dist/lib/persistence.cjs 3.61 kB
packages/web-inspector/dist/lib/persistence.mjs 3.52 kB
packages/web-inspector/dist/lib/pop-out.cjs 1.07 kB
packages/web-inspector/dist/lib/pop-out.mjs 1.05 kB
packages/web-inspector/dist/lib/telemetry.cjs 5.59 kB
packages/web-inspector/dist/lib/telemetry.mjs 5.38 kB
packages/web-inspector/dist/lib/thread-selection.cjs 566 B
packages/web-inspector/dist/lib/thread-selection.mjs 563 B
packages/web-inspector/dist/package.cjs 181 B
packages/web-inspector/dist/package.mjs 116 B
packages/web-inspector/dist/styles/generated.cjs 20.1 kB
packages/web-inspector/dist/styles/generated.mjs 20 kB
packages/web-inspector/dist/styles/notification-article.cjs 1.44 kB
packages/web-inspector/dist/styles/notification-article.mjs 1.44 kB

compressed-size-action

@marthakelly marthakelly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changed-lines scoping, the merge-queue wiring and the network opt-outs all check out. Eight comments inline. The first two need fixing before react-doctor becomes a required check: example-only PRs and auto-formatted PRs would never get a status. The last three are optional.

Comment thread .github/workflows/static_quality.yml Outdated
@@ -11,6 +11,9 @@ on:
paths-ignore:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PRs that only change examples/ or README.md can't merge once react-doctor is required

The pull_request trigger keeps paths-ignore for README.md and examples/**, so those PRs never start static / quality. A required check from a workflow that never ran stays at "Expected — Waiting for status to be reported", and the PR can't enter the merge queue. Move the react-doctor job into its own workflow without paths-ignore.

- name: Run oxlint check
run: pnpm run lint

react-doctor:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PRs fixed by the auto-format job lose their react-doctor status

The format job pushes "style: auto-fix formatting" using GITHUB_TOKEN (line 211), and GitHub doesn't start workflows for pushes made with that token. The new head commit gets no react-doctor run, so once the check is required, the PR stays blocked until someone pushes another commit. Push the formatting fix with a GitHub App token, so the new commit starts static / quality.

Comment thread pnpm-lock.yaml Outdated
engines: {node: ^18.19.0 || >=20.6.0}
deprecated: Use @opentelemetry/sdk-trace package
peerDependencies:
'@opentelemetry/api': '>=1.3.0 <1.10.0'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lockfile now pairs OpenTelemetry packages with an API version they don't support

Adding React Doctor moves @opentelemetry/api from 1.9.0 to 1.10.0, but @opentelemetry/[email protected] and its sibling packages declare >=1.3.0 <1.10.0. Packages such as packages/runtime now run their tests against that unsupported pair, while the description says the shifted peers stay inside their range. Pin @opentelemetry/api to 1.9.0 with a pnpm.overrides entry and regenerate the lockfile.

Comment thread package.json
"oxfmt": "^0.36.0",
"oxlint": "^1.51.0",
"publint": "^0.3.17",
"react-doctor": "0.9.18",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pre-commit hook runs React Doctor on Node versions it doesn't support

React Doctor 0.9.18 declares engines: ^20.19.0 || >=22.13.0, but the repo's engines.node allows >=20, and there is no engine-strict setting to stop an install. Contributors on Node 20.0 through 20.18 therefore run the new hook on every commit that stages a file under packages/. Raise the root engines.node to ^20.19.0 || >=22.13.0.

Comment thread CLAUDE.md Outdated
- **Nx monorepo** — always run tasks through `nx` (`nx run`, `nx run-many`, `nx affected`), never the underlying tooling directly.
- **Flat package structure** — all packages live directly under `packages/` (no `v1/` or `v2/` subdirectories). Every package uses the `@copilotkit/` scope.
- **Simplicity** — prefer the simplest correct solution. For non-trivial changes, consider if there's a cleaner approach before committing.
- **React Doctor** — React Doctor errors block PRs that touch the React packages listed in `doctor.config.jsonc` (the required `react-doctor` check in `static / quality`), and the lefthook pre-commit hook runs the same check on staged lines. Only lines you add or change count: errors block, warnings don't. Run `pnpm run react-doctor` before pushing and fix what it reports rather than adding disable comments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agents are told react-doctor is required before it is

The new bullet in CLAUDE.md and AGENTS.md calls it "the required react-doctor check", but it only becomes required after the ruleset change listed under "After merge". Until then, agents will describe and treat a check that isn't enforced as if it were. Call it "the react-doctor check" until the ruleset change lands.

Comment thread package.json Outdated
"lint": "oxlint .",
"format": "oxfmt --write .",
"check-format": "oxfmt --check .",
"react-doctor": "react-doctor . --scope lines --base origin/main --no-telemetry",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm run react-doctor can flag lines the developer never touched

The script diffs against origin/main as of the last fetch. After gh pr checkout of a branch that's based on a newer main, lines that landed on main since that fetch count as changed, and React Doctor reports errors in them. Fetch origin/main in the script before the scan.

Comment thread package.json
"oxfmt": "^0.36.0",
"oxlint": "^1.51.0",
"publint": "^0.3.17",
"react-doctor": "0.9.18",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every CI job now installs React Doctor's dependencies

React Doctor is a root devDependency, so every pnpm install in CI adds about 92 packages, including playwright-core, @sentry/node and a second oxlint. Only the react-doctor job and the pre-commit hook use them. Run React Doctor with pnpm dlx [email protected] in the job and the hook, instead of installing it at the root.

Comment thread doctor.config.jsonc
"share": false,
"ignore": {
"files": [
"**/v1-deprecated/**",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1 code is checked in react-ui but skipped in react-core

ignore.files skips **/v1-deprecated/**, but projects includes @copilotkit/react-ui and @copilotkit/react-textarea, which are v1 packages. An edit to a v1 hook in react-core passes, while the same kind of edit in react-ui is blocked. Remove **/v1-deprecated/** from ignore.files, so v1 code is checked the same way everywhere.

tylerslaton and others added 4 commits October 22, 2026 13:54
Adds a react-doctor job to static / quality that runs React Doctor 0.9.18
over the React packages listed in doctor.config.jsonc, scoped to lines
the PR adds or changes. Errors fail the job; warnings are printed only.

React Doctor installs from tools/react-doctor/ with its own lockfile.
Adding it to the root lockfile re-resolved @opentelemetry/api and
@babel/core peers across the workspace.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The lefthook pre-commit hook now runs React Doctor on staged lines, so
agents hit errors while they build rather than after CI. It takes about
a second and only runs when staged files are under packages/.

static / quality now also triggers on merge_group so react-doctor can be a
required check. The other jobs skip merge_group events, so they run
exactly as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Moves React Doctor 0.9.18 from its own install in tools/react-doctor/
into the root devDependencies (exact pin). Root devDependencies are never
published, so packages and their consumers are unaffected. It also drops
the extra install step from the script, the pre-commit hook and CI, the
second lockfile and .npmrc, and the note telling agents not to run
`react-doctor install`.

The root lockfile adds React Doctor's dependency tree. No workspace
package's direct dependency versions change. Some peers resolve to
different versions:
- @opentelemetry/api goes from 1.9.0 to 1.10.0.
- lightningcss goes from 1.32.0 to 1.33.0 under Vite.
- Babel 7 plugins, and Next's optional @babel/core peer, now resolve
  @babel/core 7.28.5 (inside their ^7 range) instead of 8.0.1.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- static / quality runs on every PR. The README/examples path filter
  would have left the required react-doctor check waiting forever on
  PRs that only touch those paths.
- doctor.config.jsonc checks only the non-deprecated React packages: it
  drops react-ui (whose only v2 export is CSS) and react-textarea.
- Inline react-doctor-disable comments are ignored
  (respectInlineDisables: false), so the only way past an error is to
  fix it. The agent docs say so, and no longer call the check
  "required" before the ruleset change lands.
- Pin @opentelemetry/api to 1.9.0. React Doctor's install had moved it
  to 1.10.0, outside the <1.10.0 peer range of the OpenTelemetry 2.x SDK
  packages.
- Raise engines.node to React Doctor's range (^20.19.0 || >=22.13.0).
- `pnpm run react-doctor` fetches origin/main first, so a stale local
  ref can't make it report lines the branch never touched.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@tylerslaton
tylerslaton force-pushed the tylerslaton/react-doctor-vue-integration branch from c7c9ed4 to cfd7018 Compare October 22, 2026 21:07
@pkg-pr-new

pkg-pr-new Bot commented Oct 22, 2026

Copy link
Copy Markdown
@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/@copilotkit/a2ui-renderer@7931

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/@copilotkit/agentcore-runner@7931

@copilotkit/angular

pnpm add https://pkg.pr.new/@copilotkit/angular@7931

@copilotkit/channels

pnpm add https://pkg.pr.new/@copilotkit/channels@7931

@copilotkit/channels-core

pnpm add https://pkg.pr.new/@copilotkit/channels-core@7931

@copilotkit/channels-discord

pnpm add https://pkg.pr.new/@copilotkit/channels-discord@7931

@copilotkit/channels-intelligence

pnpm add https://pkg.pr.new/@copilotkit/channels-intelligence@7931

@copilotkit/channels-slack

pnpm add https://pkg.pr.new/@copilotkit/channels-slack@7931

@copilotkit/channels-teams

pnpm add https://pkg.pr.new/@copilotkit/channels-teams@7931

@copilotkit/channels-ui

pnpm add https://pkg.pr.new/@copilotkit/channels-ui@7931

@copilotkit/channels-whatsapp

pnpm add https://pkg.pr.new/@copilotkit/channels-whatsapp@7931

@copilotkit/core

pnpm add https://pkg.pr.new/@copilotkit/core@7931

@copilotkit/intelligence-langgraph

pnpm add https://pkg.pr.new/@copilotkit/intelligence-langgraph@7931

@copilotkit/intelligence-mastra

pnpm add https://pkg.pr.new/@copilotkit/intelligence-mastra@7931

@copilotkit/learning

pnpm add https://pkg.pr.new/@copilotkit/learning@7931

@copilotkit/mcp-apps-renderer

pnpm add https://pkg.pr.new/@copilotkit/mcp-apps-renderer@7931

@copilotkit/react-core

pnpm add https://pkg.pr.new/@copilotkit/react-core@7931

@copilotkit/react-native

pnpm add https://pkg.pr.new/@copilotkit/react-native@7931

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/@copilotkit/react-textarea@7931

@copilotkit/react-ui

pnpm add https://pkg.pr.new/@copilotkit/react-ui@7931

@copilotkit/runtime

pnpm add https://pkg.pr.new/@copilotkit/runtime@7931

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/@copilotkit/runtime-client-gql@7931

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/@copilotkit/sdk-js@7931

@copilotkit/shared

pnpm add https://pkg.pr.new/@copilotkit/shared@7931

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/@copilotkit/sqlite-runner@7931

@copilotkit/voice

pnpm add https://pkg.pr.new/@copilotkit/voice@7931

@copilotkit/vue

pnpm add https://pkg.pr.new/@copilotkit/vue@7931

@copilotkit/web-components

pnpm add https://pkg.pr.new/@copilotkit/web-components@7931

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/@copilotkit/web-inspector@7931

commit: cfd7018

@davidmckayv
davidmckayv removed the request for review from ranst91 October 29, 2026 20:19
tylerslaton added a commit that referenced this pull request Nov 2, 2026
## What does this PR do?

Removes the `format` job from `static / quality`.

That job ran oxfmt and ruff on PR-changed files and pushed a "style:
auto-fix formatting" commit back to the branch using `GITHUB_TOKEN`.
GitHub doesn't start workflows for pushes made with that token. So the
pushed commit never got its required checks (`Intelligence runtime
conformance` today, and `react-doctor` once #7931 is required), and the
PR stayed blocked until someone pushed again.

Formatting is still applied locally: the lefthook pre-commit `lint-fix`
hook runs oxfmt (and ruff for Python) on staged files. CI no longer
checks formatting.

Removing the job also drops the workflow's only `contents: write`
permission and its `GITHUB_TOKEN` push. A comment about the job is
removed from `.github/zizmor.yml` too.

## Testing

- `actionlint` passes on `static_quality.yml`.
- Nothing else references the job: no other workflow, and no doc apart
from the removed zizmor comment.

## Related PRs and Issues

- Stacked on #7935, which is stacked on #7931. Merge this before making
`react-doctor` a required check.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants