You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Implement background log collection to prevent logs from disrupting
TUI display
- Add `setBackgroundMode()` and `flushBackgroundLogs()` to buffer logs
during TUI operation
- Introduce `opt()` method to mark logs as important
(always print to stderr)
- Refactor log writing to support both file and stderr output with
importance levels
- Mark state disposal warnings as important to ensure visibility
- Mark session prompt errors as non-important to reduce noise
Copy file name to clipboardExpand all lines: packages/opencode/src/project/state.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,13 @@ export namespace State {
38
38
39
39
setTimeout(()=>{
40
40
if(!disposalFinished){
41
-
Log.Default.warn("waiting for state disposal to complete... (this is usually a saving operation or subprocess shutdown)")
41
+
Log.Default.opt({important: true}).warn("waiting for state disposal to complete... (this is usually a saving operation or subprocess shutdown)")
42
42
}
43
43
},1000).unref()
44
44
45
45
setTimeout(()=>{
46
46
if(!disposalFinished){
47
-
Log.Default.warn("state disposal is taking an unusually long time - if it does not complete in a reasonable time, please report this as a bug")
47
+
Log.Default.opt({important: true}).warn("state disposal is taking an unusually long time - if it does not complete in a reasonable time, please report this as a bug")
0 commit comments