pi-web icon indicating copy to clipboard operation
pi-web copied to clipboard

Write model configuration atomically

Open Atopos-jy opened this issue 4 months ago • 0 comments

Summary

Write models.json through a temporary file in the same directory, then atomically rename it into place.

This prevents a partially written configuration file if the process is interrupted during a direct overwrite.

Validation

  • node_modules/.bin/tsc --noEmit
  • npm run lint

Atopos-jy avatar Jul 29 '26 08:07 Atopos-jy