feat(ui): add OpenCode session repair tool#450
Closed
pascalandr wants to merge 1 commit into
Closed
Conversation
Expose a command-palette-driven repair flow that analyzes the OpenCode database, reports likely broken or hidden sessions separately from non-blocking metadata gaps, and lets users apply scoped repairs with an automatic backup first. This gives affected users a built-in recovery path instead of requiring manual SQLite edits or ad hoc scripts. The server now inspects the global OpenCode database, derives safe metadata repairs from existing assistant messages, and offers a separate directory-reconciliation pass based on known CodeNomad workspaces. The UI adds a modal report plus targeted actions so users can normalize incomplete metadata without assuming that every incomplete session is currently broken. Validation: npm run typecheck --workspace @codenomad/ui; npm run build --workspace @codenomad/tauri-app
Collaborator
|
@pascalandr - The correct fix for the issue is here anomalyco/opencode#27702 I will get this implemented in OpenCode. |
Contributor
Author
|
yes but the tool here is not just about this bug |
Collaborator
|
What else does it do? |
Contributor
Author
|
Directory mismatch, and metadata malformation in general not specificaly the one I started with in #444 |
Collaborator
|
TBH, I don't envision such tools to be part of CodeNomad. It maybe better suited as separate utilities. |
Contributor
Author
|
could be in opencode itself, wil try to talk about that with opencode 's team |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Validation
npm run typecheck --workspace @codenomad/uinpm run build --workspace @codenomad/tauri-appsupersed #444