Repository navigation
Commit 73fc046
fix(log): route fork logger shim to file, not stdout/stderr
The legacy Log shim wrote INFO/DEBUG to process.stdout and WARN/ERROR to
process.stderr. In the TUI stdout IS the screen, so log lines from
local-provider-sync, openai-compatible discovery, and beads were painted
into the terminal — landing inside the chat input and making a fresh
launch look broken.
Write to opencode's log file (Global.Path.log/opencode.log) like the
Effect file logger, mirroring to stderr only when OPENCODE_PRINT_LOGS=1.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent 9d4ed82 commit 73fc046
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
51 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
52 | 72 | | |
53 | 73 | | |
54 | 74 | | |
| |||
0 commit comments