aboutsummaryrefslogtreecommitdiff
path: root/modules/core/core-bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/core-bundle.js')
-rw-r--r--modules/core/core-bundle.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/core/core-bundle.js b/modules/core/core-bundle.js
index 32ff73b..cd510b7 100644
--- a/modules/core/core-bundle.js
+++ b/modules/core/core-bundle.js
@@ -968,7 +968,7 @@ class VirtualFileSystem {
const toDelete = sorted.slice(0, all.length - 3);
for (const old of toDelete) this.deleteCheckpoint(old);
}
- return true;
+ return name;
}
rollback(name) {
const raw = this.fsReadJSON('/_snapshots/checkpoint-' + name + '.json');
@@ -6062,9 +6062,8 @@ Only output XML function calls for tool tasks. If no tool is needed, answer norm
this.commands['checkpoint'] = (args) => {
try {
const name = args[0] || '';
- this.terminal.fs.checkpoint(name);
- const displayName = name || new Date().toISOString();
- this.terminal.print('✅ Checkpoint created: ' + displayName, 'success');
+ const created = this.terminal.fs.checkpoint(name);
+ this.terminal.print('✅ Checkpoint created: ' + (created || name), 'success');
} catch (e) {
this.terminal.print('Checkpoint failed: ' + e.message, 'error');
}