summaryrefslogtreecommitdiff
path: root/SESSION_STATE.md
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-04 11:12:37 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-03-04 11:12:37 -1000
commit4853a4a917bb7942776ffd8b3e003ee03fc49160 (patch)
tree6c1ba3ba7df13353caa73b96e9c7caa35f3269cf /SESSION_STATE.md
parentec7d895c00c571b37ad9255b99b2e1756776c9e1 (diff)
chore: move role definitions to ~/.claude/roles, trim CLAUDE.md and DESIGN.md
Role prompts extracted to ~/.claude/roles/ (project-agnostic). CLAUDE.md slimmed from 87→72 lines, references global methodology. DESIGN.md trimmed ~200 lines of duplicated workflow content. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'SESSION_STATE.md')
-rw-r--r--SESSION_STATE.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/SESSION_STATE.md b/SESSION_STATE.md
index ffd7719..08f6409 100644
--- a/SESSION_STATE.md
+++ b/SESSION_STATE.md
@@ -1,9 +1,16 @@
# Session State
## Current Focus
-Bug fixes: test coverage gaps + calendar cache layer
+Sync log + clear cache feedback
## Recently Completed
+- **Sync log + clear cache feedback** — migration `016_sync_log.sql`, store methods `AddSyncLogEntry`/`GetRecentSyncLog`, handler changes, template partial `sync-log.html`
+ - `HandleClearCache` now renders sync log HTML (replaces `hx-swap="none"`)
+ - `HandleSyncSources` adds log entry after sync
+ - `HandleSettingsPage` passes `SyncLog []store.SyncLogEntry` to template
+ - Tests: `TestStore_AddAndGetSyncLog`, `TestStore_GetRecentSyncLog_LimitsResults`, `TestHandleClearCache_AddsLogEntry`, `TestHandleClearCache_ReturnsHTMLSyncLog`, `TestHandleSettingsPage_IncludesSyncLog`, `TestHandleSyncSources_AddsLogEntry`
+
+
- **Bug 1: Todoist incremental sync** — added 5 tests exercising the incremental merge path (upsert, delete completed/deleted, sync token storage/reuse, forceRefresh). Code was already correct, just untested.
- Tests: `TestFetchTasks_IncrementalSync_UpsertsActiveTasks`, `TestFetchTasks_IncrementalSync_DeletesCompletedAndDeletedTasks`, `TestFetchTasks_IncrementalSync_StoresNewSyncToken`, `TestFetchTasks_IncrementalSync_UsesSavedSyncToken`, `TestFetchTasks_ForceRefresh_ClearsSyncToken`
- **Bug 2: Task completion response/headers** — added assertions for response body (`rendered:completed-atom`), Content-Type header, HX-Reswap/HX-Trigger headers, template data verification. Code was correct, assertions were missing.