@volter/supercode-teams 0.3.194 → 0.3.195

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.3.194",
3
+ "version": "0.3.195",
4
4
  "type": "module",
5
5
  "description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
6
6
  "license": "MIT",
package/terminal-mail.mjs CHANGED
@@ -284,7 +284,8 @@ export class TerminalMailbox {
284
284
  let lost = true;
285
285
  for (let check = 0; lost && check < 2; check++) {
286
286
  const screen = await this.host.capture(this.session.id, { lines: 200, preserveEscapes: true });
287
- lost = composerText(batch.kind, screen) === '' && !/\besc to (?:interrupt|cancel)\b/iu.test(screen);
287
+ // Codex paints its hint as `\x1b[0;1mesc\x1b[0;2m to interrupt`: a running turn is read with the styling removed.
288
+ lost = composerText(batch.kind, screen) === '' && !/\besc to (?:interrupt|cancel)\b/iu.test(String(screen).replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, ''));
288
289
  if (lost && check === 0) await pause(200);
289
290
  }
290
291
  if (lost && !confirmed(batch)) {