Skip to content

Conversation

guillevalin
Copy link
Contributor

No description provided.

@guillevalin guillevalin temporarily deployed to FROM_WALLET_PRIVATE_KEY September 22, 2025 21:06 — with GitHub Actions Inactive
@guillevalin guillevalin temporarily deployed to FROM_WALLET_PRIVATE_KEY September 22, 2025 21:06 — with GitHub Actions Inactive
Copy link

@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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment on lines +636 to +639
Ok(ShinkaiTool::Rust(existing_rust_tool, is_enabled)) => {
let mut upgraded_tool = rust_tool.clone();
if upgraded_tool.mcp_enabled.is_none() {
upgraded_tool.mcp_enabled = existing_rust_tool.mcp_enabled;

Choose a reason for hiding this comment

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

[P1] Preserve MCP flag when upgrading Rust tools

The upgrade branch rebuilds the new RustTool and only copies mcp_enabled from the existing tool when the new definition leaves the flag unset. Because RustTool::new always initialises mcp_enabled to Some(false), this condition never fires and an upgrade will always overwrite any user‑chosen MCP value with false. Users who enabled MCP for a tool will find it disabled after a version bump. The upgrade path should carry over the previous mcp_enabled value regardless, unless a new default is explicitly intended.

Useful? React with 👍 / 👎.

@guillevalin guillevalin temporarily deployed to FROM_WALLET_PRIVATE_KEY September 23, 2025 00:57 — with GitHub Actions Inactive
@guillevalin guillevalin temporarily deployed to FROM_WALLET_PRIVATE_KEY September 23, 2025 00:57 — with GitHub Actions Inactive
@guillevalin guillevalin merged commit 07f823c into main Sep 23, 2025
5 checks passed
@guillevalin guillevalin deleted the gvalin/fixes branch September 23, 2025 01:19
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