Files
DeepTutor/deeptutor/api/routers/learning_journal.py
Bingxi Zhao (Frank) 64bc0d8e7c feat(learning): expose a durable workspace journal overview (#1407)
Adapt the journal foundation from PR #1226 and add a read-only mission, handoff and confirmed-record panel. Share its snapshot with turn injection, preserve corrupt files, and serialize worker writes.

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
2026-10-08 03:11:15 +08:00

19 lines
529 B
Python

"""Read-only view of the workspace's conversational learning journal."""
from fastapi import APIRouter, HTTPException
from deeptutor.services.learning_journal import get_learning_journal_store
router = APIRouter()
@router.get("")
def overview():
try:
return get_learning_journal_store().overview()
except (OSError, ValueError) as exc:
raise HTTPException(
status_code=409,
detail="Learning journal could not be read. Its original file has been preserved.",
) from exc