mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
core: add debug logging for session cancellation and message loop steps
This commit is contained in:
parent
9026705fdb
commit
b84672d767
1 changed files with 2 additions and 0 deletions
|
|
@ -266,6 +266,7 @@ export namespace SessionPrompt {
|
|||
}
|
||||
|
||||
export function cancel(sessionID: string) {
|
||||
log.info("cancel", { sessionID })
|
||||
const s = state()
|
||||
const match = s[sessionID]
|
||||
if (!match) return
|
||||
|
|
@ -294,6 +295,7 @@ export namespace SessionPrompt {
|
|||
|
||||
let step = 0
|
||||
while (true) {
|
||||
log.info("loop", { step })
|
||||
if (abort.aborted) break
|
||||
let msgs = await MessageV2.filterCompacted(MessageV2.stream(sessionID))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue