@nanhara/hara 0.98.2 → 0.98.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3118,7 +3118,11 @@ program.action(async (opts) => {
|
|
|
3118
3118
|
await maybeAutoCompact(provider, history, meta, stats, cfg, (m) => h.sink.notice(m));
|
|
3119
3119
|
},
|
|
3120
3120
|
});
|
|
3121
|
-
|
|
3121
|
+
// Only claim "saved · resume" if a turn actually persisted the session. A zero-turn session (opened,
|
|
3122
|
+
// then exited without submitting anything) is never written by saveSession — so printing the resume
|
|
3123
|
+
// hint would mislead and `hara resume <id>` would fail with "no session matching".
|
|
3124
|
+
if (loadSession(meta.id))
|
|
3125
|
+
out("\n" + c.dim("Session ") + c.bold(shortId(meta.id)) + c.dim(" saved · resume: ") + c.cyan(`hara resume ${shortId(meta.id)}`) + "\n");
|
|
3122
3126
|
await closeMcp();
|
|
3123
3127
|
process.exit(0); // TUI done — exit cleanly (ink can leave stdin referenced)
|
|
3124
3128
|
}
|