refactor(agent): unify runner request fitting (#5612)

* refactor(agent): unify runner request fitting

* fix(agent): fit every runner model request

* fix(agent): count resumed state during request fitting

* refactor(agent): consolidate request fitting state
This commit is contained in:
chengyongru
2026-08-31 18:08:21 +08:00
committed by GitHub
parent 6d6d58d329
commit e111b83af6
9 changed files with 888 additions and 491 deletions
+3 -3
View File
@@ -426,7 +426,7 @@ class TestEphemeralDirect:
bus=bus,
provider=provider,
workspace=tmp_path,
context_window_tokens=8000,
context_window_tokens=32_000,
)
return loop, store
@@ -606,7 +606,7 @@ class TestEphemeralDirect:
bus=MessageBus(),
provider=provider,
workspace=tmp_path,
context_window_tokens=8000,
context_window_tokens=32_000,
)
await loop.process_direct(
@@ -666,7 +666,7 @@ class TestEphemeralHooks:
bus=bus,
provider=provider,
workspace=tmp_path,
context_window_tokens=8000,
context_window_tokens=32_000,
hooks=[spy],
)