We've moved! Update your bookmarks to munshi.atyb.dev

Learn more

New Release - Budgets are now available!

View changelog

Changelog

All notable changes to Munshi will be documented in this file.

1.5.1 - 2026-10-25

Fixes

  • +Sign-in was broken in production. The API compressed responses itself (hono/compress plus the oRPC compression plugin) while Cloudflare compressed them again at the edge. Clients received two gzip layers behind a single Content-Encoding header, so JSON.parse failed and better-auth handed back the raw bytes as a string. That string is truthy, so /login redirected to /dashboard and the layout crashed on session.user.id with "Authentication error". Origin compression is gone; the edge already does it outside the Worker's CPU budget.
  • +Malformed sessions are rejected instead of trusted. authMiddleware now checks for user.id and session.id before treating a response as a session, and does not cache an unreadable payload. A transient API failure sends the visitor to /login instead of an error card.
  • +Web type-checking and builds run on every pull request. apps/web had no check-types script, so the package was skipped by turbo check-types, and the only full CI run happened on release tags. A new ci.yml workflow runs lint, format, type-check and build before merge. The 35 errors this surfaced are fixed.
  • +Dashboard date defaults are computed per request. They were module-level constants frozen at isolate start, so a warm Worker kept showing the range from whenever it booted.
  • +Releases carry the changelog. The release workflow now fails when the tag has no CHANGELOG.md section and uses that section as the GitHub release body. Before this, v1.5.0 was tagged while the changelog still ended at 1.4.1.

1.5.0 - 2026-10-25

Improvements

  • +Session lookups are cached per isolate. beforeLoad runs on every navigation, search change and intent preload; each run used to make a full cross-origin GET /api/auth/get-session. Results are cached for 30 seconds keyed by the session-token cookie, and concurrent lookups share one request.
  • +Data grid migrated to TanStack Table v9. The grid now registers its row models and filter/sort/aggregation registries through tableFeatures (dataGridFeatures) and the useTable API. Column headers, filters, visibility, pagination, virtualised rows and drag-and-drop rows were updated to the v9 instance shape.

Dependency Updates

  • +React and React DOM 19.3.1, Hono 4.13.13, AI SDK 7.0.150, PostHog 1.438.19 / 5.57.0 / 8.16.1, workers-types 5.20261023.1, dotenv 18.0.9, lucide-react 1.61.0.
  • +@tanstack/react-table v8 → v9.

Housekeeping

  • +Cleared the CI type-check and lint failures and aligned the pinned pnpm version with packageManager.
  • +Removed empty source files and tidied imports across packages.

1.4.1 - 2026-09-21

New Features

  • +PostHog observability and error tracking across the server and the browser, replacing Sentry. Request, procedure, agent-turn, attachment, email-pipeline and billing events on the server; page views, mutation outcomes and uncaught errors in the web app. Everything is redacted before it leaves the Worker. A new @munshi/observability package owns the shared setup.
  • +Tracing actually exports now. @microlabs/otel-cf-workers called scheduler.wait(1) inside a package where scheduler is not declared, and its own flush() swallowed the rejection, so no span had ever reached a backend. Replaced with a BasicTracerProvider and a PostHog span processor; AI SDK spans carry the user and session id, with prompts left out.
  • +Email expense ingestion (documented in 1.3.0): forwarding address, verified senders, Cloudflare Email Routing handler, read-only mailbox UI, and a dev ingest harness.

Fixes

  • +Build server bundles (build:all) in predeploy so the email worker entrypoint exists before alchemy deploy.
  • +Patch alchemy@0.94.0 to adopt the existing R2 bucket when Cloudflare answers 409 with a non-JSON body.
  • +Run CI and engines on Node 26.
  • +WhatsApp attachments: persist the R2 key on chat_attachment instead of rebuilding it from the thread id, allow several attachments per message, keep the full IANA media type for the model, and scope quoted-message lookup to the sender.
  • +Expense reads: add a partial (user_id, occurred_at DESC) index, drop four low-cardinality indexes, make the time-series range sargable, batch dashboard/transaction/ledger reads into one Neon round trip, and collapse three divergent budget-spent implementations into one.
  • +Remove the unreachable cursor-based transactions procedure that was shadowed by the offset-based one.

