Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/services/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@ export class Terminal {
try {
this.checkTerminal();
this.log(`Writing command: ${command}`);

// Ensure command ends with newline
if (!command.endsWith("\n")) {
command += "\n";
}

this.term?.write(command);
} catch (error) {
console.error("Failed to execute command:", error);
Expand Down Expand Up @@ -155,8 +149,7 @@ export class Terminal {
updateWorkDir(workDir: string): void {
try {
this.checkTerminal();
// Send cd command to change directory
this.createCommand(`cd "${workDir}"`);
this.createCommand(`cd "${workDir}"\n`);
} catch (error) {
console.error("Failed to update working directory:", error);
}
Expand Down