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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. 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 msgs = (session.userMessages || []).slice(0, 10);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-starter",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A beautiful terminal UI for managing Claude Code sessions — start new or resume past conversations",
5
5
  "main": "index.js",
6
6
  "bin": {