Commit 45d3b21
fix: use consistent encoding for governance debug log seek
debug_log_size(mode="rb") returns a byte offset, but the file is opened
in text mode with encoding="utf-8" — seeking to a byte offset in a text
stream is not valid (and on logs containing multi-byte UTF-8 it can
land mid-character or at a wrong position). Match the encoding to the
text-mode read so the seek position is computed in the same units.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 67683f3 commit 45d3b21
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments