fix scoring: HTTP error checking, context refresh, chunk logging

Check HTTP status from logprobs API (was silently ignoring 500s).
Call publish_context_state() after storing scores so F10 screen
updates. Add chunk size logging for OOM debugging.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-02 22:47:44 -04:00
parent 29b3aeca57
commit 78abf90461
3 changed files with 28 additions and 5 deletions

View file

@ -882,7 +882,7 @@ impl Agent {
}
/// Push the current context summary to the shared state for the TUI to read.
fn publish_context_state(&self) {
pub fn publish_context_state(&self) {
let summary = self.context_state_summary();
if let Ok(mut dbg) = std::fs::OpenOptions::new().create(true).append(true)
.open("/tmp/poc-journal-debug.log") {