Skip to content

Commit 7998d7b

Browse files
committed
fix: fix automatically load a task
1 parent 56e298d commit 7998d7b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cli/src/state/hooks/useTerminal.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ export function useTerminal(): void {
2020

2121
// Clear terminal when reset counter changes
2222
useEffect(() => {
23-
if (refreshTerminalCounter !== 0) {
24-
clearTerminal()
25-
}
23+
clearTerminal()
2624
}, [refreshTerminalCounter, clearTerminal])
2725

2826
// Resize effect

cli/src/ui/utils/welcomeMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function createWelcomeMessage(options?: WelcomeMessageOptions): CliMessag
4949
id,
5050
type: "welcome",
5151
content: "", // Content is rendered by WelcomeMessageContent component
52-
ts: timestamp,
52+
ts: 0, // Welcome message should show at the top
5353
metadata: {
5454
welcomeOptions: options,
5555
},

0 commit comments

Comments
 (0)