1
0

Add rewriteInProgress and llmBuffer to store and folder objects

This commit is contained in:
Victor Giers
2025-12-07 22:53:59 +01:00
parent 4b330d0a7f
commit 58e79310cc

10
main.js
View File

@@ -68,7 +68,9 @@ const store = new Store({
closeToTray: true,
needsRelocation: false,
dailyCommitStats: {},
giteaToken: ''
giteaToken: '',
rewriteInProgress: false,
llmBuffer: []
}
});
@@ -81,7 +83,9 @@ folders = folders.map(f => {
const hasGit = fs.existsSync(path.join(f.path, '.git'));
return {
...f,
monitoring: (f.monitoring && hasGit && !f.needsRelocation)
monitoring: (f.monitoring && hasGit && !f.needsRelocation),
rewriteInProgress: f.rewriteInProgress || false,
llmBuffer: f.llmBuffer || []
};
});
store.set('folders', folders);
@@ -123,6 +127,8 @@ function createTray(win) {
if (Array.isArray(folders)) {
folders = folders.map(f => ({
...f,
rewriteInProgress: f.rewriteInProgress || false,
llmBuffer: f.llmBuffer || [],
//linesChanged: 0, // zurück auf 0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//llmCandidates: [] // leeres Array
}));