@bivy/bivy 0.6.0-staging.89 → 0.6.0-staging.91
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.
|
@@ -168,7 +168,16 @@ export function writeCodexRollout(history, cwd) {
|
|
|
168
168
|
const stamp = iso.replace(/[:.]/g, "-").replace(/Z$/, "");
|
|
169
169
|
const file = path.join(dir, `rollout-${stamp}-${id}.jsonl`);
|
|
170
170
|
const records = [
|
|
171
|
-
|
|
171
|
+
// Codex's SessionMeta parser requires `originator`. Without it the first
|
|
172
|
+
// record is discarded as malformed; `thread/resume` then reaches the first
|
|
173
|
+
// response_item and fails with "does not start with session metadata".
|
|
174
|
+
// Keep both ids: current Codex accepts legacy `id`-only records, but writing
|
|
175
|
+
// the canonical `session_id` makes the synthetic rollout valid directly.
|
|
176
|
+
{
|
|
177
|
+
type: "session_meta",
|
|
178
|
+
timestamp: iso,
|
|
179
|
+
payload: { session_id: id, id, timestamp: iso, cwd, originator: "bivy", cli_version: "bivy-fork" },
|
|
180
|
+
},
|
|
172
181
|
...history.map((message) => ({
|
|
173
182
|
type: "response_item",
|
|
174
183
|
timestamp: iso,
|
package/package.json
CHANGED