From 94f531bc7e53b813620d13708ce9ad361579acac Mon Sep 17 00:00:00 2001 From: Jordon <16258926+Jordonbc@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:20:43 +0000 Subject: [PATCH 1/2] Apply suggested fix to Backend/src/plugin_runtime/node_instance.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- Backend/src/plugin_runtime/node_instance.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Backend/src/plugin_runtime/node_instance.rs b/Backend/src/plugin_runtime/node_instance.rs index 0fa5156..3680595 100644 --- a/Backend/src/plugin_runtime/node_instance.rs +++ b/Backend/src/plugin_runtime/node_instance.rs @@ -536,7 +536,13 @@ impl NodePluginRuntimeInstance { let config_value = if config.is_empty() { Value::Object(serde_json::Map::new()) } else { - serde_json::from_slice(config).unwrap_or_else(|_| Value::Object(serde_json::Map::new())) + match serde_json::from_slice(config) { + Ok(v) => v, + Err(e) => { + log::warn!("Failed to parse VCS open config as JSON, using empty object instead: {}", e); + Value::Object(serde_json::Map::new()) + } + } }; let result: OpenSessionResponse = self.rpc_call( Methods::VCS_OPEN, From 001cc9bf3829aeed3ebcbe86b5083880e5a8fc0c Mon Sep 17 00:00:00 2001 From: Jordon <16258926+Jordonbc@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:20:43 +0000 Subject: [PATCH 2/2] Apply suggested fix to Backend/src/plugin_runtime/node_instance.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- Backend/src/plugin_runtime/node_instance.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Backend/src/plugin_runtime/node_instance.rs b/Backend/src/plugin_runtime/node_instance.rs index 3680595..8a9ef87 100644 --- a/Backend/src/plugin_runtime/node_instance.rs +++ b/Backend/src/plugin_runtime/node_instance.rs @@ -78,7 +78,12 @@ impl NodeRpcProcess { self.next_request_id = self .next_request_id .checked_add(1) - .ok_or_else(|| "rpc request id overflow".to_string())?; + .ok_or_else(|| { + format!( + "plugin '{}' exhausted RPC request IDs after {} calls; restart of plugin runtime required", + plugin_id, request_id + ) + })?; let request = RpcRequest { jsonrpc: "2.0".to_string(),