mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 06:32:17 +00:00
When an agent had a context.md file updated externally (e.g. a cron job refreshing live market data), the updated content never reached the LLM during an active session. The file was effectively cached for the lifetime of the conversation. The runtime now reads context.md from the agent workspace once per turn, right before the system prompt is built, and injects it as a dedicated 'Live Context' section. Agents that still want the old cache-at-start behaviour can opt back in with 'cache_context = true' on the manifest. - new openfang-runtime::agent_context module with a small per-path cache - if a re-read fails after a previous success, fall back to the cached content with a warning instead of dropping context mid-conversation - new PromptContext.context_md field wired up in both kernel streaming and non-streaming paths - one small disk read per agent turn (not per streaming token); file size capped at 32 KB like the other identity files Made-with: Cursor