fix(tokens): warm fallback tokenizer in background (#5861)
* fix(tokens): keep fallback token estimation offline * fix(tokens): warm fallback tokenizer in background * test(tokens): isolate agent fixtures from tokenizer readiness * test(tokens): keep Codex pressure fixtures within byte budget * docs: remove manual wrapping from troubleshooting prose
This commit is contained in:
1 parent
e0b8efa0be
commit
4a7ad00e4f
16 files changed
+378
-101
No files matched your search
@@ -136,6 +136,7 @@ class TestTurnTranscriptSummary:
|
||||
runtime,
|
||||
summary,
|
||||
):
|
||||
runtime = replace(runtime, context_window_tokens=4096)
|
||||
accepted = [
|
||||
{"role": "system", "content": "stable system"},
|
||||
{"role": "user", "content": "accepted history"},
|
||||
@@ -401,7 +402,7 @@ class TestConsolidatorSummarize:
|
||||
mock_provider,
|
||||
runtime,
|
||||
):
|
||||
runtime = replace(runtime, generation=GenerationSettings(max_tokens=96))
|
||||
runtime = replace(runtime, generation=GenerationSettings(max_tokens=256))
|
||||
mock_provider.chat_stream_with_retry.side_effect = RuntimeError("API error")
|
||||
|
||||
result = await _archive(
|
||||
@@ -910,6 +911,7 @@ class TestCompactIdleSession:
|
||||
store,
|
||||
runtime,
|
||||
):
|
||||
runtime = replace(runtime, generation=GenerationSettings(max_tokens=256))
|
||||
mock_provider.chat_stream_with_retry.side_effect = [
|
||||
LLMResponse(content="Earlier durable checkpoint.", finish_reason="stop"),
|
||||
RuntimeError("LLM unavailable"),
|
||||
|
||||
Reference in new issue
Block a user