@vatio-ai/cli 0.100.0 → 0.100.1
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.
|
@@ -291,6 +291,17 @@ function findSession(id) {
|
|
|
291
291
|
const current = currentSession();
|
|
292
292
|
if (current) return current;
|
|
293
293
|
|
|
294
|
+
// Inside a coding agent whose session file is not where we read: the newest
|
|
295
|
+
// one for this directory would be another conversation, sent as this one.
|
|
296
|
+
const running = Object.values(AGENTS).find(({ currentId }) => currentId());
|
|
297
|
+
if (running) {
|
|
298
|
+
fail(
|
|
299
|
+
`This runs inside ${running.label} session ${short(running.currentId())}, but its file is not on this machine ` +
|
|
300
|
+
"where share-session looks,\nso nothing was sent rather than another session. " +
|
|
301
|
+
"`vatio share-session --list` shows the sessions it found; send one with --id ID."
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
294
305
|
const session = sessionsHere().find((candidate) => candidate.messages > 0);
|
|
295
306
|
if (session) return session;
|
|
296
307
|
fail(
|