@parall/codex-agent 1.52.1 → 1.52.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,YAAY,EACb,MAAM,oBAAoB,CAAC;AAa5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,KAAK,4BAA4B,GAAG,IAAI,CACtC,gBAAgB,EACd,gBAAgB,GAChB,UAAU,GACV,WAAW,GACX,OAAO,GACP,iBAAiB,GACjB,SAAS,GACT,cAAc,CACjB,GAAG;IACF,cAAc,EAAE,mBAAmB,CAAC;IACpC,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gFAAgF;IAChF,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,8EAA8E;IAC9E,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAsB,YAAW,eAAe;IA8C/C,OAAO,CAAC,QAAQ,CAAC,IAAI;IA7CjC,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,IAAI,CAA+C;I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M,GAAG,IAAI,CAAC;QAChC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACvC,GAAG,IAAI;IAQF,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAqB/E,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAyBvC,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAI1C,QAAQ,CAAC,EACd,KAAK,EACL,YAAY,EACZ,UAAU,EACV,OAAO,GACR,EAAE,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC;IAoT7C;;;;;;OAMG;YACW,kBAAkB;IAoGhC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAMjD,WAAW,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAiDhG,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,eAAe;IAIrC,OAAO,CAAC,cAAc;IAKtB;;;;;;;;;;;;OAYG;IACH,qBAAqB,IAAI,IAAI;IAI7B,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB,CAAK;YAEhB,mBAAmB;IAS3B,IAAI;YA2BI,aAAa;YA4Bb,OAAO;IAoIrB,OAAO,CAAC,qBAAqB;YAsCf,UAAU;IA2DxB,OAAO,CAAC,iBAAiB;CAsD1B"}
package/dist/dispatch.js CHANGED
@@ -573,6 +573,10 @@ export class CodexAppServerAdapter {
573
573
  const forkParams = {
574
574
  threadId: parentThreadId,
575
575
  ephemeral: true,
576
+ // The fork still inherits the parent's model-visible history; omit
577
+ // only the display turns from the JSON-RPC response. Large persisted
578
+ // threads can otherwise produce an equally large one-line payload.
579
+ excludeTurns: true,
576
580
  // Forks must inherit the bridge's approval/sandbox contract. thread/fork
577
581
  // does NOT inherit them from the parent thread — omitting them falls
578
582
  // back to codex defaults (on-request approval, workspace-write), and an
@@ -798,7 +802,13 @@ export class CodexAppServerAdapter {
798
802
  try {
799
803
  await client.sendRequest('initialize', {
800
804
  clientInfo: { name: 'parall-codex-agent', version: '1' },
801
- capabilities: { experimentalApi: false },
805
+ // Required by thread/resume.excludeTurns and thread/fork.excludeTurns.
806
+ // The bridge sends no other experimental request fields. It does not
807
+ // consume thread status snapshots, so suppress them at the source.
808
+ capabilities: {
809
+ experimentalApi: true,
810
+ optOutNotificationMethods: ['thread/status/changed'],
811
+ },
802
812
  });
803
813
  client.sendNotification('initialized', {});
804
814
  }
@@ -887,7 +897,13 @@ export class CodexAppServerAdapter {
887
897
  }
888
898
  const method = opts.resumeId ? 'thread/resume' : 'thread/start';
889
899
  const params = opts.resumeId
890
- ? { threadId: opts.resumeId, ...commonParams }
900
+ ? {
901
+ threadId: opts.resumeId,
902
+ // Resume the complete model-visible history, but do not serialize
903
+ // its display turns back across stdio. The bridge only needs the id.
904
+ excludeTurns: true,
905
+ ...commonParams,
906
+ }
891
907
  : { cwd: this.opts.workspaceDir, ...commonParams };
892
908
  const result = await client.sendRequest(method, params);
893
909
  const threadId = extractThreadId(result) ?? opts.resumeId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/codex-agent",
3
- "version": "1.52.1",
3
+ "version": "1.52.2",
4
4
  "description": "Codex CLI bridge runtime for self-hosted Parall agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@parall/agent-core": "1.52.1",
29
- "@parall/cli": "1.52.1",
30
- "@parall/sdk": "1.52.1"
28
+ "@parall/cli": "1.52.2",
29
+ "@parall/agent-core": "1.52.2",
30
+ "@parall/sdk": "1.52.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.0.0",
package/src/dispatch.ts CHANGED
@@ -671,6 +671,10 @@ export class CodexAppServerAdapter implements DispatchAdapter {
671
671
  const forkParams: Record<string, unknown> = {
672
672
  threadId: parentThreadId,
673
673
  ephemeral: true,
674
+ // The fork still inherits the parent's model-visible history; omit
675
+ // only the display turns from the JSON-RPC response. Large persisted
676
+ // threads can otherwise produce an equally large one-line payload.
677
+ excludeTurns: true,
674
678
  // Forks must inherit the bridge's approval/sandbox contract. thread/fork
675
679
  // does NOT inherit them from the parent thread — omitting them falls
676
680
  // back to codex defaults (on-request approval, workspace-write), and an
@@ -913,7 +917,13 @@ export class CodexAppServerAdapter implements DispatchAdapter {
913
917
  try {
914
918
  await client.sendRequest('initialize', {
915
919
  clientInfo: { name: 'parall-codex-agent', version: '1' },
916
- capabilities: { experimentalApi: false },
920
+ // Required by thread/resume.excludeTurns and thread/fork.excludeTurns.
921
+ // The bridge sends no other experimental request fields. It does not
922
+ // consume thread status snapshots, so suppress them at the source.
923
+ capabilities: {
924
+ experimentalApi: true,
925
+ optOutNotificationMethods: ['thread/status/changed'],
926
+ },
917
927
  });
918
928
  client.sendNotification('initialized', {});
919
929
  } catch (err) {
@@ -1011,7 +1021,13 @@ export class CodexAppServerAdapter implements DispatchAdapter {
1011
1021
 
1012
1022
  const method = opts.resumeId ? 'thread/resume' : 'thread/start';
1013
1023
  const params: Record<string, unknown> = opts.resumeId
1014
- ? { threadId: opts.resumeId, ...commonParams }
1024
+ ? {
1025
+ threadId: opts.resumeId,
1026
+ // Resume the complete model-visible history, but do not serialize
1027
+ // its display turns back across stdio. The bridge only needs the id.
1028
+ excludeTurns: true,
1029
+ ...commonParams,
1030
+ }
1015
1031
  : { cwd: this.opts.workspaceDir, ...commonParams };
1016
1032
 
1017
1033
  const result = await client.sendRequest(method, params);