@rawwee/interactive-mcp 1.4.1 → 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.
@@ -132,9 +132,6 @@ const App = ({ options: appOptions, onExit }) => {
132
132
  onExit();
133
133
  });
134
134
  }, [onExit, outputFile]);
135
- useEffect(() => {
136
- console.clear();
137
- }, []);
138
135
  useEffect(() => {
139
136
  setFollowInput(false);
140
137
  scrollRef.current?.scrollTo?.({ x: 0, y: 0 });
@@ -208,6 +205,9 @@ async function startUi() {
208
205
  process.exit(1);
209
206
  return;
210
207
  }
208
+ // Clear before the renderer takes over so @opentui starts with a clean slate
209
+ // and its diff engine is in sync with what's on screen.
210
+ console.clear();
211
211
  const renderer = await createCliRenderer({
212
212
  exitOnCtrlC: false,
213
213
  });
@@ -104,9 +104,6 @@ const App = ({ sessionId, title, outputDir, searchRoot, timeoutSeconds, onCloseS
104
104
  setFollowInput(true);
105
105
  scrollRef.current?.scrollTo?.({ x: 0, y: Number.MAX_SAFE_INTEGER });
106
106
  }, []);
107
- useEffect(() => {
108
- console.clear();
109
- }, []);
110
107
  useEffect(() => {
111
108
  let mounted = true;
112
109
  void resolveSearchRoot(searchRoot, { argvEntry: process.argv[1] }).then((resolvedSearchRoot) => {
@@ -234,7 +231,6 @@ const App = ({ sessionId, title, outputDir, searchRoot, timeoutSeconds, onCloseS
234
231
  };
235
232
  }, [timeLeft, currentQuestionId]);
236
233
  const addNewQuestion = async (questionId, questionText, incomingOptions, incomingSearchRoot) => {
237
- console.clear();
238
234
  if (timerRef.current) {
239
235
  clearInterval(timerRef.current);
240
236
  timerRef.current = null;
@@ -289,6 +285,9 @@ const App = ({ sessionId, title, outputDir, searchRoot, timeoutSeconds, onCloseS
289
285
  ?.text || '', questionId: currentQuestionId, predefinedOptions: currentPredefinedOptions, searchRoot: currentSearchRoot, onSubmit: handleSubmit, onInputActivity: keepInputVisible }) }))] }) }), currentQuestionId && timeLeft !== null && (_jsx("box", { paddingLeft: 1, paddingRight: 1, paddingTop: 1, children: _jsx(PromptStatus, { value: percentage, timeLeftSeconds: timeLeft, critical: timeLeft <= 10 }) }))] }));
290
286
  };
291
287
  async function startUi() {
288
+ // Clear before the renderer takes over so @opentui starts with a clean slate
289
+ // and its diff engine is in sync with what's on screen.
290
+ console.clear();
292
291
  const renderer = await createCliRenderer({
293
292
  exitOnCtrlC: false,
294
293
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rawwee/interactive-mcp",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "bin": {