Spaces:
Sleeping
Sleeping
Commit History
-
fix: resolve code review findings — AI context bugs, buffer consistency, rate limiting
elvigar +1: Claude Sonnet 5Fixes from docs/code_review.md: - AdviserChat sent stale budget context after the first message because useChat() only builds its transport once; read context from a ref inside prepareSendMessagesRequest instead (§1.1). - /api/chat crashed for every message when the user picked a custom currency, since it re-derived formatting via Intl.NumberFormat(rawCurrencyCode); now formats via the client-supplied currencySymbol like the other two AI surfaces already did (§1.2). - The reserved savings buffer was silently dropped from the PDF export, AI insights, and adviser chat, producing a different "unallocated" figure than the on-screen summary (§1.3). - Over-funded goals produced a negative "required monthly contribution" in the insights prompt (§1.4). - A goal's currentProgress of exactly 0 was dropped from the chat context by a truthy check (§1.5). Root cause: the same unallocated/goal-contribution/money-formatting logic was reimplemented slightly differently across index…b58a128 -
chore: initial commit of existing project state
elvigar +1: Claude Sonnet 5Baseline snapshot of the Budget Blueprint app before the code-review fix-up work (see docs/code_review.md). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>d9f6284