fix: submit project actions with Enter input (#625)
This commit is contained in:
@@ -499,7 +499,7 @@ export const ProjectActionsButton = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const normalizedCommand = stripControlChars(action.command.trim().replace(/\r\n|\r/g, '\n'));
|
const normalizedCommand = stripControlChars(action.command.trim().replace(/\r\n|\r/g, '\n'));
|
||||||
await terminal.sendInput(activeSessionId, `${normalizedCommand}\n\u0004`);
|
await terminal.sendInput(activeSessionId, `${normalizedCommand}\r`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setRunningByKey((prev) => {
|
setRunningByKey((prev) => {
|
||||||
const next = { ...prev };
|
const next = { ...prev };
|
||||||
|
|||||||
Reference in New Issue
Block a user