@minhspark/codex-mcp-bridge 1.22.14 → 1.22.15
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/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scripts/install-native-relay.mjs +1 -1
- package/src/claude-bridge.mjs +1 -1
- package/src/index.mjs +1 -1
- package/src/native-relay-companion.mjs +1 -1
- package/src/peer-protocol.mjs +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [SemVer](ht
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.22.15] - 2026-10-22
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Confirm Claude peer replies after native compaction includes transient, nonpersisted message IDs. The receipt reader now validates the ordered projection onto persisted records instead of requiring both metadata lists to be identical. Account, project, process identity, ancestry, interruption and pending background-work checks remain unchanged; transient IDs never establish reply ancestry.
|
|
12
|
+
|
|
7
13
|
## [1.22.14] - 2026-10-21
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "codex-mcp-bridge",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.15",
|
|
5
5
|
"description": "Connect ChatGPT to your own Codex Desktop projects and conversations.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bui Dang Minh",
|
|
@@ -24,7 +24,7 @@ import { stableInstallPath } from "../src/install-paths.mjs";
|
|
|
24
24
|
|
|
25
25
|
exitForVersionRequest(import.meta.url);
|
|
26
26
|
|
|
27
|
-
const VERSION = "1.22.
|
|
27
|
+
const VERSION = "1.22.15";
|
|
28
28
|
const root = stableInstallPath(path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."));
|
|
29
29
|
const entry = path.join(root, "src", "mcp-supervisor.mjs");
|
|
30
30
|
const entryArgs = ["native-relay-companion.mjs"];
|
package/src/claude-bridge.mjs
CHANGED
|
@@ -30,7 +30,7 @@ import { discoverClaudeProject } from "./claude-project-discovery.mjs";
|
|
|
30
30
|
|
|
31
31
|
exitForVersionRequest(import.meta.url);
|
|
32
32
|
|
|
33
|
-
const VERSION = "1.22.
|
|
33
|
+
const VERSION = "1.22.15";
|
|
34
34
|
void import("./telemetry.mjs").then(({ startUsageReporting }) => startUsageReporting({ version: VERSION })).catch(() => {});
|
|
35
35
|
const FORWARD_MIN_INTERVAL_MS = 5000;
|
|
36
36
|
const FORWARD_MAX_PER_SESSION = 50;
|
package/src/index.mjs
CHANGED
|
@@ -41,7 +41,7 @@ import { createRelayWake } from "./relay-wake.mjs";
|
|
|
41
41
|
|
|
42
42
|
exitForVersionRequest(import.meta.url);
|
|
43
43
|
|
|
44
|
-
const VERSION = "1.22.
|
|
44
|
+
const VERSION = "1.22.15";
|
|
45
45
|
void import("./telemetry.mjs").then(({ startUsageReporting }) => startUsageReporting({ version: VERSION })).catch(() => {});
|
|
46
46
|
const log = (msg) => process.stderr.write(`[codex-mcp-bridge] ${msg}\n`);
|
|
47
47
|
|
|
@@ -39,7 +39,7 @@ import { NativeCreationReceipts, creationIdValid } from "./native-creation-recei
|
|
|
39
39
|
|
|
40
40
|
exitForVersionRequest(import.meta.url);
|
|
41
41
|
|
|
42
|
-
const VERSION = "1.22.
|
|
42
|
+
const VERSION = "1.22.15";
|
|
43
43
|
const log = (msg) => process.stderr.write(`[native-relay] ${msg}\n`);
|
|
44
44
|
|
|
45
45
|
function errorResponse(code, message, sent, details) {
|
package/src/peer-protocol.mjs
CHANGED
|
@@ -415,7 +415,7 @@ function isImageToolCompanion(entry, entriesById) {
|
|
|
415
415
|
&& typeof tool.id === "string" && tool.id === part.tool_use_id));
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
function compactContinuation(entry, root, entriesById, sessionId, cwd) {
|
|
418
|
+
function compactContinuation(entry, root, entriesById, transcriptIds, sessionId, cwd) {
|
|
419
419
|
if (entry.type !== "system" || entry.subtype !== "compact_boundary" || entry.parentUuid !== null
|
|
420
420
|
|| typeof entry.logicalParentUuid !== "string") return null;
|
|
421
421
|
const sameIdentity = (record) => record?.entrypoint === "claude-desktop"
|
|
@@ -425,13 +425,16 @@ function compactContinuation(entry, root, entriesById, sessionId, cwd) {
|
|
|
425
425
|
const segment = entry.compactMetadata?.preservedSegment;
|
|
426
426
|
const preserved = entry.compactMetadata?.preservedMessages;
|
|
427
427
|
const ids = preserved?.uuids;
|
|
428
|
+
const allIds = preserved?.allUuids;
|
|
428
429
|
if (!Array.isArray(ids) || !ids.length || ids.length > 65536
|
|
429
430
|
|| ids.some((id) => typeof id !== "string" || !id) || new Set(ids).size !== ids.length
|
|
430
|
-
|| !Array.isArray(
|
|
431
|
-
||
|
|
431
|
+
|| !Array.isArray(allIds) || !allIds.length || allIds.length > 65536
|
|
432
|
+
|| allIds.some((id) => typeof id !== "string" || !id.trim()) || new Set(allIds).size !== allIds.length
|
|
432
433
|
|| !ids.includes(root.uuid) || segment?.headUuid !== ids[0]
|
|
433
434
|
|| segment.tailUuid !== ids.at(-1) || segment.tailUuid !== entry.logicalParentUuid
|
|
434
435
|
|| typeof segment.anchorUuid !== "string" || preserved.anchorUuid !== segment.anchorUuid) return null;
|
|
436
|
+
const persistedIds = allIds.filter((id) => transcriptIds.has(id));
|
|
437
|
+
if (persistedIds.length !== ids.length || ids.some((id, index) => persistedIds[index] !== id)) return null;
|
|
435
438
|
if (ids.some((id, index) => !sameIdentity(entriesById.get(id))
|
|
436
439
|
|| index > 0 && entriesById.get(id).parentUuid !== ids[index - 1])
|
|
437
440
|
|| ids.includes(entriesById.get(ids[0]).parentUuid)) return null;
|
|
@@ -457,12 +460,15 @@ export function readTranscriptOutcome(sessionId, cwd, msgId) {
|
|
|
457
460
|
const entries = [];
|
|
458
461
|
const roots = [];
|
|
459
462
|
const ids = new Set();
|
|
463
|
+
const transcriptIds = new Set();
|
|
460
464
|
let ambiguous = false;
|
|
461
465
|
for (const line of lines) {
|
|
462
466
|
if (!line.trim()) continue;
|
|
463
467
|
let entry;
|
|
464
468
|
try { entry = JSON.parse(line); } catch { ambiguous = true; continue; }
|
|
465
|
-
if (!entry || typeof entry !== "object" || Array.isArray(entry)
|
|
469
|
+
if (!entry || typeof entry !== "object" || Array.isArray(entry)) continue;
|
|
470
|
+
if (typeof entry.uuid === "string") transcriptIds.add(entry.uuid);
|
|
471
|
+
if (entry.isSidechain) continue;
|
|
466
472
|
if (typeof entry.uuid === "string") {
|
|
467
473
|
if (ids.has(entry.uuid)) ambiguous = true;
|
|
468
474
|
ids.add(entry.uuid);
|
|
@@ -490,7 +496,7 @@ export function readTranscriptOutcome(sessionId, cwd, msgId) {
|
|
|
490
496
|
let parentUuid = entry.parentUuid;
|
|
491
497
|
if (!ambiguous && !interruptions.length && descendants.has(entry.logicalParentUuid)
|
|
492
498
|
&& openLeaves.has(entry.logicalParentUuid)) {
|
|
493
|
-
const summaryId = compactContinuation(entry, root, entriesById, sessionId, cwd);
|
|
499
|
+
const summaryId = compactContinuation(entry, root, entriesById, transcriptIds, sessionId, cwd);
|
|
494
500
|
if (summaryId) {
|
|
495
501
|
parentUuid = entry.logicalParentUuid;
|
|
496
502
|
compactSummaries.add(summaryId);
|