fix(cli): read and write the decision log on the CLI path

- shared create_run_state and record_decision for propagate() and the CLI #1332 #1347
This commit is contained in:
Yijia-Xiao
2026-09-14 23:12:17 +00:00
parent 2c1ba388d6
commit 4a9f196e92
4 changed files with 210 additions and 43 deletions

View File

@@ -903,6 +903,9 @@ class TestLegacyRemoval:
mock_graph._run_graph = functools.partial(
TradingAgentsGraph._run_graph, mock_graph
)
mock_graph.record_decision = functools.partial(
TradingAgentsGraph.record_decision, mock_graph
)
TradingAgentsGraph.propagate(mock_graph, "NVDA", "2026-01-10")
entries = mock_graph.memory_log.load_entries()
assert len(entries) == 1