Let set-version ask for the version on a terminal (Enter takes the next patch) and run as npm run set-version, bump every carrier to 3.0.6, and read the Ask entry for screenshots from the session's chat log now that chat hands over only the seq

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-10 14:14:44 -08:00
1 parent 567a65ff5b
commit 9199fc00af
14 files changed
+104 -22

No files matched your search

+8 -1
View File
@@ -535,10 +535,17 @@ async function captureAsk(browser, project, sid, url, question) {
if (send) send.click();
});
// `chat` hands over only the message's seq (its text goes in `reply`) and
// moves its cursor past it, so the first seq seen is the one; the entry
// itself, with its conversation, is read from the session's chat log.
let entry = null;
for (let i = 0; i < 40 && !entry; i++) {
const r = cli(project, "chat", "--session", sid);
if (r.code === 0 && r.out && r.out.chat) entry = r.out.chat.find((c) => c.kind === "message");
const seq = r.code === 0 && r.out && Array.isArray(r.out.chat) ? r.out.chat[0] : undefined;
if (Number.isInteger(seq)) {
const log = path.join(HOME, "sessions", sid, "chat.ndjson");
entry = fs.readFileSync(log, "utf8").split("\n").filter(Boolean).map((l) => JSON.parse(l)).find((e) => e.seq === seq) || null;
}
if (!entry) await sleep(250);
}
if (!entry) throw new Error("the Ask question never reached the console");