mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-15 14:22:43 +00:00
test(codex): cover usage-less compaction response
This commit is contained in:
parent
83000c7295
commit
b8d467bad9
1 changed files with 4 additions and 2 deletions
|
|
@ -157,8 +157,10 @@ class TestRunConversationCodexPath:
|
|||
|
||||
assert result["completed"] is True
|
||||
assert agent.context_compressor.compression_count == 1
|
||||
assert agent.context_compressor.last_prompt_tokens == -1
|
||||
assert agent.context_compressor.awaiting_real_usage_after_compression is True
|
||||
# The app-server omitted usage, so the runtime consumes the pending
|
||||
# post-compaction verdict instead of deferring preflight indefinitely.
|
||||
assert agent.context_compressor.last_prompt_tokens == 0
|
||||
assert agent.context_compressor.awaiting_real_usage_after_compression is False
|
||||
assert events == [
|
||||
(
|
||||
"session:compress",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue