Skip to content

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

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

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

Conversation

@OpenCodeEngineer
Copy link
Copy Markdown
Owner

Issue for this PR

Closes anomalyco#194

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Recovers the auto-review feature that was lost during the upstream/dev rebase. The feature enables automatic supervisor and cross-review followups after an assistant completes a coding task.

The auto-review flow works as follows:

  1. When enabled in Settings → Models, after the assistant completes a response, a supervisor review is automatically queued using a different model
  2. After the supervisor review completes, the session is summarized, then a cross-review is queued with yet another model
  3. The flow stops when the reviewer outputs "Task completed." or after 3 retries per phase

Backend: Added auto_review config field (Effect Schema) with optional model in provider/model format.

Settings: Added models section with autoReview toggle, defaultModel, and reviewModel selectors.

Session: Added ~200 lines of orchestration: resolveReview() picks a review model different from the one that produced the code, queueAutoReview() queues the followup with the right prompt, and a createEffect watches for completed assistant messages to trigger the flow.

Docs: Updated FORK.md with feature entry anomalyco#14 and rebase conflict zone entries.

How did you verify your code works?

  • All 14 packages pass bun typecheck (tsgo --noEmit)
  • All 10 existing auto-review unit tests pass (bun test src/pages/session/auto-review.test.ts)
  • The auto-review module (auto-review.ts) was already present and unchanged — this PR wires it into the session page and settings

Screenshots / recordings

N/A — this is a backend + state management change. The UI toggle appears in Settings → Models.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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>
opencode-agent Bot and others added 28 commits May 9, 2026 04:31
Port cleanly-compatible fork features onto upstream/dev base:

App UI:
- Saved prompt suggestions component
- Recent sessions sidebar with hierarchy view
- Auto-review model selection utility
- Recent session organization utility

Backend:
- Edge TTS synthesis module (node-edge-tts)
- TTS HTTP route (/tts/edge)
- Session auto-resume module

Import paths updated for upstream (@opencode-ai/core/util/).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- encode recent sidebar session slugs with workspace directory
- trim/validate TTS input and reject whitespace-only payloads
- route /tts through HttpApi backend in server handler
- clean up generated TTS temp directories recursively
- add whitespace route coverage test
- update handoff.md progress

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- add serve-autoresume effect to recover interrupted/unanswered sessions
- run per-session resume inside InstanceStore context
- provide WorkspaceRef when present and skip busy sessions
- start worker in serve command via background scoped fiber
- update handoff.md with current state and next steps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- 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 github-actions Bot closed this May 12, 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.

editor command and keybind not working