Commit 81200c0
committed
fix(electron): guard against undefined command in MCP server config
Prevent agent:init crash when MCP server entries lack a command field
(e.g. remote URL-based entries persisted without command key).1 parent 8559d73 commit 81200c0
File tree
1 file changed
+3
-0
lines changed- crates/agent-electron-client/src/main/services/packages
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
| 653 | + | |
651 | 654 | | |
652 | 655 | | |
653 | 656 | | |
| |||
0 commit comments