Skip to content

feat: recover auto-review feature (supervisor + cross-review)#2

Closed
OpenCodeEngineer wants to merge 1691 commits into
devfrom
fix/recover-auto-review
Closed

feat: recover auto-review feature (supervisor + cross-review)#2
OpenCodeEngineer wants to merge 1691 commits into
devfrom
fix/recover-auto-review

Conversation

@OpenCodeEngineer
Copy link
Copy Markdown
Owner

Summary

Recovers the auto-review feature that was lost during the upstream/dev rebase. This restores the full supervisor → summarize → cross-review orchestration loop.

Changes

Backend (packages/opencode/src/config/config.ts)

  • Added auto_review config field with optional model (provider/model format) using Effect Schema

Frontend Settings (packages/app/src/context/settings.tsx)

  • Added models section: autoReview toggle, defaultModel, reviewModel selectors

Session Flow (packages/app/src/pages/session.tsx)

  • Imported auto-review module functions and AssistantMessage type
  • Extended FollowupItem with autoReviewSource and autoReviewPhase
  • Added ReviewModel and ReviewState types
  • Added pending, autoReview, review fields to followup persisted store
  • Added resolveReview(), queueAutoReview(), and isAutoReviewPrompt() helpers
  • Added createEffect that orchestrates: supervisor review → summarize → cross-review (retry cap: 3 per phase)

Documentation (FORK.md)

How to verify

  1. Enable "Auto Review" in Settings → Models
  2. Send a coding task; after assistant completes, supervisor review auto-queues
  3. After supervisor review + summarization, cross-review queues with a different model
  4. Review stops after "Task completed." token or 3 retries per phase

Typecheck

✅ All 14 packages pass bun typecheck
✅ All 10 auto-review tests pass

Closes anomalyco#194

opencode-agent Bot and others added 30 commits May 3, 2026 18:24
…anifest assets (anomalyco#25698)

Co-authored-by: Kit Langton <kit.langton@gmail.com>
engineer and others added 24 commits May 9, 2026 02:43
- move /tts/edge into Effect HttpApi global routes + handlers
- remove createHttpApi Hono bypass that caused OpenAPI parity drift
- exclude /tts/* from injected instance query params in public OpenAPI transform
- update handoff.md with regression/fix progress

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- log TTS HttpApi parity fix commit and test outcomes
- mark auto-review todo complete with app test coverage
- record remaining full-suite failures for next triage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- note full-suite failures confirmed on upstream/dev as environment-related
- document models snapshot artifact and safe.bareRepository test impacts
- mark failure triage complete in handoff plan

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…olding in sidebar

Restore features lost during rebase on upstream/dev:

- Recently Used models group in model picker dialog
- Project/workspace prefix labels in recent sessions sidebar
- Collapsible parent/child session tree with depth indentation
- Session hover preview cards with MessageNav
- workspaceKey helper replacing pathKey for directory normalization
- childMapByParent helper for building session parent-child maps

Also adds FORK.md documenting fork-specific features and rebase
survival checklist to prevent future feature loss.

Fixes anomalyco#189

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…t sidebar

- Add /recent route to router (before /:dir catch-all)
- Navigate to /recent when clicking Recent Sessions tile
- Fix recent sidebar slug to use base64-encoded directory instead of literal 'recent'
- Fix relative navigate path in message hover selection (missing leading /)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add browser smoke test table, deployment quick reference, and
document /recent route, TTS, auto-resume, multi-instance features.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…chas

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add models section to settings context (autoReview, defaultModel, reviewModel)
- Import auto-review module functions and AssistantMessage type
- Extend FollowupItem with autoReviewSource and autoReviewPhase fields
- Add ReviewModel and ReviewState types
- Add pending, autoReview, review fields to followup persisted store
- Add auto-review helpers: resolveReview, queueAutoReview, isAutoReviewPrompt
- Add createEffect for supervisor/cross-review orchestration loop

Closes anomalyco#196

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

This pull request has been automatically closed.

@github-actions
Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

editor command and keybind not working