v0.0.8: opencode agent, conversation minimap, data layer refactor#5
Merged
v0.0.8: opencode agent, conversation minimap, data layer refactor#5
Conversation
- Link to demo.residue.dev below hero CTA buttons. - Gitignore seed-demo.sh and wrangler.local.demo.jsonc.
- New Contributors component renders full-width rows with avatar initial, commit/conversation counts with icons, and last active time. - DB.getContributors() queries by global/org/repo scope via discriminated union. - Shown on home (after agent breakdown), org (after heatmap), repo (after stats chart).
- Monolithic db.ts was 950 lines and growing unwieldy for navigation - Each data layer method now returns Result<T, DBError> for explicit error handling - DL middleware creates once per request instead of new DB() in every handler - Only sessions route migrated so far, remaining routes/tests pending
- Replace all new DB(c.env.DB) with c.var.DL in routes, middleware
- Update Hono types from { Bindings: Env } to AppEnv
- Handle Result unwrapping at each call site
- Replace new DB(env.DB) with createDL({ db: env.DB }) in all test files
- Update method calls and unwrap Result values in assertions
- Remove old monolithic DB class
- Plugin source (session.created, session.compacted hooks), setup command, worker mapper, search text extractor - Test fixtures from real opencode session data
IDE-style minimap sidebar for navigating long conversations. Fixed position on desktop, syncs with tab switching.
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
Add OpenCode as a third supported agent, introduce a conversation minimap for navigating long sessions, restyle scrollbars, refactor the worker's data layer into a Result-typed module, and add contributor attribution across the UI.
Changes
CLI
residue setup opencodecommandWorker
db.tsinto a typed data layer with Result types, migrate all routes and testsDocs
Tests