Commit 3493e04
Simplify per /simplify review
Three actionable findings from the parallel reuse / quality / efficiency
agents:
1. Real bug — efficiency review caught a missing wait_for_port_free in
force_restart_server_preserving_mode's dev branch. stop_dev_server()
issues OS.kill and returns, but the listener can take >500ms to
release the port; start_dev_server's fixed 500ms timer then races
the old uvicorn shutdown and the --reload spawn fails to bind.
Mirrored the managed path's wait via _wait_for_port_free.
2. Trim doc comments restating WHAT per CLAUDE.md "default to no
comments" — kept only the WHY (the adoption-arm trap). Drops
~17 lines across mcp_dock.gd and plugin.gd.
3. Extract _seed_dev_restart_btn / _cleanup_dev_restart_btn helpers
in test_dock.gd to match the file's existing _seed_server_row /
_cleanup_server_row pattern. Cuts boilerplate across the three
new dispatch/state tests.
Also drops a no-op bool() cast on a value already typed bool.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 573d51f commit 3493e04
3 files changed
Lines changed: 38 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
184 | 180 | | |
185 | 181 | | |
186 | 182 | | |
| |||
1413 | 1409 | | |
1414 | 1410 | | |
1415 | 1411 | | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1422 | 1415 | | |
1423 | 1416 | | |
1424 | 1417 | | |
| |||
1441 | 1434 | | |
1442 | 1435 | | |
1443 | 1436 | | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
| 1437 | + | |
1447 | 1438 | | |
1448 | 1439 | | |
1449 | 1440 | | |
1450 | | - | |
| 1441 | + | |
1451 | 1442 | | |
1452 | 1443 | | |
1453 | 1444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1425 | 1421 | | |
1426 | 1422 | | |
1427 | 1423 | | |
1428 | 1424 | | |
1429 | 1425 | | |
1430 | 1426 | | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1431 | 1433 | | |
1432 | 1434 | | |
1433 | 1435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1014 | 1012 | | |
1015 | 1013 | | |
1016 | 1014 | | |
1017 | | - | |
1018 | | - | |
1019 | 1015 | | |
| 1016 | + | |
1020 | 1017 | | |
1021 | 1018 | | |
1022 | 1019 | | |
1023 | 1020 | | |
1024 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1025 | 1032 | | |
1026 | 1033 | | |
1027 | 1034 | | |
1028 | 1035 | | |
1029 | 1036 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | 1037 | | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
| 1038 | + | |
1038 | 1039 | | |
1039 | 1040 | | |
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
| 1044 | + | |
1048 | 1045 | | |
1049 | 1046 | | |
1050 | 1047 | | |
1051 | 1048 | | |
1052 | 1049 | | |
1053 | 1050 | | |
1054 | 1051 | | |
1055 | | - | |
1056 | | - | |
| 1052 | + | |
1057 | 1053 | | |
1058 | 1054 | | |
1059 | 1055 | | |
1060 | 1056 | | |
1061 | 1057 | | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
| 1058 | + | |
1067 | 1059 | | |
1068 | 1060 | | |
1069 | 1061 | | |
0 commit comments