claude-starter 1.4.0 → 1.4.2
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.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -467,7 +467,7 @@ function getProjectColor(projectName, colorMap) {
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
function esc(text) {
|
|
470
|
-
return text.replace(
|
|
470
|
+
return text.replace(/[{}]/g, m => m === '{' ? '{open}' : '{close}');
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
// ─── CLI Mode (--list) ───────────────────────────────────────────────────────
|
|
@@ -770,7 +770,9 @@ function createApp() {
|
|
|
770
770
|
c += `\n {#bb9af7-fg}{bold}Conversation{/}\n`;
|
|
771
771
|
c += sep + '\n';
|
|
772
772
|
|
|
773
|
-
const
|
|
773
|
+
const detailHeight = detailPanel.height || screen.height || 24;
|
|
774
|
+
const previewLimit = Math.max(10, Math.floor(Math.max(0, detailHeight - 18) / 3));
|
|
775
|
+
const msgs = (session.userMessages || []).slice(0, previewLimit);
|
|
774
776
|
const assists = (session.assistantSnippets || []);
|
|
775
777
|
|
|
776
778
|
if (msgs.length === 0) {
|