personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add /app/today redirect route to most recent journal day

Completes the partial M1 fix — /app/transcripts/ already redirects to
the most recent day with data, but /app/today was still a 404. Added
to the root blueprint since /app/today is a top-level convenience URL,
not scoped to the transcripts app prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+15 -1
+15 -1
convey/root.py
··· 6 6 from __future__ import annotations 7 7 8 8 import os 9 + from datetime import date 9 10 from typing import Any 10 11 11 12 from flask import ( ··· 18 19 url_for, 19 20 ) 20 21 22 + from think.cluster import cluster_segments 21 23 from think.facets import get_facets 22 - from think.utils import get_config 24 + from think.utils import day_dirs, get_config 23 25 24 26 25 27 def _get_password() -> str: ··· 110 112 os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 111 113 ) 112 114 return send_from_directory(project_root, "favicon.ico", mimetype="image/x-icon") 115 + 116 + 117 + @bp.route("/app/today") 118 + def app_today() -> Any: 119 + """Redirect /app/today to the most recent day with journal data.""" 120 + today = date.today().strftime("%Y%m%d") 121 + if cluster_segments(today): 122 + return redirect(url_for("app:transcripts.transcripts_day", day=today)) 123 + for day in sorted(day_dirs().keys(), reverse=True): 124 + if cluster_segments(day): 125 + return redirect(url_for("app:transcripts.transcripts_day", day=day)) 126 + return redirect(url_for("app:transcripts.transcripts_day", day=today)) 113 127 114 128 115 129 @bp.route("/")