Why is the status of the folder cleared after pausing it

When I used Sync Thing1.30 version, I retrieved the folder through/rest/config/folders/. When I reset the folder after changing the pause using put, I used/rest/db/status to retrieve the latest status. However, I found that the state field was empty. I tried using patch to set {pause: true or false}, but when I checked the status again, I found that it was still cleared. I don’t understand why this problem occurs. Did I use it incorrectly

If I understand you correctly, you paused a Folder and the status was empty after that.

Once a Folder is paused, Syncthing doesn’t know if it is up to date or not. That’s almost certainly why.

my original understanding was that if I directly replaced the new folder with put, clearing the state would be normal. However, SyncThing gave patches only to modify some of the folder’s properties, and I couldn’t understand why this would also cause clearing. I tried not to modify paused, only modified the label, and found that modifying the label would not cause clearing the state. So, what can I do to pause the task without causing clearing the state

The short version is that a paused folder doesn’t track all the metrics returned in that call, so getting a blank response is expected for paused folders.

My requirement is to pause and start tasks, but also to maintain continuity of state. Is there any way to achieve this requirement? Please

Remember the state; it won’t change while the folder is paused.

Okay, maybe I can remember the state before pausing and continue using the previous state after pausing