1.4.0 - 2026-09-21

New Features

  • +AI extracted into @munshi/ai: all model wiring, prompts, and agent tools now live in a single package. Data tools are derived from ORPC procedures via createTool (single source of truth for validation, auth, and logic), with the agent's session context injected per request.
  • +oRPC v1 → v2: all @orpc/* packages on 2.0.0-beta.37; RPC link split into origin + path, OpenAPI reference plugin migrated.

Dependency Updates

  • +AI SDK v6 → v7, @ai-sdk/google/@ai-sdk/groq v3 → v4, workers-ai-provider v3 → v4, zod → 4.6.5.
  • +Dodo Payments types: paused/past_due subscription statuses mapped onto the local enum.
  • +@hugeicons/core-free-icons pinned to 4.1.4 (4.3.4 shipped a broken dist).

1.3.0 - 2026-07-19

New Features

  • +Email expense ingestion: Forward invoices and receipts to a personal @no-reply.email.munshi.atyb.dev address and let Munshi extract expenses automatically. (See 1.2.3 notes for the full breakdown — released as a comprehensive feature set.)

1.2.3 - 2026-07-19

New Features

  • +Email expense ingestion: Forward invoices and receipts to a personal @no-reply.email.munshi.atyb.dev address and let Munshi extract expenses automatically.
    • +Claim a username to get a forwarding address; add and verify trusted senders (rate-limited resend, confirm-on-remove). Pro-gated.
    • +Cloudflare Email Routing delivers to the server Worker's email handler, which gatekeeps (recipient, plan, verified sender, dedupe) before any agent call, stores raw mail + PDF attachments, and delegates extraction to the agent in silent mode, linking the resulting expense. Never replies.
    • +Agent gains silent/email mode with vendor→category mapping and invoice-date preference; shared isPro/requirePro plan guard.
    • +Read-only mailbox UI: inbox list + detail (sanitized HTML, reject reason, linked expense, downloadable attachments via signed URLs).
    • +Server-side verification flow with redirect_url return after login.
    • +Dev harness: POST /dev/ingest-email mirrors the worker path locally (disabled in production).

1.2.2 - 2026-07-18

Bug Fixes

  • +Auth: Fixed redirect to /login on page reload for authenticated pages. Re-enabled SSR auth check using getUser() server function with POST method to avoid Cloudflare caching. (#6, #7)

1.2.1 - 2026-07-18

Bug Fixes

  • +WhatsApp bot: Fixed AI model timeout causing bot to show ⏳ with no response. Added 20s abort timeout to prevent Cloudflare Worker waitUntil limit.
  • +Dashboard: Fixed 500 crash from nested SQL templates in time-series aggregation. Added error boundaries and graceful degradation for all dashboard components.
  • +Auth: Fixed redirect loop after dashboard errors — layout errors show AuthError component instead of forcing login redirect.
  • +Budgets: Budget queries now degrade gracefully when table isn't migrated yet.
  • +CI: Automatic database migration before deployment via predeploy script.

1.2.0 - 2026-07-17

Improvements

Domain Migration

We've moved from munshi.atyb.me to munshi.atyb.dev for better branding and consistency.

What's Changed

  • +Updated all URLs to use the new .dev domain
  • +Automatic redirects from old .me domain
  • +Updated documentation and links

1.1.0 - 2026-07-17

New Features

Budgets

Budget tracking with spending limits and real-time progress visualization

What's Included

  • +Complete budgets system
  • +Integration with existing expense tracking
  • +Real-time sync across devices
  • +Mobile-optimized interface

1.0.0 - 2026-07-16

New Features

Ledgers

Complete ledger system for organizing and tracking all your financial transactions

What's Included

  • +Complete ledgers system
  • +Integration with existing expense tracking
  • +Real-time sync across devices
  • +Mobile-optimized interface

0.9.0 - 2026-07-15

New Features

Core expense tracking

Foundation for the Munshi expense tracking platform.

What's Included

  • +WhatsApp-based expense entry
  • +AI-powered receipt scanning
  • +Basic categorization
  • +Monthly expense reports
  • +Multi-currency support