You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloneTypeSelection() in clone-handler.ts had an unconditional console.clear() call as its very first line:
asynccloneTypeSelection(): Promise<any>{console.clear();// ← wiped the entire terminal bufferreturnnewPromise(async(resolve,reject)=>{
...
awaitinquirer.prompt(cloneTypeSelection);// "Type of data to clone"});}
Execution sequence:
clone-handler.ts HandleExportCommand runs → export logs printed to console
clone-handler.ts executeDestination() → "Want to clone into a new stack?" prompt
clone-handler.ts createNewStack() → org, stack name prompts
clone-handler.ts CloneTypeSelectionCommand → cloneTypeSelection() called
clone-handler.ts console.clear() ← entire terminal buffer wiped here
clone-handler.ts inquirer.prompt(cloneType) → renders on blank terminal
The export phase completes and all its logs are visible — then console.clear() fires just before the final "Type of data" prompt, erasing everything. console.clear() emits \x1bc (full terminal reset), not just a line clear, so there is no way to scroll back.
Fix
Removed the console.clear() from cloneTypeSelection(). The inquirer list prompt renders correctly without it — there was no functional reason for the clear.
Two other console.clear() calls remain at lines 425 and 506 inside the Shift+Left (undo) keypress handlers in execute() and executeDestination(). These are conditional on a specific keypress and are tracked separately for a follow-up fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root Cause
cloneTypeSelection()inclone-handler.tshad an unconditionalconsole.clear()call as its very first line:Execution sequence:
The export phase completes and all its logs are visible — then
console.clear()fires just before the final "Type of data" prompt, erasing everything.console.clear()emits\x1bc(full terminal reset), not just a line clear, so there is no way to scroll back.Fix
Removed the
console.clear()fromcloneTypeSelection(). The inquirer list prompt renders correctly without it — there was no functional reason for the clear.src/core/util/clone-handler.tsasync cloneTypeSelection(): Promise<any> { - console.clear(); return new Promise(async (resolve, reject) => {What Is Not Changed
Two other
console.clear()calls remain at lines 425 and 506 inside the Shift+Left (undo) keypress handlers inexecute()andexecuteDestination(). These are conditional on a specific keypress and are tracked separately for a follow-up fix.