@volter/supercode-terminal 0.2.69 → 0.2.70
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/index.mjs +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1908,7 +1908,11 @@ export function composerText(kind, screen) {
|
|
|
1908
1908
|
// the live bottom (model/cwd and shortcuts can occupy separate rows).
|
|
1909
1909
|
if (kind === 'codex' && (plain.slice(end + 1).some((line) => line.trim() && !footer.test(line)) ||
|
|
1910
1910
|
/\bmodel:\s+loading\b/iu.test(plain.findLast((line) => /\bmodel:/iu.test(line)) ?? ''))) return null;
|
|
1911
|
-
if (kind === 'claude-code' && (row === 0 || !rule.test(plain[row - 1])
|
|
1911
|
+
if (kind === 'claude-code' && (row === 0 || !rule.test(plain[row - 1]) ||
|
|
1912
|
+
// Prompt-history search keeps the editor's caret and enclosing rules,
|
|
1913
|
+
// but its input is a search query. Its live footer can wrap on a narrow
|
|
1914
|
+
// pane; inspect only rows below this editor, never transcript text.
|
|
1915
|
+
/(?:^|\n)\s*search\s+prompts\s*:/iu.test(plain.slice(end + 1).join('\n')))) return null;
|
|
1912
1916
|
const first = plain[row].match(caret)[0].length;
|
|
1913
1917
|
const value = lines.slice(row, end).map((cells, index) => cells
|
|
1914
1918
|
.slice(index === 0 || /^\s*$/u.test(plain[row + index].slice(0, first)) ? first : 0).filter((cell) => !cell.placeholder)
|