codeep 1.0.76 → 1.0.78

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 +9 -0
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -163,6 +163,13 @@ export const App = () => {
163
163
  return () => clearTimeout(timer);
164
164
  }
165
165
  }, [notification, notificationDuration]);
166
+ // Clear terminal when opening command-triggered modals (not session-picker or permission)
167
+ useEffect(() => {
168
+ const commandModals = ['help', 'status', 'sessions', 'sessions-delete', 'model', 'protocol', 'language', 'settings', 'provider', 'search', 'export', 'logout'];
169
+ if (commandModals.includes(screen)) {
170
+ stdout?.write('\x1b[2J\x1b[H');
171
+ }
172
+ }, [screen, stdout]);
166
173
  // Handle keyboard shortcuts
167
174
  useInput((input, key) => {
168
175
  // Ctrl+L to clear chat (F5 doesn't work reliably in all terminals)
@@ -172,6 +179,8 @@ export const App = () => {
172
179
  stdout?.write('\x1b[2J\x1b[H');
173
180
  setMessages([]);
174
181
  clearCodeBlocks();
182
+ setAgentResult(null);
183
+ setAgentActions([]);
175
184
  const newSessId = startNewSession();
176
185
  setSessionId(newSessId);
177
186
  setClearInputTrigger(prev => prev + 1); // Trigger input clear
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
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",