Skip to content

Commit 26d2e23

Browse files
author
Frank
committed
sync
1 parent c5b3f54 commit 26d2e23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

github/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ async function getUserPrompt() {
435435
}
436436

437437
function 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()

0 commit comments

Comments
 (0)