anomalyco / anomalyco/opencode
Show database migration progress during service upgrades
@kitlangton is already working on this.
Since Jul 23, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Context
Database migrations can make a service upgrade appear stalled. A migration tested while preparing #38367 took roughly 37 seconds on an unusually large 8.8 GB database even after batching reduced its memory and runtime costs.
Idea
Let migrations optionally report bounded progress and surface it in the service-upgrade TUI. For migrations that know their total work, show completed/total progress; otherwise show the active migration and an indeterminate indicator.
This is a future UX improvement rather than a requirement for #38367.
Considerations
- Keep migrations usable outside the interactive TUI.
- Avoid requiring a full-table count merely to calculate progress.
- Preserve useful noninteractive/log output.
- Ensure progress reporting does not materially slow the migration.
Requested by: @kitlangton (Kit via Slack)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.