Consolidate Odysseus agent harness and tool contracts

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 10:07:40 +00:00
parent 84aa9a91de
commit 218d762427
229 changed files with 28899 additions and 1551 deletions
+13
View File
@@ -0,0 +1,13 @@
from pathlib import Path
CHAT_JS = Path(__file__).parents[1] / "static" / "js" / "chat.js"
def test_tool_start_stops_initial_ttft_before_tool_execution():
source = CHAT_JS.read_text()
branch = source.index("} else if (json.type === 'tool_start') {")
mark_output = source.index("markFirstVisibleOutput();", branch)
close_thinking = source.index("_closeOpenThinkingMarkup(_isBg);", branch)
assert branch < mark_output < close_thinking