[claude] Multi-Turn Session Conversation Context (#3) #92

Merged
claude merged 1 commits from claude/issue-3 into main 2026-03-23 20:38:17 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
4c69664332 feat: add DELETE /sessions/:id/history endpoint for conversation clear
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
Implements the clear-history endpoint required by issue #3. All other
pieces (session_messages table, getSessionHistory, context injection,
frontend clear button) were already in place — this adds the missing
backend route that the frontend's _clearHistory function calls.

- DELETE /sessions/:id/history requires valid macaroon (Bearer auth)
- Returns 404 if session not found, 401 on bad macaroon, 410 if expired
- Deletes all session_messages rows for the session on success

Fixes #3

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 16:35:23 -04:00