Skip to content

v1.2.7

Choose a tag to compare

@chtugha chtugha released this 15 Sep 17:45
· 25 commits to main since this release

What's Fixed

Prefix bundle not delivered to LLM after successful Generate

Even after the Generate button succeeded (fixed in v1.2.5), the LLM continued to see the fallback text:

The prefix currently contains nothing yet … "Bundle not yet compiled — run Settings → Prefix Cache → Generate"

Root cause: Two project_id fallback strings were mismatched.

  • regenerate_prefix writes the bundle with project_id = "default" (the fallback used everywhere in the WebUI layer when caller.project_id is None).
  • ThreadBackedLoopContextPort::load_loop_context (Kohai) and the Sempai path in loop_driver_host were using "_default" as the fallback when run_context.scope.project_id is None.

The WHERE project_id = $4 clause in get_system_bundle never matched, so the stored bundle was never returned — only the minimal fallback string.

Fix: Changed both .unwrap_or("_default") occurrences to .unwrap_or("default") in:

  • crates/brassclaw_loop_support/src/lib.rs (Kohai context load)
  • crates/brassclaw_reborn/src/loop_driver_host.rs (Sempai prompt build)

Full Changelog: v1.2.6...v1.2.7