[kimi] Add /api/matrix/thoughts endpoint for recent thought stream (#677) #739

Merged
kimi merged 1 commits from kimi/issue-677 into main 2026-03-21 14:44:47 +00:00

1 Commits

Author SHA1 Message Date
kimi
2cfec1e01c feat: Add /api/matrix/thoughts endpoint for Matrix thought stream (#677)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
- Add GET /api/matrix/thoughts endpoint that returns recent thoughts
- Returns last 10 thoughts by default, with ?limit=N param (max 50)
- Each thought has: id, text (truncated to 500 chars), created_at, chain_id
- Reuses existing thinking_engine.get_recent_thoughts() logic
- Returns empty array if thinking engine is disabled or fails
- Add comprehensive test coverage

Fixes #677
2026-03-21 10:43:38 -04:00