hive-agent: let an agent compact from 40% context usage instead of 66%
This commit is contained in:
parent
c7580ac3dd
commit
183e55dd80
1 changed files with 20 additions and 4 deletions
|
|
@ -412,7 +412,7 @@ impl AgentServer {
|
|||
#[tool(
|
||||
description = "Compact the current session's context, mirroring the operator's \
|
||||
dashboard `/compact` button. Gated: only honoured when this agent's last \
|
||||
completed turn used more than 66% of the effective context window — below \
|
||||
completed turn used more than 40% of the effective context window — below \
|
||||
that the call is refused with an explanation and has no effect. On a pass, \
|
||||
queues compaction for the end of the current turn (same deferred mechanism \
|
||||
the dashboard button uses, so it never races a live claude process); the \
|
||||
|
|
|
|||
Loading…
Reference in a new issue