claude-starter 1.4.0 → 1.4.1
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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) {
|