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/compressplus the oRPC compression plugin) while Cloudflare compressed them again at the edge. Clients received two gzip layers behind a singleContent-Encodingheader, soJSON.parsefailed andbetter-authhanded back the raw bytes as a string. That string is truthy, so/loginredirected to/dashboardand the layout crashed onsession.user.idwith "Authentication error". Origin compression is gone; the edge already does it outside the Worker's CPU budget. - +Malformed sessions are rejected instead of trusted.
authMiddlewarenow checks foruser.idandsession.idbefore treating a response as a session, and does not cache an unreadable payload. A transient API failure sends the visitor to/logininstead of an error card. - +Web type-checking and builds run on every pull request.
apps/webhad nocheck-typesscript, so the package was skipped byturbo check-types, and the only full CI run happened on release tags. A newci.ymlworkflow 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.mdsection 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.
beforeLoadruns on every navigation, search change and intent preload; each run used to make a full cross-originGET /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 theuseTableAPI. 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-types5.20261023.1,dotenv18.0.9,lucide-react1.61.0. - +
@tanstack/react-tablev8 → 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/observabilitypackage owns the shared setup. - +Tracing actually exports now.
@microlabs/otel-cf-workerscalledscheduler.wait(1)inside a package wherescheduleris not declared, and its ownflush()swallowed the rejection, so no span had ever reached a backend. Replaced with aBasicTracerProviderand 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) inpredeployso the email worker entrypoint exists beforealchemy deploy. - +Patch
alchemy@0.94.0to adopt the existing R2 bucket when Cloudflare answers 409 with a non-JSON body. - +Run CI and
engineson Node 26. - +WhatsApp attachments: persist the R2 key on
chat_attachmentinstead 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
transactionsprocedure 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 viacreateTool(single source of truth for validation, auth, and logic), with the agent's session context injected per request. - +oRPC v1 → v2: all
@orpc/*packages on2.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/groqv3 → v4,workers-ai-providerv3 → v4,zod→ 4.6.5. - +Dodo Payments types:
paused/past_duesubscription statuses mapped onto the local enum. - +
@hugeicons/core-free-iconspinned 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.devaddress 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.devaddress 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
emailhandler, 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/requireProplan 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_urlreturn after login. - +Dev harness:
POST /dev/ingest-emailmirrors the worker path locally (disabled in production).
1.2.2 - 2026-07-18
Bug Fixes
- +Auth: Fixed redirect to
/loginon page reload for authenticated pages. Re-enabled SSR auth check usinggetUser()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
