This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
fix(db): add transaction method to Node SQLite polyfill - #140
Merged
Merged
Conversation
The NodeDatabasePolyfill class was missing the transaction() method that Bun's SQLite provides. This caused 'e.transaction is not a function' errors when running via npx/Node.js (e.g., during 'sentry auth status' credential verification which calls setOrgRegions()). Add transaction() method that wraps functions in BEGIN/COMMIT with ROLLBACK on error, matching Bun's db.transaction() API.
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Bug Fixes 🐛
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 1802 uncovered lines. Files with missing lines (25)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 69.48% 69.48% —%
==========================================
Files 51 51 —
Lines 5905 5905 —
Branches 0 0 —
==========================================
+ Hits 4103 4103 —
- Misses 1802 1802 —
- Partials 0 0 —Generated by Codecov Action |
BYK
marked this pull request as ready for review
January 31, 2026 01:43
3 tasks
betegon
added a commit
that referenced
this pull request
Jul 16, 2026
## Summary The Ink sidebar was only updating tasks when a workflow step suspended. Steps that completed entirely inside start/resume, such as Analyze project when its inputs were already cached, were therefore shown as skipped or left incomplete even though Mastra had finished them. This reconciles the checklist from the step statuses Mastra already returns on every response. Tasks that never suspend now become green, failures are reflected even before a client-tool round trip, and the final synchronous steps can reach the completed count. The separate Installing dependencies row was also stale: cli-init-api#140 merged installation into apply-codemods. The checklist now mirrors the real eight-step user-facing workflow and labels that phase Applying changes + deps instead of keeping a task that can never receive a server transition. Tasks now render above the rotating tips, so different tip heights no longer move the progress list around. ## Test plan - pnpm run lint — 920 files pass - pnpm run typecheck — passes - pnpm vitest run test/lib/init/ui/ink-app.snapshot.test.tsx test/lib/init/ui/wizard-store.test.ts test/lib/init/wizard-runner.test.ts — 123 tests pass - pnpm vitest run test/lib/init test/lib/telemetry.test.ts — 538 tests pass - TZ=UTC pnpm vitest run test/lib/time-range.test.ts — 51 tests pass - pnpm run test:unit — 8,479 pass, 14 skipped, with eight pre-existing local-environment failures: six timezone-sensitive time-range assertions under Europe/Madrid and two bash completion shell simulations. The time-range failures pass under TZ=UTC; none of the eight touch init. - git diff --check — passes - Local patch coverage for executable lines — 100%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The NodeDatabasePolyfill class was missing the transaction() method that
Bun's SQLite provides. This caused 'e.transaction is not a function'
errors when running via npx/Node.js (e.g., during 'sentry auth status'
credential verification which calls setOrgRegions()).
Add transaction() method that wraps functions in BEGIN/COMMIT with
ROLLBACK on error, matching Bun's db.transaction() API.