debug: add flush=True to print statements

This commit is contained in:
opencode committed 2026-03-23 18:32:40 +01:00
1 parent a0ce57132d
commit d16102587d
1 file changed
+2 -2
+2 -2
View File
@@ -1136,9 +1136,9 @@ def main():
# Otherwise, treat it as a chat message
try:
print("MAIN: before invoke")
print("MAIN: before invoke", flush=True)
result = agent.invoke({"messages": [HumanMessage(content=user_input)]})
print(f"MAIN: after invoke, result type={type(result)}")
print(f"MAIN: after invoke, result type={type(result)}", flush=True)
# Extract the AI's response (works for both simple and tool agent)
print(f"MAIN: result keys={result.keys() if hasattr(result, 'keys') else 'NO KEYS'}")