Skip to content

feat(ui): add OpenCode session repair tool#450

Closed
pascalandr wants to merge 1 commit into
NeuralNomadsAI:devfrom
Pagecran:feat/opencode-session-repair-tool-pr
Closed

feat(ui): add OpenCode session repair tool#450
pascalandr wants to merge 1 commit into
NeuralNomadsAI:devfrom
Pagecran:feat/opencode-session-repair-tool-pr

Conversation

@pascalandr
Copy link
Copy Markdown
Contributor

@pascalandr pascalandr commented May 15, 2026

Summary

  • add a command-palette-driven OpenCode session repair tool that analyzes the global OpenCode database and reports broken, hidden, and merely incomplete sessions separately
  • provide scoped repair actions for safe metadata normalization, directory reconciliation, or both, with an automatic database backup before any write
  • surface the analysis and repair flow in a dedicated modal so users no longer need manual SQLite edits to recover affected sessions

Validation

  • npm run typecheck --workspace @codenomad/ui
  • npm run build --workspace @codenomad/tauri-app
image

supersed #444

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
@shantur
Copy link
Copy Markdown
Collaborator

shantur commented May 15, 2026

@pascalandr - The correct fix for the issue is here anomalyco/opencode#27702

I will get this implemented in OpenCode.

@pascalandr
Copy link
Copy Markdown
Contributor Author

yes but the tool here is not just about this bug

@shantur
Copy link
Copy Markdown
Collaborator

shantur commented May 15, 2026

What else does it do?

@pascalandr
Copy link
Copy Markdown
Contributor Author

Directory mismatch, and metadata malformation in general not specificaly the one I started with in #444

@shantur
Copy link
Copy Markdown
Collaborator

shantur commented May 15, 2026

TBH, I don't envision such tools to be part of CodeNomad. It maybe better suited as separate utilities.
CodeNomad targets to be a Coding platform, don't want it to be come an opencode manager / toolbox.

@pascalandr
Copy link
Copy Markdown
Contributor Author

could be in opencode itself, wil try to talk about that with opencode 's team

@shantur shantur closed this May 15, 2026
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