You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With auto-compaction on (the default), the context-pressure warning is suppressed (core/engine/compaction.rs:~150-172), so the model gets no notice before its memory is compacted.
The model never sees spend so far, cost, or the remaining session budget. A token budget exists only while a goal is active (engine.rs:~3705-3728).
Change
Extend<turn_meta> (engine.rs:~3850-3887) with context: <pct>% of <window> and spent: <cost> this session. When the person has set a session budget, also add budget: <remaining> of <total>. Use values the usage and cost ledger already computes. Omit cost when pricing is unknown; never guess it.
Optional session budget. Add a session_budget config key and a /budget command. On reaching it, stop the turn with a clear notice; never cut mid-tool silently.
Gap.
core/engine/compaction.rs:~150-172), so the model gets no notice before its memory is compacted.engine.rs:~3705-3728).Change
<turn_meta>(engine.rs:~3850-3887) withcontext: <pct>% of <window>andspent: <cost> this session. When the person has set a session budget, also addbudget: <remaining> of <total>. Use values the usage and cost ledger already computes. Omit cost when pricing is unknown; never guess it.session_budgetconfig key and a/budgetcommand. On reaching it, stop the turn with a clear notice; never cut mid-tool silently.Tests
turn_meta_includes_context_and_spendunknown_pricing_omits_costpre_compaction_notice_fires_once_with_auto_compact_onsession_budget_stops_turn_with_noticeSize: M.