File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,8 @@ async function getUserPrompt() {
435435}
436436
437437function subscribeSessionEvents ( ) {
438+ console . log ( "Subscribing to session events..." )
439+
438440 const TOOL : Record < string , [ string , string ] > = {
439441 todowrite : [ "Todo" , "\x1b[33m\x1b[1m" ] ,
440442 todoread : [ "Todo" , "\x1b[33m\x1b[1m" ] ,
@@ -454,8 +456,11 @@ function subscribeSessionEvents() {
454456
455457 let text = ""
456458 ; ( async ( ) => {
459+ // TODO
460+ console . log ( "Subscribing to session events: fetching..." )
457461 const response = await fetch ( `${ server . url } /event` )
458462 if ( ! response . body ) throw new Error ( "No response body" )
463+ console . log ( "Subscribing to session events: fetched" )
459464
460465 const reader = response . body . getReader ( )
461466 const decoder = new TextDecoder ( )
You can’t perform that action at this time.
0 commit comments