Skip to content

fix(context-mode): replace the D1 host update command with plugin upgrade advice - #630

Merged
omercnet merged 1 commit into
mainfrom
fix/context-mode-d1-update-advice
Nov 16, 2026
Merged

omercnet merged 1 commit into
mainfrom
fix/context-mode-d1-update-advice

Conversation

@omercnet

Copy link
Copy Markdown
Owner

Problem

Since Context Mode 2.1.7, ctx_doctor no longer prints Fix: run ctx_upgrade on the D1 row when the runtime is out of date. It prints the host's own update command instead (checkVersion uses updateCommand ?? DOCTOR_FIX_UPGRADE, and UPGRADE_HOST_COMMAND maps each agent to a command). doctorRow only rewrites run ctx_upgrade, so the Diagnostics tab passes native-install advice through for the bundled runtime:

Provider D1 Fix shown today (bundled 2.1.7 or 2.1.10, npm latest 2.2.0)
Claude claude plugin marketplace update context-mode && claude plugin update context-mode@context-mode
Codex codex plugin marketplace upgrade context-mode
Copilot npm i -g context-mode && context-mode setup --agents copilot-cli
OpenCode opencode plugin update

None of these updates the runtime Paseo bundles, and the Copilot one runs context-mode setup, which the README says the doctor never suggests.

Change

doctorRow treats a D1 row whose detail says update available the same as a run ctx_upgrade row: the bundled runtime gets "Update the Context Mode plugin in Paseo" as a warning, a configured runtime gets "Upgrade the Context Mode install configured in settings" with upstream's status. The run ctx_upgrade match stays for 2.1.4 to 2.1.6.

Out of scope

The context-mode 2.1.10 bump itself (#621). The stale "Bundles Context Mode 2.1.4" line in the README.

Verification

  • New test uses the D1 rows that 2.1.10 prints for Claude and Copilot; it fails without the change and passes with it.
  • The plugin's own MCP client and parser ran ctx_doctor against the real 2.1.7 and 2.1.10 runtimes for all four providers in an isolated home: D1 now shows the plugin advice, D3 stays a warning without a fix, every other check is ok.
  • npm run check, npm run typecheck, npm run test:coverage (123 passed), npm run verify:package.

…rade advice

Context Mode 2.1.7 and later print the host's own update command as the
D1 fix for an outdated runtime (for example claude plugin update or
npm i -g context-mode && context-mode setup) instead of run ctx_upgrade,
so the doctor passed native-install advice through for the bundled
runtime. Match the D1 update-available row and give the runtime-specific
advice again.
@baz-reviewer

baz-reviewer Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Review this PR on Baz

Baz Summary

Update doctorRow to replace Context Mode host update commands with Paseo plugin upgrade advice for outdated D1 runtimes, while preserving upstream upgrade handling. Add parser coverage for the Claude and Copilot diagnostics output produced by newer runtimes.

Topics

TopicDetails
Diagnostics Tests Verify that newer Claude and Copilot D1 diagnostics produce the correct bundled and configured-install advice.
Modified files (1)
  • context-mode/tests/actions.test.ts
Latest Contributors(1)
UserCommitDate
omercnetfix(context-mode): rep...November 16, 2026
D1 Upgrade Advice Replace outdated D1 host commands with runtime-aware plugin guidance, distinguishing bundled Paseo runtimes from installations configured in settings.
Modified files (1)
  • context-mode/server/actions.ts
Latest Contributors(1)
UserCommitDate
omercnetfix(context-mode): rep...November 16, 2026


Merger  Activate to get a short verdict whether this PR is good to go or not

Skills  Activate Skill Maintainer to keep your skills up to date

Planner  This PR would have been improved with Baz Planner - Try it now

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d5875d6e-6153-4502-a70a-e1c3ff273ed9
Commits

Reviewing files that changed from the base of the PR and between e9c012b and 823a26e.

Files selected for processing: 2

  • context-mode/server/actions.ts
  • context-mode/tests/actions.test.ts
  • 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

@omercnet
omercnet merged commit 00818ed into main Nov 16, 2026
12 checks passed
@omercnet
omercnet deleted the fix/context-mode-d1-update-advice branch November 16, 2026 09:35
@github-actions github-actions Bot mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant