mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-28 22:14:30 +00:00
* fix(server): load SOUL.md / USER.md context in streaming chat * refactor+test: extract _build_managed_system_prompt + cover #431 The streaming persona fix was inline and untestable without a live engine. Extract it into _build_managed_system_prompt (matching this module's extract-and-unit-test pattern for the streaming helpers) and add regression tests: - SOUL.md persona is injected into the streaming system prompt (#431), - the agent's own template is preserved, - output matches a directly-constructed SystemPromptBuilder (parity with the CLI/ask path — the whole point of the fix). Behavior unchanged from the original PR; this only makes it testable and locks in CLI parity. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Jon Saad-Falcon <41205309+jonsaadfalcon@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>