From ec7d895c00c571b37ad9255b99b2e1756776c9e1 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 17 Feb 2026 14:43:42 -1000 Subject: Add calendar cache layer, incremental sync tests, completion assertions - Google Calendar events now cached via CacheFetcher pattern with stale-cache fallback on API errors (new migration 015, store methods, fetchCalendarEvents handler, BuildTimeline reads from store) - Todoist incremental sync path covered by 5 new tests - Task completion tests assert response body, headers, and template data Co-Authored-By: Claude Opus 4.6 --- internal/handlers/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/handlers/agent.go') diff --git a/internal/handlers/agent.go b/internal/handlers/agent.go index 15715bc..b285520 100644 --- a/internal/handlers/agent.go +++ b/internal/handlers/agent.go @@ -322,7 +322,7 @@ func (h *Handler) HandleAgentContext(w http.ResponseWriter, r *http.Request) { // buildAgentContext builds the context timeline by reusing BuildTimeline func (h *Handler) buildAgentContext(ctx context.Context, start, end time.Time) []agentContextItem { // Reuse the main BuildTimeline function (excludes live API calls for Google services) - timelineItems, err := BuildTimeline(ctx, h.store, nil, nil, start, end) + timelineItems, err := BuildTimeline(ctx, h.store, nil, start, end) if err != nil { return nil } -- cgit v1.2.3