lunel-cli 0.1.71 → 0.1.73
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/ai/codex.js +7 -5
- package/package.json +1 -1
package/dist/ai/codex.js
CHANGED
|
@@ -53,19 +53,21 @@ export class CodexProvider {
|
|
|
53
53
|
}
|
|
54
54
|
async createSession(title) {
|
|
55
55
|
const result = await this.call("thread/start", { cwd: process.cwd() });
|
|
56
|
-
const
|
|
56
|
+
const threadObject = this.extractThreadObject(result);
|
|
57
|
+
const threadId = this.extractThreadId(threadObject);
|
|
57
58
|
if (!threadId) {
|
|
58
59
|
throw new Error("thread/start response missing threadId");
|
|
59
60
|
}
|
|
60
|
-
const threadTitle = this.
|
|
61
|
+
const threadTitle = this.extractThreadTitle(threadObject) || title || "Conversation";
|
|
61
62
|
const session = this.upsertSession({
|
|
62
63
|
id: threadId,
|
|
63
64
|
title: threadTitle,
|
|
64
|
-
createdAt: this.extractCreatedAt(
|
|
65
|
-
updatedAt: this.extractUpdatedAt(
|
|
65
|
+
createdAt: this.extractCreatedAt(threadObject) ?? Date.now(),
|
|
66
|
+
updatedAt: this.extractUpdatedAt(threadObject) ?? Date.now(),
|
|
66
67
|
archived: false,
|
|
67
|
-
cwd: this.extractThreadCwd(
|
|
68
|
+
cwd: this.extractThreadCwd(threadObject) ?? process.cwd(),
|
|
68
69
|
});
|
|
70
|
+
this.resumedThreadIds.add(threadId);
|
|
69
71
|
return { session: this.toSessionInfo(session) };
|
|
70
72
|
}
|
|
71
73
|
async listSessions() {
|