Adds a safety net to the writeJSON utility to prevent data loss when updating subtasks via the MCP server. The MCP process was inadvertently causing the _rawTaggedData property, which holds the complete multi-tag structure, to be lost. When writeJSON received the data for only a single tag, it would overwrite the entire tasks.json file, deleting all other tags. This fix makes writeJSON more robust. If it receives data that looks like a single, resolved tag without the complete structure, it re-reads the full tasks.json file from disk. It then carefully merges the updated data back into the correct tag within the full structure, preserving all other tags.
8 lines
164 B
JSON
8 lines
164 B
JSON
{
|
|
"currentTag": "master",
|
|
"lastSwitched": "2025-06-14T00:46:38.351Z",
|
|
"branchTagMapping": {
|
|
"v017-adds": "v017-adds"
|
|
},
|
|
"migrationNoticeShown": true
|
|
} |