@volter/supercode-terminal 0.2.51 → 0.2.52

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 +4 -3
  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]+ · (?:~(?:[\\/]|(?=\s|$))|[\\/]|[A-Z]:[\\/])[^\n]*$|.*← for agents\s*$|.*\bcontext(?:\s+\d+%)?\s+left\b)/iu;
1742
+ const footer = /^\s*(?:\? for shortcuts\b|⚠\s+\d+\s+warnings?\s+·\s+f2 to view\s*$|[^\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;
@@ -1748,8 +1748,9 @@ export function composerText(kind, screen) {
1748
1748
  // Claude encloses the editor in rules; Codex ends it at its shortcut/context footer.
1749
1749
  if (end === plain.length) return null;
1750
1750
  // Startup can draw a caret before loading finishes or a modal opens. A rule
1751
- // alone is not Codex's ready editor; require its footer at the live bottom.
1752
- if (kind === 'codex' && (plain.slice(end + 1).some((line) => line.trim()) ||
1751
+ // alone is not Codex's ready editor; require only recognized footer rows at
1752
+ // the live bottom (model/cwd and shortcuts can occupy separate rows).
1753
+ if (kind === 'codex' && (plain.slice(end + 1).some((line) => line.trim() && !footer.test(line)) ||
1753
1754
  /\bmodel:\s+loading\b/iu.test(plain.findLast((line) => /\bmodel:/iu.test(line)) ?? ''))) return null;
1754
1755
  if (kind === 'claude-code' && (row === 0 || !rule.test(plain[row - 1]))) return null;
1755
1756
  const first = plain[row].match(caret)[0].length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-terminal",
3
- "version": "0.2.51",
3
+ "version": "0.2.52",
4
4
  "type": "module",
5
5
  "description": "Optional leak-safe terminal and tmux host adapter for Volter Harness frontends",
6
6
  "exports": {