mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
f0cbf8c2ff
* feat(core): soft max-cost nudge state machine
Surface-agnostic, dependency-free MaxCostNudge: aggregates per-assistant
message cost into a session total (session.cost is written via direct SQL
and never emits session.updated), and decides when to fire a non-blocking
"keep going?" alert once a global limit is crossed.
check() alerts once per run; resolve("continue") suppresses re-alerts for
that limit; rearm() re-arms on a new run; onSessionDeleted() clears state.
Consumers own the limit (set via setLimit) and the UI/abort.
* feat(core): extend max cost nudge state
* fix(core): clear stale message cost when value becomes non-finite
* test(core): add missing cost aggregation and session isolation tests