Commit 859b455
Fix hash extraction to handle hash-only instance identifiers
The target_hash extraction logic previously only handled the "ProjectName@hash"
format, causing it to fail when instance_id was a plain hash (fallback format).
This resulted in read_status_file returning the most recent instance instead of
the specific instance, breaking per-instance routing during reconnection.
Changes:
- Update hash extraction to handle both "ProjectName@hash" and hash-only formats
- When instance_id contains '@', extract the part after '@' as before
- When instance_id has no '@', treat the entire string as the hash
- Applied to both Server/ and MCPForUnity/ versions
Addresses CodeRabbit feedback:
- #360 (comment)
- #360 (comment)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 5780adb commit 859b455
File tree
2 files changed
+16
-8
lines changed- MCPForUnity/UnityMcpServer~/src
- Server
2 files changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
0 commit comments