Skip to content

fix(ui): improve unrecognized database version error message#369

Merged
branchseer merged 2 commits intomainfrom
claude/improve-db-error-message-0BWN1
Apr 29, 2026
Merged

fix(ui): improve unrecognized database version error message#369
branchseer merged 2 commits intomainfrom
claude/improve-db-error-message-0BWN1

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Apr 29, 2026

Summary

Enhanced the error message displayed when an incompatible cache database version is encountered, providing users with actionable guidance on how to resolve the issue.

Example Message

Unrecognized database version: 12. The cache may have been created by a newer version of Vite Task. Run `vp cache clean` to remove it.

Key Changes

  • Modified ExecutionCache::load_from_path() to accept a program_name parameter, allowing the error message to reference the actual program name
  • Updated the cache version mismatch error message to:
    • Explain that the cache may have been created by a newer version of Vite Task
    • Provide a specific command ({program_name} cache clean) that users can run to resolve the issue
  • Updated the Session::cache() method to pass self.program_name when initializing the execution cache

Implementation Details

The error message now guides users toward a self-service resolution by suggesting they run the cache clean command, which should reduce support burden and improve user experience when cache incompatibilities occur.

https://claude.ai/code/session_01R6o7gtdDeEVkd6TXNgNi5q

Explain that the cache may have been created by a newer version of
Vite Task and suggest running `<program> cache clean`.

https://claude.ai/code/session_01R6o7gtdDeEVkd6TXNgNi5q
@branchseer branchseer changed the title Improve cache version mismatch error message with program name fix(cache): improve unrecognized database version error message Apr 29, 2026
@branchseer branchseer changed the title fix(cache): improve unrecognized database version error message fix(ui): improve unrecognized database version error message Apr 29, 2026
@branchseer branchseer marked this pull request as ready for review April 29, 2026 19:09
@branchseer branchseer merged commit bf0753e into main Apr 29, 2026
12 checks passed
@branchseer branchseer deleted the claude/improve-db-error-message-0BWN1 branch April 29, 2026 19:11
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.

2 participants