Fix studio status to show full markdown-formatted summary

Changes:
- Fix JSON path for session logs: now reads from context_window.conversation_history
  (with fallback to messages for backwards compatibility)
- Remove 500-character truncation to show full summary
- Add termimad dependency for terminal markdown rendering
- Display summary with proper markdown formatting (headers, bold, code, lists)

The extract_session_summary() function was looking for messages at the wrong
JSON path. Session logs store conversation history at context_window.conversation_history,
not at the top-level messages key.
This commit is contained in:
Dhanji R. Prasanna
2026-01-12 10:13:58 +05:30
parent 6c17f269d7
commit 30bb63715e
3 changed files with 33 additions and 10 deletions

View File

@@ -16,3 +16,4 @@ serde = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true }
chrono = { version = "0.4", features = ["serde"] }
termimad = "0.31"