File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ interface PromptInputProps {
6565 ref ?: ( el : HTMLDivElement ) => void
6666 newSessionWorktree ?: string
6767 onNewSessionWorktreeReset ?: ( ) => void
68+ onSubmit ?: ( ) => void
6869}
6970
7071const EXAMPLES = [
@@ -1110,6 +1111,8 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
11101111 }
11111112 if ( ! session ) return
11121113
1114+ props . onSubmit ?.( )
1115+
11131116 const model = {
11141117 modelID : currentModel . id ,
11151118 providerID : currentModel . provider . id ,
Original file line number Diff line number Diff line change @@ -909,6 +909,11 @@ export default function Page() {
909909 overflowAnchor : "dynamic" ,
910910 } )
911911
912+ const resumeScroll = ( ) => {
913+ setStore ( "messageId" , undefined )
914+ autoScroll . forceScrollToBottom ( )
915+ }
916+
912917 // When the user returns to the bottom, treat the active message as "latest".
913918 createEffect (
914919 on (
@@ -1535,6 +1540,7 @@ export default function Page() {
15351540 } }
15361541 newSessionWorktree = { newSessionWorktree ( ) }
15371542 onNewSessionWorktreeReset = { ( ) => setStore ( "newSessionWorktree" , "main" ) }
1543+ onSubmit = { resumeScroll }
15381544 />
15391545 </ Show >
15401546 </ div >
You can’t perform that action at this time.
0 commit comments