codeep 1.0.110 → 1.0.111

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/dist/app.js +11 -1
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState, useEffect, useCallback } from 'react';
2
+ import React, { useState, useEffect, useCallback } from 'react';
3
3
  import { Box, Text, useApp, useInput, useStdout } from 'ink';
4
4
  import clipboardy from 'clipboardy';
5
5
  import { logger } from './utils/logger.js';
@@ -163,6 +163,16 @@ export const App = () => {
163
163
  return () => clearTimeout(timer);
164
164
  }
165
165
  }, [notification, notificationDuration]);
166
+ // Clear terminal when switching to fullscreen views (prevents ghost content from Static)
167
+ const prevScreenRef = React.useRef(screen);
168
+ useEffect(() => {
169
+ const fullscreenViews = ['help', 'status', 'settings', 'sessions', 'search', 'export'];
170
+ if (fullscreenViews.includes(screen) && prevScreenRef.current === 'chat') {
171
+ // Clear screen when entering fullscreen view from chat
172
+ stdout?.write('\x1b[2J\x1b[H');
173
+ }
174
+ prevScreenRef.current = screen;
175
+ }, [screen, stdout]);
166
176
  // Handle keyboard shortcuts
167
177
  useInput((input, key) => {
168
178
  // Ctrl+L to clear chat (F5 doesn't work reliably in all terminals)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.0.110",
3
+ "version": "1.0.111",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",