Skip to content

codex community marketplace behavior bump#205

Merged
wey-gu merged 4 commits intomainfrom
dev_078
Apr 21, 2026
Merged

codex community marketplace behavior bump#205
wey-gu merged 4 commits intomainfrom
dev_078

Conversation

@wey-gu
Copy link
Copy Markdown
Member

@wey-gu wey-gu commented Apr 21, 2026

Note

Medium Risk
Updates host integration behavior in OpenClaw (corpus supplement/recall gating and status reporting) and changes Codex installation/update flow to marketplace commands, which could affect setup and runtime recall paths if assumptions are wrong across host versions.

Overview
Moves the Codex CLI integration to a marketplace-first setup: adds a repo .agents/plugins/marketplace.json entry, updates integrations.json, and rewrites Codex plugin docs to use codex plugin marketplace ... (with legacy codex marketplace ... fallbacks) plus explicit /plugins installation and the nowledge-mem@nowledge-community config key.

Bumps plugin versions (nowledge-mem Codex 0.1.4, OpenClaw 0.8.19) and updates the npx check-integration guidance accordingly.

Fixes OpenClaw corpus-supplement fallback semantics: the plugin no longer mutates cfg.corpusSupplement on registration failure, tracks configured vs runtime-active supplement state, gates Context Engine and hook recall based on runtime activation, and expands nowledge_mem_status output/tests to explain fallback reasons and avoid claiming recall fallback when sessionContext is disabled.

Reviewed by Cursor Bugbot for commit faf4fe3. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

Release Notes

  • Documentation

    • Updated installation and configuration instructions to use marketplace-based setup for streamlined plugin management.
  • Bug Fixes

    • Fixed plugin fallback behavior to preserve user configuration intent when host registration is unavailable.
    • Improved status reporting to distinguish configured versus runtime-active plugin states and include fallback reasons.
  • Chores

    • Version bumps for Codex CLI and OpenClaw plugin integrations.

@wey-gu
Copy link
Copy Markdown
Member Author

wey-gu commented Apr 21, 2026

bugbot run

@wey-gu
Copy link
Copy Markdown
Member Author

wey-gu commented Apr 21, 2026

@codex review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

Warning

Rate limit exceeded

@wey-gu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 58 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 23 minutes and 58 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: aefb98c0-9de0-4f58-a33e-2a33a2cf8520

📥 Commits

Reviewing files that changed from the base of the PR and between dc6654a and 0c1dd78.

📒 Files selected for processing (9)
  • integrations.json
  • nowledge-mem-codex-plugin/CHANGELOG.md
  • nowledge-mem-codex-plugin/README.md
  • nowledge-mem-npx-skills/skills/check-integration/SKILL.md
  • nowledge-mem-openclaw-plugin/CHANGELOG.md
  • nowledge-mem-openclaw-plugin/src/context-engine.js
  • nowledge-mem-openclaw-plugin/src/index.js
  • nowledge-mem-openclaw-plugin/src/tools/status.js
  • nowledge-mem-openclaw-plugin/tests/status-tool.test.mjs
📝 Walkthrough

Walkthrough

This PR transitions the nowledge-mem plugins from local filesystem-based deployment to marketplace-driven installation, updates plugin versions (Codex CLI to 0.1.4, OpenClaw to 0.8.19), and refactors the OpenClaw plugin's corpus supplement registration to gracefully handle unavailable host registration with fallback behavior while preserving user intent.

Changes

Cohort / File(s) Summary
Marketplace Configuration
.agents/plugins/marketplace.json
New marketplace entry defining nowledge-community with registered nowledge-mem plugin sourced from local ./nowledge-mem-codex-plugin path in productivity category.
Plugin Integration Updates
integrations.json
Bumped Codex CLI version 0.1.3 → 0.1.4, replaced local plugin copy install commands with marketplace-based install/upgrade (codex plugin marketplace ...) with fallback chain, and updated config key from nowledge-mem@local to nowledge-mem@nowledge-community. Bumped OpenClaw version 0.8.18 → 0.8.19.
Codex Plugin Manifests & Versioning
nowledge-mem-codex-plugin/.codex-plugin/plugin.json, nowledge-mem-codex-plugin/package.json
Version bumps from 0.1.3 to 0.1.4 (no functional changes).
Codex Plugin Documentation
nowledge-mem-codex-plugin/CHANGELOG.md, nowledge-mem-codex-plugin/README.md, nowledge-mem-npx-skills/skills/check-integration/SKILL.md
Updated installation/update instructions to use marketplace commands (codex plugin marketplace add nowledge-co/community) with legacy codex marketplace ... fallback, changed config key references from nowledge-mem@local to nowledge-mem@nowledge-community, and added guidance for repo-pinned local setup scenarios.
OpenClaw Plugin Versioning
nowledge-mem-openclaw-plugin/openclaw.plugin.json, nowledge-mem-openclaw-plugin/package.json
Version bumps from 0.8.18 to 0.8.19.
OpenClaw Plugin Recall & Registration
nowledge-mem-openclaw-plugin/src/hooks/recall.js, nowledge-mem-openclaw-plugin/src/index.js
Added runtime parameter to buildRecallHandler to derive skipSearchRecall from runtime.skipSearchRecall boolean; refactored corpus supplement registration to deferred initialization with corpusSupplementActive and corpusSupplementRegistrationError state tracking, replacing direct config mutation on registration failure.
OpenClaw Plugin Status Tooling
nowledge-mem-openclaw-plugin/src/tools/status.js
Enhanced status tool to report corpus supplement configuration/runtime state separately, include registration error details, and display contextual messaging for configured-but-unavailable supplements indicating fallback to plugin recall.
OpenClaw Plugin Tests
nowledge-mem-openclaw-plugin/tests/status-tool.test.mjs
Added new test case validating status tool behavior when corpus supplement is configured but registration fails at runtime.
OpenClaw Plugin Changelog
nowledge-mem-openclaw-plugin/CHANGELOG.md
Documented v0.8.19 fixes: corpus supplement fallback now preserves user intent without config mutation, and nowledge_mem_status distinguishes configured vs runtime-active states with fallback reason details.

