Repository navigation
Commit c1c3539
fix(server): clear unreachable preview downloads after a server restart
The server browser indexes saved downloads in memory and server tab ids
carry a per-process epoch, so files an earlier run saved under
server-browser/downloads can never be opened again. Tab close removes its
own folder, but a stop or crash leaves the rest on disk for good.
Clear the downloads folder when the service starts, before any tab can
save. The server ownership lock guarantees one server per state
directory, so no other live server owns these files.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 62245d8 commit c1c3539
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1060 | 1081 | | |
1061 | 1082 | | |
1062 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
906 | 912 | | |
907 | 913 | | |
908 | 914 | | |
| |||
0 commit comments