@openaide/codex-acp 1.1.4 → 1.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23060,7 +23060,7 @@ function createGuardianApprovalReviewToolCall(event) {
23060
23060
  return {
23061
23061
  sessionUpdate: "tool_call",
23062
23062
  toolCallId: guardianApprovalReviewToolCallId(event.reviewId),
23063
- kind: "think",
23063
+ kind: "other",
23064
23064
  title: "Guardian Review",
23065
23065
  status: toAcpGuardianApprovalReviewStatus(event.review.status),
23066
23066
  content: createGuardianApprovalReviewContent(event.review, event.action),
@@ -23998,7 +23998,7 @@ var CodexSubagentEventRouter = class _CodexSubagentEventRouter {
23998
23998
  const reopened = {
23999
23999
  parentThreadId: pending.parentThreadId,
24000
24000
  parentSessionId,
24001
- sessionId: `${childThreadId}:generation:2`,
24001
+ sessionId: childThreadId,
24002
24002
  name: fallbackName(childThreadId),
24003
24003
  task: pending.task,
24004
24004
  generation: 2
@@ -24015,12 +24015,10 @@ var CodexSubagentEventRouter = class _CodexSubagentEventRouter {
24015
24015
  return;
24016
24016
  }
24017
24017
  if (!child.terminalState) return;
24018
- const previousSessionId = child.sessionId;
24019
24018
  const previousParentSessionId = child.parentSessionId;
24020
24019
  const previousState = child.terminalState;
24021
24020
  child.parentSessionId = this.children.get(child.parentThreadId)?.sessionId ?? this.rootSessionId;
24022
24021
  child.generation += 1;
24023
- child.sessionId = `${childThreadId}:generation:${child.generation}`;
24024
24022
  delete child.terminalState;
24025
24023
  try {
24026
24024
  await this.session.update({
@@ -24032,7 +24030,6 @@ var CodexSubagentEventRouter = class _CodexSubagentEventRouter {
24032
24030
  }, child.parentSessionId);
24033
24031
  } catch (error51) {
24034
24032
  child.generation -= 1;
24035
- child.sessionId = previousSessionId;
24036
24033
  child.parentSessionId = previousParentSessionId;
24037
24034
  child.terminalState = previousState;
24038
24035
  throw error51;
@@ -27272,7 +27269,7 @@ var package_default = {
27272
27269
  publishConfig: {
27273
27270
  access: "public"
27274
27271
  },
27275
- version: "1.1.4",
27272
+ version: "1.1.6",
27276
27273
  description: "",
27277
27274
  main: "dist/index.js",
27278
27275
  bin: {
@@ -32527,7 +32524,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
32527
32524
  const previous = announced.get(item.agentThreadId);
32528
32525
  if (previous && !previous.terminal) continue;
32529
32526
  const generation = (previous?.generation ?? 0) + 1;
32530
- const childSessionId = generation === 1 ? item.agentThreadId : `${item.agentThreadId}:generation:${generation}`;
32527
+ const childSessionId = item.agentThreadId;
32531
32528
  const name = nameFromAgentPath(item.agentPath, `Agent ${item.agentThreadId.slice(-8)}`);
32532
32529
  await session.update({
32533
32530
  sessionUpdate: "subagent_spawned",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.1.4",
6
+ "version": "1.1.6",
7
7
  "description": "",
8
8
  "main": "dist/index.js",
9
9
  "bin": {