tide-commander 1.224.0 → 1.225.0

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 (124) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/assets/{AudioPlayer-CS32DiiF.js → AudioPlayer-jZt9IfuZ.js} +1 -1
  3. package/dist/assets/{BossLogsModal-CuiASPjO.js → BossLogsModal-B0X5u2Ac.js} +1 -1
  4. package/dist/assets/{BossSpawnModal-BFG6WMHP.js → BossSpawnModal-DY3zdfWB.js} +1 -1
  5. package/dist/assets/{ControlsModal-suKdgBAJ.js → ControlsModal-CuX5jJdZ.js} +1 -1
  6. package/dist/assets/{DockerLogsModal-CIY242F2.js → DockerLogsModal-ltLKtWIH.js} +1 -1
  7. package/dist/assets/{EmbeddedEditor-Bu-NinV4.js → EmbeddedEditor-Ck6VLog0.js} +1 -1
  8. package/dist/assets/{FcStdViewer-B_ZUSI2J.js → FcStdViewer-CuOv_BSz.js} +1 -1
  9. package/dist/assets/{GcodeViewer-BUz7zxIl.js → GcodeViewer-DhEKRpO2.js} +1 -1
  10. package/dist/assets/{GlbViewer-CNR1g2NS.js → GlbViewer-BeX58iaX.js} +1 -1
  11. package/dist/assets/{GmailOAuthSetup-Dj81j7pf.js → GmailOAuthSetup-DqJHTCo-.js} +1 -1
  12. package/dist/assets/{GoogleOAuthSetup-vbnnwez5.js → GoogleOAuthSetup-jH9hF3NX.js} +1 -1
  13. package/dist/assets/{IframeModal-BCC6ZdKx.js → IframeModal-CUqtK1f4.js} +1 -1
  14. package/dist/assets/{IntegrationsPanel-CY3lUNI1.js → IntegrationsPanel-Bc9INJgu.js} +2 -2
  15. package/dist/assets/{LogViewerModal-CW81dfO6.js → LogViewerModal-mVoEsFi2.js} +1 -1
  16. package/dist/assets/{MonitoringModal-CwS3yQ7M.js → MonitoringModal-DA1rw4Cc.js} +1 -1
  17. package/dist/assets/{PM2LogsModal-MvDxO2TF.js → PM2LogsModal-BnZsFMlK.js} +1 -1
  18. package/dist/assets/{PluginsPanel-Br7cw4J1.js → PluginsPanel-Bm3ALgpI.js} +1 -1
  19. package/dist/assets/{RestoreArchivedAreaModal-DEuz0Tmk.js → RestoreArchivedAreaModal-CZtNAKAr.js} +1 -1
  20. package/dist/assets/{Scene2DCanvas-46rDN8dN.js → Scene2DCanvas-B77ZgXL3.js} +1 -1
  21. package/dist/assets/{SceneManager-CDr5_lQH.js → SceneManager-BlaUvN2F.js} +1 -1
  22. package/dist/assets/{SkillsPanel-DIeRNRtF.js → SkillsPanel-1BVZqxwk.js} +1 -1
  23. package/dist/assets/{SlackMultiInstanceSetup-C8U0OpPi.js → SlackMultiInstanceSetup-DFuTux3H.js} +1 -1
  24. package/dist/assets/{SpawnModal-BMmCif0b.js → SpawnModal-CX2RNNSA.js} +1 -1
  25. package/dist/assets/{StatisticsModal-BBcwwM9a.js → StatisticsModal-CzayaYkl.js} +1 -1
  26. package/dist/assets/{StlViewer-Y6Q9LV4g.js → StlViewer-9vgC2q4z.js} +1 -1
  27. package/dist/assets/{SubordinateAssignmentModal-CxBrkrsy.js → SubordinateAssignmentModal-BBBA6T82.js} +1 -1
  28. package/dist/assets/{ThreeAreaSelector-jdePYE0s.js → ThreeAreaSelector-DPRjk2Ts.js} +1 -1
  29. package/dist/assets/{ThreeViewShortcuts-fQ1LZj-k.js → ThreeViewShortcuts-zhWdp-h4.js} +1 -1
  30. package/dist/assets/{TriggerManagerPanel-DFijjhCA.js → TriggerManagerPanel-Dd710g6g.js} +1 -1
  31. package/dist/assets/{VideoPlayer--W7gA51W.js → VideoPlayer-Cw3oAVaY.js} +1 -1
  32. package/dist/assets/{WorkflowEditorPanel-B5AhOJD7.js → WorkflowEditorPanel-coplQaeR.js} +1 -1
  33. package/dist/assets/{abnfDiagram-VRR7QNED-BaTbSF7k.js → abnfDiagram-VRR7QNED-D30ldWQI.js} +1 -1
  34. package/dist/assets/{arc-BST2bg1n.js → arc-B5fXAT4d.js} +1 -1
  35. package/dist/assets/{architectureDiagram-ZJ3FMSHR-Cg4xwkXg.js → architectureDiagram-ZJ3FMSHR-OACPRDFp.js} +1 -1
  36. package/dist/assets/{area-logos-BFSIooyB.js → area-logos-C_UcwXnG.js} +1 -1
  37. package/dist/assets/{blockDiagram-677ZJIJ3-Cv21hNY1.js → blockDiagram-677ZJIJ3-DLS1oI5k.js} +1 -1
  38. package/dist/assets/{c4Diagram-LMCZKHZV-DRMk82uY.js → c4Diagram-LMCZKHZV-Ce2TbdTk.js} +1 -1
  39. package/dist/assets/channel-CFQL7poN.js +1 -0
  40. package/dist/assets/{chunk-2Q5K7J3B-Cino9QTV.js → chunk-2Q5K7J3B-9uH2bL4c.js} +1 -1
  41. package/dist/assets/{chunk-32BRIVSS-K9CkGCF3.js → chunk-32BRIVSS-PIGTgs9Z.js} +1 -1
  42. package/dist/assets/{chunk-5VM5RSS4-wSG2aCSB.js → chunk-5VM5RSS4-BvOmzVEy.js} +1 -1
  43. package/dist/assets/{chunk-EX3LRPZG-DiP8GRRE.js → chunk-EX3LRPZG-DYDo-oqH.js} +1 -1
  44. package/dist/assets/{chunk-JWPE2WC7-C2T4HdGo.js → chunk-JWPE2WC7-DCt0vWks.js} +1 -1
  45. package/dist/assets/{chunk-MOJQB5TN-K6VUUce6.js → chunk-MOJQB5TN-4IgUOGT4.js} +1 -1
  46. package/dist/assets/{chunk-RYQCIY6F-CwUKwfrO.js → chunk-RYQCIY6F-CHrOMdGp.js} +1 -1
  47. package/dist/assets/{chunk-V7JOEXUC-Do7m7In-.js → chunk-V7JOEXUC-BszZ10wP.js} +1 -1
  48. package/dist/assets/{chunk-VR4S4FIN-C3sjuCSc.js → chunk-VR4S4FIN-C9Z-icFU.js} +1 -1
  49. package/dist/assets/{chunk-XXDRQBXY-aWtL9GIN.js → chunk-XXDRQBXY-B6ILy8IZ.js} +1 -1
  50. package/dist/assets/classDiagram-OUVF2IWQ-B6CVBa-n.js +1 -0
  51. package/dist/assets/classDiagram-v2-EOCWNBFH-B6CVBa-n.js +1 -0
  52. package/dist/assets/{cose-bilkent-JH36ORCC-DPZ-w5xz.js → cose-bilkent-JH36ORCC-CZtqH7oM.js} +1 -1
  53. package/dist/assets/{cynefin-VYW2F7L2-BIsWEfjH.js → cynefin-VYW2F7L2-BNThd1il.js} +1 -1
  54. package/dist/assets/{cynefinDiagram-TSTJHNR4-DQc1SjqU.js → cynefinDiagram-TSTJHNR4-CsMW6hFi.js} +1 -1
  55. package/dist/assets/{dagre-VKFMJZFB-CSQALpAg.js → dagre-VKFMJZFB-CNr66D_8.js} +1 -1
  56. package/dist/assets/{default-agent-skills-hW2YTtT1.js → default-agent-skills-jN6ycdij.js} +1 -1
  57. package/dist/assets/{diagram-FQU43EPY-Co8RC7NC.js → diagram-FQU43EPY-5I_vOKG_.js} +1 -1
  58. package/dist/assets/{diagram-G47NLZAW-C1h1rqbG.js → diagram-G47NLZAW-BBV3ja6E.js} +1 -1
  59. package/dist/assets/{diagram-NH7WQ7WH-DzStYMvA.js → diagram-NH7WQ7WH-BCNNMeY7.js} +1 -1
  60. package/dist/assets/{diagram-OA4YK3LP-Bnga2eI1.js → diagram-OA4YK3LP-Dg1_tjIO.js} +1 -1
  61. package/dist/assets/{diagram-WEI45ONY-DtML0qBL.js → diagram-WEI45ONY-D5bZMsPF.js} +1 -1
  62. package/dist/assets/{ebnfDiagram-CCIWWBDH-srK1jz3r.js → ebnfDiagram-CCIWWBDH-6dyS6yiZ.js} +1 -1
  63. package/dist/assets/{erDiagram-Q63AITRT-BYnoRg9S.js → erDiagram-Q63AITRT-BvQbSPr-.js} +1 -1
  64. package/dist/assets/{flowDiagram-23GEKE2U-COT9xZWU.js → flowDiagram-23GEKE2U-BLrOgWe6.js} +1 -1
  65. package/dist/assets/{ganttDiagram-NO4QXBWP-DNHD_H8t.js → ganttDiagram-NO4QXBWP-zfxsHz1j.js} +1 -1
  66. package/dist/assets/{gitGraphDiagram-IHSO6WYX-BWLh25rZ.js → gitGraphDiagram-IHSO6WYX-CsXcZEsb.js} +1 -1
  67. package/dist/assets/{index-NEWtG02D.js → index-7VeWs2hO.js} +1 -1
  68. package/dist/assets/{index-DZ7ozYBG.js → index-81v1YhzY.js} +1 -1
  69. package/dist/assets/{index-BlH_HQ25.js → index-B8dXiERO.js} +1 -1
  70. package/dist/assets/{index-C2-8cspl.js → index-CbZzDcKw.js} +1 -1
  71. package/dist/assets/{index-cGbqyuV8.js → index-Cyh5Vi8i.js} +3 -3
  72. package/dist/assets/{index-BDMDSPRK.js → index-D3RCRR7O.js} +1 -1
  73. package/dist/assets/{index-FV2om2lX.js → index-DX5OIDJk.js} +2 -2
  74. package/dist/assets/{index-Dvs3ntB2.js → index-DuwgAepg.js} +1 -1
  75. package/dist/assets/{index-BxVyMj4V.js → index-T3NKd4Cd.js} +1 -1
  76. package/dist/assets/{infoDiagram-FWYZ7A6U-CwYFYRFg.js → infoDiagram-FWYZ7A6U-BJJ5mAw4.js} +1 -1
  77. package/dist/assets/{ishikawaDiagram-FXEZZL3T-BwkPIKzg.js → ishikawaDiagram-FXEZZL3T-BGnoz9tB.js} +1 -1
  78. package/dist/assets/{journeyDiagram-5HDEW3XC-C9arAZ8y.js → journeyDiagram-5HDEW3XC-CS57ps9Q.js} +1 -1
  79. package/dist/assets/{kanban-definition-HUTT4EX6-6wTmayoj.js → kanban-definition-HUTT4EX6-DpzXDGx6.js} +1 -1
  80. package/dist/assets/{linear-Dj4zYq3h.js → linear-n2setri6.js} +1 -1
  81. package/dist/assets/main-1atgIVhM.css +1 -0
  82. package/dist/assets/main-C5I2ff6v.js +372 -0
  83. package/dist/assets/{mermaid.core-Bq0L11_-.js → mermaid.core-Vc5kwkJS.js} +4 -4
  84. package/dist/assets/{mindmap-definition-LN4V7U3C-CxIXLa8F.js → mindmap-definition-LN4V7U3C-NHq-fnDP.js} +1 -1
  85. package/dist/assets/{pegDiagram-2B236MQR-CrPAdYQD.js → pegDiagram-2B236MQR-DjWz5_Pj.js} +1 -1
  86. package/dist/assets/{pieDiagram-ENE6RG2P-D3EP1YJI.js → pieDiagram-ENE6RG2P-DV0wCClR.js} +1 -1
  87. package/dist/assets/{quadrantDiagram-ABIIQ3AL-CWkbCwdX.js → quadrantDiagram-ABIIQ3AL-9oxHhNNL.js} +1 -1
  88. package/dist/assets/{railroadDiagram-RFXS5EU6-z0g5DBHp.js → railroadDiagram-RFXS5EU6-BV7ZzYsD.js} +1 -1
  89. package/dist/assets/{requirementDiagram-TGXJPOKE-CiMiX_JJ.js → requirementDiagram-TGXJPOKE-rxROPfgc.js} +1 -1
  90. package/dist/assets/{sankeyDiagram-HTMAVEWB-BmOS9QdD.js → sankeyDiagram-HTMAVEWB-DdqdkM9F.js} +1 -1
  91. package/dist/assets/{sequenceDiagram-DBY2YBRQ-C7RoHZtD.js → sequenceDiagram-DBY2YBRQ-DrYV4ddG.js} +1 -1
  92. package/dist/assets/{sizeCapture-X5ZJPWSS-Caj9tBBH.js → sizeCapture-X5ZJPWSS-Clah5xQf.js} +1 -1
  93. package/dist/assets/{stateDiagram-2N3HPSRC-DWIQWBNS.js → stateDiagram-2N3HPSRC-DFuDZoyE.js} +1 -1
  94. package/dist/assets/stateDiagram-v2-6OUMAXLB-BVqBBPRG.js +1 -0
  95. package/dist/assets/{swimlanes-5IMT3BWC-Cb4faLOv.js → swimlanes-5IMT3BWC-Bg1Yce4S.js} +2 -2
  96. package/dist/assets/swimlanesDiagram-G3AALYLV-DKh5fwsD.js +8 -0
  97. package/dist/assets/{timeline-definition-FHXFAJF6-CVizZxxU.js → timeline-definition-FHXFAJF6-8BEq0m87.js} +1 -1
  98. package/dist/assets/{vennDiagram-L72KCM5P-DadCc6f6.js → vennDiagram-L72KCM5P-B7e-5cPK.js} +1 -1
  99. package/dist/assets/{wardleyDiagram-EHGQE667-l7-xE64R.js → wardleyDiagram-EHGQE667-B3rfJtRQ.js} +1 -1
  100. package/dist/assets/{web-CnZQAYa5.js → web-DMCnyDRK.js} +1 -1
  101. package/dist/assets/{web-CSVD8nk7.js → web-DnkKK4-5.js} +1 -1
  102. package/dist/assets/{web-DIdAF8p4.js → web-xMWMv3l-.js} +1 -1
  103. package/dist/assets/{xychartDiagram-FW5EYKEG-CFZA5bRS.js → xychartDiagram-FW5EYKEG-BK83E4xr.js} +1 -1
  104. package/dist/build-info.json +1 -1
  105. package/dist/index.html +2 -2
  106. package/dist/src/packages/server/claude/session-loader.js +112 -25
  107. package/dist/src/packages/server/codex/app-server/app-server-event-adapter.js +3 -1
  108. package/dist/src/packages/server/codex/app-server/app-server-process.js +50 -2
  109. package/dist/src/packages/server/codex/app-server/codex-app-server-runner.js +25 -1
  110. package/dist/src/packages/server/codex/item-completed.js +57 -0
  111. package/dist/src/packages/server/codex/json-event-parser.js +24 -4
  112. package/dist/src/packages/server/integrations/jira/jira-client.js +3 -1
  113. package/dist/src/packages/server/routes/agents.js +20 -52
  114. package/dist/src/packages/shared/agent-types.js +9 -3
  115. package/dist/src/packages/shared/model-freshness.js +3 -1
  116. package/dist/src/packages/shared/shell-file-writes.js +26 -0
  117. package/package.json +1 -1
  118. package/dist/assets/channel-oEvwVeL5.js +0 -1
  119. package/dist/assets/classDiagram-OUVF2IWQ-3O7V3aga.js +0 -1
  120. package/dist/assets/classDiagram-v2-EOCWNBFH-3O7V3aga.js +0 -1
  121. package/dist/assets/main-DoVWAcYA.css +0 -1
  122. package/dist/assets/main-sBSI_4k0.js +0 -372
  123. package/dist/assets/stateDiagram-v2-6OUMAXLB-Q7zbcB30.js +0 -1
  124. package/dist/assets/swimlanesDiagram-G3AALYLV-DZKxmgt5.js +0 -8
