@volter/supercode-terminal 0.2.49 → 0.2.50

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/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1739,7 +1739,7 @@ export function composerText(kind, screen) {
1739
1739
  const lines = String(screen ?? '').split('\n').map(styledCells);
1740
1740
  const plain = lines.map((cells) => cells.map((cell) => cell.char).join(''));
1741
1741
  const rule = /^\s*[─━]{4,}\s*$/u;
1742
- const footer = /^\s*(?:\? for shortcuts\b|[^\n]+ · (?:~[\\/]|[\\/]|[A-Z]:[\\/])[^\n]+$|.*← for agents\s*$|.*\bcontext(?:\s+\d+%)?\s+left\b)/iu;
1742
+ const footer = /^\s*(?:\? for shortcuts\b|[^\n]+ · (?:~(?:[\\/]|(?=\s|$))|[\\/]|[A-Z]:[\\/])[^\n]*$|.*← for agents\s*$|.*\bcontext(?:\s+\d+%)?\s+left\b)/iu;
1743
1743
  const caret = kind === 'codex' ? /^\s*›(?:\s|$)/u : /^\s*[❯>](?:\s|$)/u;
1744
1744
  for (let row = plain.length - 1; row >= 0; row -= 1) {
1745
1745
  if (!caret.test(plain[row])) continue;
@@ -1750,7 +1750,7 @@ export function composerText(kind, screen) {
1750
1750
  // Startup can draw a caret before loading finishes or a modal opens. A rule
1751
1751
  // alone is not Codex's ready editor; require its footer at the live bottom.
1752
1752
  if (kind === 'codex' && (plain.slice(end + 1).some((line) => line.trim()) ||
1753
- plain.some((line) => /\bmodel:\s+loading\b/iu.test(line)))) return null;
1753
+ /\bmodel:\s+loading\b/iu.test(plain.findLast((line) => /\bmodel:/iu.test(line)) ?? ''))) return null;
1754
1754
  if (kind === 'claude-code' && (row === 0 || !rule.test(plain[row - 1]))) return null;
1755
1755
  const first = plain[row].match(caret)[0].length;
1756
1756
  const value = lines.slice(row, end).map((cells, index) => cells
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-terminal",
3
- "version": "0.2.49",
3
+ "version": "0.2.50",
4
4
  "type": "module",
5
5
  "description": "Optional leak-safe terminal and tmux host adapter for Volter Harness frontends",
6
6
  "exports": {