Conversation
|
@codex review |
codex-rs/core/src/plugins/toggles.rs
Outdated
| } | ||
|
|
||
| pub fn plugin_toggle_events_to_emit( | ||
| previous_states: &BTreeMap<String, Option<bool>>, |
There was a problem hiding this comment.
Can we simplify the logic by no checking previous_status?
There was a problem hiding this comment.
We need the previous state to make sure it’s actually an update?
There was a problem hiding this comment.
I think it’s already checked by the UI, except for a minimal race condition.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53869eac13
ℹ️ 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".
| AnalyticsEventsClient::new(Arc::clone(&config), Arc::clone(&auth_manager)); | ||
| thread_manager | ||
| .plugins_manager() | ||
| .set_analytics_events_client(analytics_events_client.clone()); |
There was a problem hiding this comment.
why not just set it when you init plugin_manager?
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e867bbcf12
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5275b98cb3
ℹ️ 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".
codex-rs/core/src/plugins/manager.rs
Outdated
| let mut mcp_server_names = manifest_paths | ||
| .mcp_servers | ||
| .as_ref() | ||
| .map(|path| { | ||
| load_mcp_servers_from_file(plugin_root, path) | ||
| .mcp_servers | ||
| .into_keys() | ||
| .collect::<Vec<_>>() | ||
| }) | ||
| .unwrap_or_default(); |
There was a problem hiding this comment.
Include default MCP servers in plugin telemetry
plugin_telemetry_metadata_from_root only reads MCP servers when manifest_paths.mcp_servers is set. Plugins that rely on the default .codex-plugin/mcp-servers.json path are reported with mcp_server_count = 0, so install/uninstall/enable/disable analytics undercount capabilities compared with actual plugin loading behavior.
Useful? React with 👍 / 👎.
| [plugins, plugin_id] if plugins == "plugins" => { | ||
| if let Some(enabled) = value.get("enabled").and_then(JsonValue::as_bool) { | ||
| pending_changes.insert(plugin_id.clone(), enabled); | ||
| } |
There was a problem hiding this comment.
Clear stale plugin-toggle candidates on null edits
collect_plugin_enabled_candidates only inserts when an enabled bool is present and ignores clear-path edits (value = null). In batch writes applied sequentially, a later clear of the same plugin key can leave an earlier candidate in the map, causing codex_plugin_enabled/disabled events that do not match the final config state.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
this should be fine
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77a6e0f079
ℹ️ 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".
adding metrics including: