File tree Expand file tree Collapse file tree
packages/app/src/components/prompt-input Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,22 +73,23 @@ export function createPromptSubmit(input: PromptSubmitInput) {
7373 const abort = async ( ) => {
7474 const sessionID = params . id
7575 if ( ! sessionID ) return Promise . resolve ( )
76+
77+ globalSync . todo . set ( sessionID , [ ] )
78+ const [ , setStore ] = globalSync . child ( sdk . directory )
79+ setStore ( "todo" , sessionID , [ ] )
80+
7681 const queued = pending . get ( sessionID )
7782 if ( queued ) {
7883 queued . abort . abort ( )
7984 queued . cleanup ( )
8085 pending . delete ( sessionID )
81- globalSync . todo . set ( sessionID , undefined )
8286 return Promise . resolve ( )
8387 }
8488 return sdk . client . session
8589 . abort ( {
8690 sessionID,
8791 } )
8892 . catch ( ( ) => { } )
89- . finally ( ( ) => {
90- globalSync . todo . set ( sessionID , undefined )
91- } )
9293 }
9394
9495 const restoreCommentItems = ( items : CommentItem [ ] ) => {
You can’t perform that action at this time.
0 commit comments