# Session State ## Current Focus Infrastructure & documentation improvements ## Recently Completed - Build version footer with ldflags injection (`deploy.sh`, `index.html`) - `assertTemplateContains` test helper, refactored existing template tests - `scripts/logs` for fetching production journalctl - Fix passkey registration: hide UI when WebAuthn not configured (WebAuthnEnabled flag) - Added no-cache header tests for #66 ## Completed Bugs (All Verified) - **#74**: Feature toggles — tests: `TestHandleToggleFeature`, `TestHandleCreateFeature`, `TestHandleDeleteFeature`; docs: DESIGN.md §4.3 - **#56**: Box contents overflow — CSS-only fix, documented in DESIGN.md - **#65**: Google Tasks — timeline tests cover integration; API client lacks dedicated unit tests - **#66**: No-cache headers — tests: `TestHTMLResponse_SetsNoCacheHeaders`, `TestJSONResponse_SetsNoCacheHeaders` - **#67**: Z-index — CSS-only fix, documented in DESIGN.md §z-index hierarchy - **#68**: Track completion — tests: `TestHandleCompleteAtom_Todoist`, `TestHandleCompleteAtom_Trello` - **#69**: Timeline calendar — tests: `TestCalcCalendarBounds`, `TestBuildTimeline_IncludesOverdueItems`; docs: DESIGN.md §Timeline View - **#70**: Clear inputs — tests: `TestShoppingQuickAdd_Success`; docs: DESIGN.md §Quick Add UX - **#71**: Shopping checkmarks — tests: `TestShoppingModeItemsTemplateFiltersChecked` - **#72**: Inline add per store — tests: `TestShoppingQuickAdd_ShoppingModeReturnsStoreItems` - **#73**: Store grouping — partial tests, partial docs ## Agent Context API - Status: [REVIEW_READY] Phase 1 Complete - Tests: `internal/handlers/agent_test.go` (comprehensive) - Docs: ADR-005, DESIGN.md §Agent Context API - Phase 2 (Write Operations) and Phase 3 (Create + Management) pending ## Known Gaps - Google Tasks/Calendar API clients lack dedicated unit tests (integration tested via timeline) - WebAuthn passkeys require `WEBAUTHN_RP_ID` and `WEBAUTHN_ORIGIN` env vars in production ## Remaining Items (Feature Requests) - #12: Research task durations - #28: Bugs as first-class atoms - #30: Consistent background opacity - #31: PlanToEat ingredients - #33-38: Shopping/timeline features ## Next Steps 1. Set `WEBAUTHN_RP_ID` and `WEBAUTHN_ORIGIN` in production to enable passkeys 2. **Phase 2**: Agent write operations (complete, uncomplete, update due date) 3. **Phase 3**: Create task/shopping item, agent management UI