Sequence Diagram(s)

sequenceDiagram
    participant Host as OpenClaw Host
    participant Plugin as nowledge-mem Plugin
    participant API as Host API
    participant StatusTool as Status Tool

    Plugin->>API: registerMemoryCorpusSupplement()
    alt Registration Successful
        API-->>Plugin: Success
        Plugin->>Plugin: corpusSupplementActive = true
        Plugin->>StatusTool: corpusSupplementActive = true
        StatusTool-->>Host: "corpus supplement active"
    else Registration Fails
        API-->>Plugin: Error
        Plugin->>Plugin: corpusSupplementActive = false
        Plugin->>Plugin: corpusSupplementRegistrationError = error.message
        Plugin->>StatusTool: corpusSupplementActive = false<br/>corpusSupplementRegistrationError = message
        StatusTool-->>Host: "configured but unavailable"<br/>"plugin uses own recall path"
    end
    
    Host->>Plugin: before_prompt_build
    Plugin->>Plugin: skipSearchRecall = corpusSupplementActive ? false : true
    alt Skip Search Recall
        Plugin->>Plugin: Use Working Memory only
    else Perform Search Recall
        Plugin->>Plugin: Perform searchRich() + recall
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 A marketplace blooms where plugins once hid,
From local paths to registered bids,
Corpus supplements gracefully fall,
When hosts aren't home to answer the call,
Smart recalls now know when to hop away! 🌟

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: transitioning the Codex CLI and OpenClaw plugins from local/manual installation to marketplace-based installation and managing version bumps.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev_078

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 and usage tips.

Comment thread nowledge-mem-openclaw-plugin/src/index.js
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@integrations.json`:
- Around line 133-136: The install.command currently only runs the marketplace
add step and does not actually install the plugin; update the "install.command"
entry to either (A) call the explicit install step if the Codex CLI supports one
(e.g. add a chained "codex plugin install <plugin-id>" or equivalent after
"codex plugin marketplace add") or (B) change the text to document that users
must open the interactive /plugins TUI and enable/install the plugin manually
after adding the marketplace; also adjust the "configRequired" value to not
claim that enabling "[plugins.\"nowledge-mem@nowledge-community\"] enabled =
true" will install the plugin (make it clear it requires prior installation),
and replace the "updateCommand" fallback so it performs an actual
refresh/upgrade of the marketplace/plugin (or remove the redundant marketplace
add) instead of only re-running "marketplace add".

In `@nowledge-mem-openclaw-plugin/src/tools/status.js`:
- Around line 104-116: The status message currently claims "Fallback active:
Nowledge Mem still injects Working Memory and uses its own recall path" under
the corpusSupplementConfigured && !corpusSupplementActive branch which
overpromises fallback behavior when session context is disabled; update this
logic to only show the fallback/injection message when sessionContext is enabled
(or when the recall handler is actually registered) by checking the
sessionContext flag (cfg.sessionContext or the local sessionContext variable) or
by referencing the actual recall registration state instead of unconditionally
printing it; keep the existing checks for corpusSupplementConfigured,
corpusSupplementActive, and corpusSupplementRegistrationError and only append
the fallback line when sessionContext is true.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b9cd8ced-91cd-4a18-8f29-3de410d12b41

📥 Commits

Reviewing files that changed from the base of the PR and between c941403 and dc6654a.

⛔ Files ignored due to path filters (1)
  • nowledge-mem-openclaw-plugin/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (13)
  • .agents/plugins/marketplace.json
  • integrations.json
  • nowledge-mem-codex-plugin/.codex-plugin/plugin.json
  • nowledge-mem-codex-plugin/CHANGELOG.md
  • nowledge-mem-codex-plugin/README.md
  • nowledge-mem-npx-skills/skills/check-integration/SKILL.md
  • nowledge-mem-openclaw-plugin/CHANGELOG.md
  • nowledge-mem-openclaw-plugin/openclaw.plugin.json
  • nowledge-mem-openclaw-plugin/package.json
  • nowledge-mem-openclaw-plugin/src/hooks/recall.js
  • nowledge-mem-openclaw-plugin/src/index.js
  • nowledge-mem-openclaw-plugin/src/tools/status.js
  • nowledge-mem-openclaw-plugin/tests/status-tool.test.mjs

Comment thread integrations.json Outdated
Comment thread nowledge-mem-openclaw-plugin/src/tools/status.js
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc6654aedf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread nowledge-mem-openclaw-plugin/src/tools/status.js Outdated
@wey-gu
Copy link
Copy Markdown
Member Author

wey-gu commented Apr 21, 2026

@codex review

@wey-gu
Copy link
Copy Markdown
Member Author

wey-gu commented Apr 21, 2026

bugbot run

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit faf4fe3. Configure here.

@wey-gu wey-gu merged commit 280fec3 into main Apr 21, 2026
1 check passed
@wey-gu wey-gu deleted the dev_078 branch April 21, 2026 04:27
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.

1 participant