@@ -27,7 +27,7 @@
27
27
  * rejoin a daemon whose account no longer matches the auth file, and
28
28
  * `killDetachedAppServerDaemon()` is called by the account switcher.
29
29
  */
30
- import { spawn } from 'child_process';
30
+ import { execFileSync, spawn } from 'child_process';
31
31
  import * as http from 'http';
32
32
  import * as net from 'net';
33
33
  import * as fs from 'fs';
@@ -51,6 +51,8 @@ export class CodexAppServerProcess {
51
51
  stopped = false;
52
52
  /** True when the last ensureStarted() rejoined an already-running daemon. */
53
53
  reconnectedToExisting = false;
54
+ /** codexBinaryStamp of the binary the connected daemon was started from. */
55
+ daemonStamp;
54
56
  constructor(opts) {
55
57
  this.opts = opts;
56
58
  }
@@ -61,6 +63,15 @@ export class CodexAppServerProcess {
61
63
  didReconnect() {
62
64
  return this.reconnectedToExisting;
63
65
  }
66
+ /**
67
+ * The codex binary on disk changed since this daemon started (an upgrade).
68
+ * The daemon is restart-surviving, so without this it would keep serving
69
+ * the OLD version forever — and an old codex rejects newer models
70
+ * ("model is not supported when using Codex with a ChatGPT account").
71
+ */
72
+ isOutdated() {
73
+ return this.daemonStamp === undefined || this.daemonStamp !== codexBinaryStamp(this.opts.executablePath);
74
+ }
64
75
  ensureStarted() {
65
76
  if (this.readyPromise)
66
77
  return this.readyPromise;
@@ -77,6 +88,9 @@ export class CodexAppServerProcess {
77
88
  if (existing && (await this.isDaemonHealthy(existing))) {
78
89
  if (await daemonAccountIsCurrent(existing.port)) {
79
90
  log.log(`🔗 Rejoining existing app-server daemon pid=${existing.pid} port=${existing.port}`);
91
+ // Rejoin even when outdated: it may be running in-flight turns from
92
+ // before the restart. The runner replaces it once no turn is running.
93
+ this.daemonStamp = existing.binaryStamp;
80
94
  this.port = existing.port;
81
95
  this.reconnectedToExisting = true;
82
96
  await this.connectAndInitialize(existing.port);
@@ -88,8 +102,10 @@ export class CodexAppServerProcess {
88
102
  // 2. Spawn a fresh detached daemon.
89
103
  this.reconnectedToExisting = false;
90
104
  const port = await findFreePort();
105
+ const binaryStamp = codexBinaryStamp(this.opts.executablePath);
91
106
  const pid = this.spawnDaemon(port);
92
- saveDaemonInfo({ port, pid, startedAt: Date.now() });
107
+ saveDaemonInfo({ port, pid, startedAt: Date.now(), binaryStamp });
108
+ this.daemonStamp = binaryStamp;
93
109
  this.port = port;
94
110
  await this.waitForReadyz(port);
95
111
  await this.connectAndInitialize(port);
@@ -272,6 +288,38 @@ export class CodexAppServerProcess {
272
288
  killDetachedAppServerDaemon();
273
289
  }
274
290
  }
291
+ const binaryStampCache = new Map();
292
+ /**
293
+ * Identity of the codex binary at `executablePath`: its `--version` output,
294
+ * cached per (real path, mtime, size) so turn starts don't spawn a process
295
+ * each time — an npm upgrade replaces the file, which changes the key.
296
+ */
297
+ export function codexBinaryStamp(executablePath) {
298
+ let real = executablePath;
299
+ try {
300
+ real = fs.realpathSync(executablePath);
301
+ }
302
+ catch { /* bare name on PATH */ }
303
+ let key = null;
304
+ try {
305
+ const stat = fs.statSync(real);
306
+ key = `${real}:${stat.mtimeMs}:${stat.size}`;
307
+ }
308
+ catch { /* not a path we can stat — re-read the version every time */ }
309
+ const cached = binaryStampCache.get(executablePath);
310
+ if (key && cached?.key === key)
311
+ return cached.stamp;
312
+ let stamp = key ?? executablePath;
313
+ try {
314
+ const version = execFileSync(executablePath, ['--version'], { encoding: 'utf8', timeout: 5000, stdio: ['ignore', 'pipe', 'ignore'] }).trim();
315
+ if (version)
316
+ stamp = version;
317
+ }
318
+ catch { /* fall back to the file identity */ }
319
+ if (key)
320
+ binaryStampCache.set(executablePath, { key, stamp });
321
+ return stamp;
322
+ }
275
323
  /**
276
324
  * Kill the detached daemon recorded on disk, if any, and forget it.
277
325
  *
@@ -153,6 +153,26 @@ export class CodexAppServerRunner {
153
153
  // Otherwise it's still inProgress: thread/resume subscribed us, and the
154
154
  // replayed deltas + turn/completed will finalize it via applyEvent().
155
155
  }
156
+ /**
157
+ * Replace a daemon started from an older codex binary — but only while no
158
+ * agent has a turn in flight, so an upgrade never cuts running work (the
159
+ * check repeats on every launch until the daemon is idle). Idle agents'
160
+ * thread subscriptions die with it; their next message resumes the thread
161
+ * by sessionId, the same lazy path used after a daemon crash.
162
+ */
163
+ replaceOutdatedDaemonIfIdle() {
164
+ const proc = this.process;
165
+ if (!proc || !proc.isAlive() || !proc.isOutdated())
166
+ return false;
167
+ if ([...this.agents.values()].some((state) => state.turnState === 'processing'))
168
+ return false;
169
+ log.warn('codex binary changed since the app-server daemon started — replacing the daemon');
170
+ proc.killDaemon();
171
+ this.process = null;
172
+ this.agents.clear();
173
+ this.threadToAgent.clear();
174
+ return true;
175
+ }
156
176
  handleProcessExit() {
157
177
  // The WebSocket to the daemon dropped. Finalize live agents so none stays
158
178
  // stuck 'working'; the daemon itself likely survives, so the next message
@@ -226,9 +246,13 @@ export class CodexAppServerRunner {
226
246
  }
227
247
  async runImpl(request) {
228
248
  const { agentId, workingDir } = request;
229
- const proc = this.ensureProcess(workingDir);
249
+ let proc = this.ensureProcess(workingDir);
230
250
  try {
231
251
  await proc.ensureStarted();
252
+ if (this.replaceOutdatedDaemonIfIdle()) {
253
+ proc = this.ensureProcess(workingDir);
254
+ await proc.ensureStarted();
255
+ }
232
256
  }
233
257
  catch (err) {
234
258
  const msg = err instanceof Error ? err.message : String(err);
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Codex's `event_msg` → `item_completed` records (2026-11 Codex builds).
3
+ *
4
+ * Newer Codex writes one of these per finished item, with PascalCase item
5
+ * types, NEXT TO the records Tide Commander already renders:
6
+ * - AgentMessage / UserMessage / Reasoning duplicate the `response_item`
7
+ * message / reasoning entries;
8
+ * - CommandExecution / FileChange are the commands and patches run inside the
9
+ * `exec` custom tool call, which already renders as its own row.
10
+ * Unrecognised, every one of them was dumped as raw `[codex-event]` JSON — 135
11
+ * blocks in one review session. The only kind with information found nowhere
12
+ * else is `Extension` / `web.search` (earlier builds sent it as
13
+ * `web_search_call`), which becomes a WebSearch row.
14
+ *
15
+ * Shared by the live parser (json-event-parser.ts) and the history loader
16
+ * (session-loader.ts) so both render the same thing.
17
+ */
18
+ /** Payload types of `event_msg` records that carry nothing to display. */
19
+ export const SILENT_CODEX_EVENT_MSG_TYPES = new Set([
20
+ 'thread_settings_applied',
21
+ ]);
22
+ /**
23
+ * Payload types of `response_item` records that carry nothing to display:
24
+ * `additional_tools` is the tool catalogue Codex hands the model (developer
25
+ * role) — a multi-KB description dump, not conversation.
26
+ */
27
+ export const SILENT_CODEX_RESPONSE_ITEM_TYPES = new Set([
28
+ 'additional_tools',
29
+ ]);
30
+ function isRecord(value) {
31
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
32
+ }
33
+ export function classifyCodexItemCompleted(payload) {
34
+ const item = isRecord(payload) && isRecord(payload.item) ? payload.item : null;
35
+ if (!item)
36
+ return { kind: 'skip' };
37
+ if (item.type === 'Extension' && item.kind === 'web.search') {
38
+ const action = isRecord(item.action) ? item.action : {};
39
+ const queries = Array.isArray(action.queries) && action.queries.every((q) => typeof q === 'string')
40
+ ? action.queries
41
+ : undefined;
42
+ return {
43
+ kind: 'web_search',
44
+ callId: typeof item.id === 'string' ? item.id : '',
45
+ query: typeof item.query === 'string' ? item.query : undefined,
46
+ action: {
47
+ type: typeof action.type === 'string' ? action.type : undefined,
48
+ query: typeof action.query === 'string' ? action.query : undefined,
49
+ queries,
50
+ url: typeof action.url === 'string' ? action.url : undefined,
51
+ },
52
+ };
53
+ }
54
+ // Everything else is either a duplicate of an already-rendered record (see
55
+ // above) or a kind Tide Commander doesn't know yet — never a raw JSON dump.
56
+ return { kind: 'skip' };
57
+ }
@@ -3,7 +3,8 @@ import * as fs from 'fs';
3
3
  import * as path from 'path';
4
4
  import { createLogger } from '../utils/logger.js';
5
5
  import { materializeCodexGeneratedImage } from './generated-image.js';
6
- import { getShellFileWrites } from '../../shared/shell-file-writes.js';
6
+ import { getShellFileWrites, unwrapShellLaunch } from '../../shared/shell-file-writes.js';
7
+ import { classifyCodexItemCompleted, SILENT_CODEX_EVENT_MSG_TYPES, SILENT_CODEX_RESPONSE_ITEM_TYPES } from './item-completed.js';
7
8
  const log = createLogger('CodexParser');
8
9
  let hasLoggedTurnAbortedLiveWarning = false;
9
10
  const MAX_DIFF_FILE_BYTES = 256 * 1024;
@@ -73,6 +74,7 @@ function parseItem(item) {
73
74
  return {
74
75
  id: asString(item.id),
75
76
  type: asString(item.type),
77
+ kind: asString(item.kind),
76
78
  text: asString(item.text),
77
79
  query: asString(item.query),
78
80
  command: asString(item.command),
@@ -336,6 +338,17 @@ export class CodexJsonEventParser {
336
338
  if (payloadType === 'patch_apply_begin' || payloadType === 'patch_apply_end') {
337
339
  return [];
338
340
  }
341
+ // item_completed (newer Codex): duplicates of rendered records, except
342
+ // web searches — see codex/item-completed.ts.
343
+ if (payloadType === 'item_completed') {
344
+ const action = classifyCodexItemCompleted(payload);
345
+ if (action.kind !== 'web_search')
346
+ return [];
347
+ return this.parseWebSearchEvent({ call_id: action.callId || undefined, query: action.query, action: action.action }, true);
348
+ }
349
+ if (payloadType && SILENT_CODEX_EVENT_MSG_TYPES.has(payloadType)) {
350
+ return [];
351
+ }
339
352
  return [this.buildUnknownEventFallback(`Unhandled Codex event_msg type: ${payloadType}`, payload)];
340
353
  }
341
354
  parseMcpToolCallEvent(payload, completed) {
@@ -463,6 +476,8 @@ export class CodexJsonEventParser {
463
476
  if (payload.type === 'custom_tool_call_output') {
464
477
  return this.parseCustomToolCallOutput(payload);
465
478
  }
479
+ if (SILENT_CODEX_RESPONSE_ITEM_TYPES.has(payload.type))
480
+ return [];
466
481
  return [this.buildUnknownEventFallback(`Unhandled Codex response_item payload type: ${payload.type}`, payload)];
467
482
  }
468
483
  extractReasoningSummaryText(payload) {
@@ -988,7 +1003,8 @@ export class CodexJsonEventParser {
988
1003
  }
989
1004
  buildCommandExecutionToolInput(item) {
990
1005
  return {
991
- command: item.command,
1006
+ // `/bin/zsh -lc '<script>'` → the script the agent ran.
1007
+ command: item.command ? unwrapShellLaunch(item.command) : item.command,
992
1008
  status: item.status,
993
1009
  };
994
1010
  }
@@ -1160,8 +1176,12 @@ export class CodexJsonEventParser {
1160
1176
  return calls;
1161
1177
  }
1162
1178
  extractShellCommand(command) {
1163
- // Typical form from codex exec JSON:
1164
- // /bin/zsh -lc "actual command"
1179
+ // Typical form from codex exec JSON: /bin/zsh -lc "actual command". The
1180
+ // lexer handles quote concatenation ('"'!.git'"'); the regexes below stay
1181
+ // as the fallback for anything it declines.
1182
+ const unwrapped = unwrapShellLaunch(command);
1183
+ if (unwrapped !== command)
1184
+ return unwrapped;
1165
1185
  const doubleQuoted = command.match(/-lc\s+"([\s\S]*)"$/);
1166
1186
  if (doubleQuoted) {
1167
1187
  return this.unescapeShellDoubleQuotes(doubleQuoted[1]);
@@ -146,7 +146,9 @@ export class JiraClient {
146
146
  return {
147
147
  id,
148
148
  public: result.comment?.public ?? isPublic,
149
- attachments: result.attachments ?? [],
149
+ attachments: Array.isArray(result.attachments)
150
+ ? result.attachments
151
+ : (result.attachments?.values ?? []),
150
152
  };
151
153
  }
152
154
  async getComments(issueKey) {
@@ -9,7 +9,7 @@ import * as path from 'path';
9
9
  import * as os from 'os';
10
10
  import { agentService, runtimeService, bossMessageService, skillService } from '../services/index.js';
11
11
  import { getClaudeProjectDir, loadAreas, saveAreas } from '../data/index.js';
12
- import { loadSession } from '../claude/session-loader.js';
12
+ import { loadSession, listAllSessions } from '../claude/session-loader.js';
13
13
  import { getAllCustomClasses } from '../services/custom-class-service.js';
14
14
  // Session listing is done inline for performance
15
15
  import { createLogger } from '../utils/logger.js';
@@ -157,7 +157,6 @@ router.get('/pi/models', async (req, res) => {
157
157
  router.get('/claude-sessions', async (req, res) => {
158
158
  try {
159
159
  const cwd = req.query.cwd;
160
- const CLAUDE_PROJECTS_DIR = path.join(os.homedir(), '.claude', 'projects');
161
160
  const allSessions = [];
162
161
  if (cwd) {
163
162
  // List sessions for specific directory - optimized for speed
@@ -218,56 +217,25 @@ router.get('/claude-sessions', async (req, res) => {
218
217
  }
219
218
  }
220
219
  else {
221
- // List all sessions across all projects
222
- if (fs.existsSync(CLAUDE_PROJECTS_DIR)) {
223
- const projectDirs = fs.readdirSync(CLAUDE_PROJECTS_DIR);
224
- for (const encodedPath of projectDirs) {
225
- const projectDir = path.join(CLAUDE_PROJECTS_DIR, encodedPath);
226
- const stats = fs.statSync(projectDir);
227
- if (!stats.isDirectory())
228
- continue;
229
- // Decode path: -home-user-project -> /home/user/project
230
- const decodedPath = encodedPath.replace(/^-/, '/').replace(/-/g, '/');
231
- const files = fs.readdirSync(projectDir);
232
- for (const file of files) {
233
- if (!file.endsWith('.jsonl'))
234
- continue;
235
- const sessionId = file.replace('.jsonl', '');
236
- const filePath = path.join(projectDir, file);
237
- const fileStats = fs.statSync(filePath);
238
- // Count messages quickly
239
- const content = fs.readFileSync(filePath, 'utf-8');
240
- const lines = content.split('\n').filter(l => l.trim());
241
- let messageCount = 0;
242
- let firstMessage;
243
- for (const line of lines) {
244
- try {
245
- const parsed = JSON.parse(line);
246
- if (parsed.type === 'user' || parsed.type === 'assistant') {
247
- messageCount++;
248
- if (!firstMessage && parsed.type === 'user' && parsed.message?.content) {
249
- const msg = typeof parsed.message.content === 'string'
250
- ? parsed.message.content
251
- : parsed.message.content[0]?.text || '';
252
- firstMessage = msg.substring(0, 100);
253
- }
254
- }
255
- }
256
- catch {
257
- // Skip invalid lines
258
- }
259
- }
260
- allSessions.push({
261
- sessionId,
262
- projectPath: decodedPath,
263
- lastModified: fileStats.mtime,
264
- messageCount,
265
- firstMessage,
266
- });
267
- }
268
- }
269
- // Sort by last modified, newest first
270
- allSessions.sort((a, b) => new Date(b.lastModified).getTime() - new Date(a.lastModified).getTime());
220
+ // List all sessions across all projects.
221
+ // Goes through listAllSessions (stat + cached header read of the newest
222
+ // few) instead of reading and JSON-parsing every transcript in full:
223
+ // with ~25k transcripts / 6 GB on disk the old synchronous scan froze
224
+ // the whole event loop for about a minute per request.
225
+ const recent = await listAllSessions({ limit: 200 });
226
+ for (const s of recent) {
227
+ if (s.provider !== 'claude')
228
+ continue;
229
+ allSessions.push({
230
+ sessionId: s.sessionId,
231
+ // Prefer the cwd recorded in the transcript; the dir-name decode is lossy.
232
+ projectPath: s.projectPath || s.projectDir.replace(/^-/, '/').replace(/-/g, '/'),
233
+ lastModified: s.lastModified,
234
+ messageCount: Math.max(1, Math.round(s.sizeBytes / 500)),
235
+ firstMessage: s.firstPrompt ? s.firstPrompt.substring(0, 100) : undefined,
236
+ });
237
+ if (allSessions.length >= 20)
238
+ break;
271
239
  }
272
240
  }
273
241
  // Return top 20 sessions
@@ -113,9 +113,9 @@ export const CODEX_REASONING_EFFORTS = {
113
113
  };
114
114
  // Key order is the picker order: Astra → Sol → Luna (most capable first).
115
115
  export const CODEX_MODELS = {
116
- 'gpt-6-astra': {
117
- label: 'GPT-6 Astra',
118
- description: 'GPT-6 Astra — OpenAI\'s most capable model for complex, demanding work',
116
+ 'gpt-6.2-astra': {
117
+ label: 'GPT-6.2 Astra',
118
+ description: 'GPT-6.2 Astra — OpenAI\'s most capable model for complex, demanding work',
119
119
  icon: '✨',
120
120
  },
121
121
  'gpt-6.1-sol': {
@@ -135,6 +135,12 @@ export const CODEX_MODELS = {
135
135
  },
136
136
  // Superseded models: valid for existing agents, hidden from the new/edit
137
137
  // agent pickers.
138
+ 'gpt-6-astra': {
139
+ label: 'GPT-6 Astra',
140
+ description: 'Previous Astra generation (GPT-6.2 Astra preferred)',
141
+ icon: '✨',
142
+ deprecated: true,
143
+ },
138
144
  'gpt-6-sol': {
139
145
  label: 'GPT-6 Sol',
140
146
  description: 'Previous Sol generation (GPT-6.1 Sol preferred)',
@@ -31,9 +31,11 @@ export function outdatedClaudeModel(model) {
31
31
  return { newerModel: latest, newerLabel: CLAUDE_MODELS[latest].label };
32
32
  }
33
33
  // Superseded models whose successor is a newer release of the SAME line
34
- // (6 Sol → 6.1 Sol, 5.6 Terra → 6.1 Terra), still registered but hidden.
34
+ // (6 Sol → 6.1 Sol, 6 Astra → 6.2 Astra, 5.6 Terra → 6.1 Terra), still
35
+ // registered but hidden.
35
36
  const CODEX_LINE_SUCCESSORS = {
36
37
  'gpt-6-sol': 'gpt-6.1-sol',
38
+ 'gpt-6-astra': 'gpt-6.2-astra',
37
39
  'gpt-5.6-terra': 'gpt-6.1-terra',
38
40
  };
39
41
  /** Notice for a Codex model id (bare or `openai-codex/…`). */
@@ -916,3 +916,29 @@ function joinPosix(base, target) {
916
916
  }
917
917
  return `${absolute ? '/' : ''}${parts.join('/')}`;
918
918
  }
919
+ const SHELL_LAUNCHER_RE = /^(?:\/(?:usr\/)?(?:local\/)?bin\/)?(?:zsh|bash|sh|dash)$/;
920
+ const SHELL_COMMAND_FLAG_RE = /^-[a-z]*c[a-z]*$/;
921
+ /**
922
+ * The script inside a `<shell> -lc '<script>'` launch, with the shell's own
923
+ * quoting removed — what the agent actually ran. Codex reports every command
924
+ * wrapped this way (`/usr/bin/zsh -lc "pwd && rg -g '"'!.git'"'"`), and the
925
+ * `'"'…'"'` concatenations defeat regex unwrapping. Anything that is not
926
+ * exactly one such launch (extra arguments, pipelines around it, a dynamic
927
+ * script) comes back unchanged.
928
+ */
929
+ export function unwrapShellLaunch(command) {
930
+ if (!command || !/\b(?:zsh|bash|sh|dash)\b/.test(command.slice(0, 40)))
931
+ return command;
932
+ const commands = parseShellCommands(command);
933
+ if (commands.length !== 1)
934
+ return command;
935
+ const words = commands[0].words;
936
+ if (words.length !== 3)
937
+ return command;
938
+ const [shell, flag, script] = words;
939
+ if (shell.dynamic || !SHELL_LAUNCHER_RE.test(shell.value))
940
+ return command;
941
+ if (!SHELL_COMMAND_FLAG_RE.test(flag.value))
942
+ return command;
943
+ return script.value.trim() || command;
944
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tide-commander",
3
- "version": "1.224.0",
3
+ "version": "1.225.0",
4
4
  "description": "Visual multi-agent orchestrator and manager for Claude Code with 3D/2D interface",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +0,0 @@
1
- import{U as a,C as n}from"./mermaid.core-Bq0L11_-.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-Do7m7In-.js";import{_ as i}from"./mermaid.core-Bq0L11_-.js";import"./chunk-5VM5RSS4-wSG2aCSB.js";import"./chunk-XXDRQBXY-aWtL9GIN.js";import"./chunk-VR4S4FIN-C3sjuCSc.js";import"./chunk-32BRIVSS-K9CkGCF3.js";import"./main-sBSI_4k0.js";import"./vendor-react--Eh9ivFN.js";import"./vendor-three-GtkNAxzd.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-Do7m7In-.js";import{_ as i}from"./mermaid.core-Bq0L11_-.js";import"./chunk-5VM5RSS4-wSG2aCSB.js";import"./chunk-XXDRQBXY-aWtL9GIN.js";import"./chunk-VR4S4FIN-C3sjuCSc.js";import"./chunk-32BRIVSS-K9CkGCF3.js";import"./main-sBSI_4k0.js";import"./vendor-react--Eh9ivFN.js";import"./vendor-three-GtkNAxzd.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};