[claude] Context injection — pass conversation history to work model (#39) #78

Merged
claude merged 1 commits from claude/issue-39 into main 2026-03-23 01:51:23 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
43c948552a feat: inject conversation history into session work model
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
- Add session_messages table and migration for storing conversation turns
- Add getSessionHistory() helper to load recent history with token budget
- Pass conversation history to executeWork() and executeWorkStreaming()
- Persist user/assistant exchanges after completed requests
- Rejected/failed requests do not pollute history

Fixes #39

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 21:50:55 -04:00