ci/lint: ruff format todo stack and related CLI/agent files

This commit is contained in:
2026-07-18 13:22:42 +08:00
parent 7f49c47105
commit 39f9a7f636
5 changed files with 9 additions and 28 deletions
+2 -7
View File
@@ -191,12 +191,7 @@ async def test_loop_injects_todo_review_when_untouched() -> None:
async for _event in agent.run("do stuff"):
pass
assert client.calls >= 2
assert any(
isinstance(m, DeveloperChatMessage) and "Todo stack review" in m.content
for m in agent.messages
)
assert not any(
isinstance(m, UserChatMessage) and "Todo stack review" in m.content for m in agent.messages
)
assert any(isinstance(m, DeveloperChatMessage) and "Todo stack review" in m.content for m in agent.messages)
assert not any(isinstance(m, UserChatMessage) and "Todo stack review" in m.content for m in agent.messages)
finally:
set_todo_stack(None)