Skip to content

fix(core): preserve sqlite error details#36570

Open
bvolpato wants to merge 3 commits into
anomalyco:devfrom
bvolpato:sqlite-error-details
Open

fix(core): preserve sqlite error details#36570
bvolpato wants to merge 3 commits into
anomalyco:devfrom
bvolpato:sqlite-error-details

Conversation

@bvolpato

@bvolpato bvolpato commented Jul 12, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #36578

Related context: #33356.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

SQLite failures were reduced to Failed to execute statement, which hid actionable causes. This preserves sanitized SQLite result details through Drizzle and session error handling, so SQLITE_FULL reports database or disk is full without exposing query parameters or native values.

It also includes the Node 24 EventEmitter.emit compatibility fix required for the current dev branch and its locked typings to pass the repository typecheck.

How did you verify your code works?

  • bun test test/database-sqlite.test.ts --timeout 30000 --only-failures in packages/core
  • bun test test/session/message-v2.test.ts test/project/project.test.ts --timeout 30000 --only-failures in packages/opencode
  • bun typecheck at the repository root

Screenshots / recordings

Not applicable.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLite failures hide actionable error details

1 participant