mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 18:17:36 +00:00
* Add automation runs dashboard with pagination and filtering Adds a new Runs view in the Automations page that lets users browse all runs across automations with status/host filtering, search, and pagination support. Includes virtualized table rendering for efficient handling of large run histories and summary cards showing 24h/7d success/failure counts. * Fix missing dependencies in useCallback hooks and imports Missing dependencies in useCallback can cause stale closure bugs. This adds missing state setters to dependency arrays and consolidates type imports for consistency. * Use keyset pagination for stable automation runs pages Pagination now uses createdAt:id boundaries instead of offsets, so new runs arriving between pages don't shift the window. Maintains backwards compatibility with legacy offset cursors. Move pagination to shared module, fix outcome counting for future-dated runs, and improve hook state tracking on authority re-pairing or target changes. * Extract automation run details to top-level page view Moves run display from detail pane to dedicated page, establishing three-level navigation (Automations → Runs → Run Details) and simplifying the detail pane component. * Fix pagination stability when automation runs share createdAt - Define a stable total order with createdAt and id tiebreaker to prevent runs tied on createdAt from being dropped when the boundary run is pruned between page requests - Retain cursor on failed pagination so pages remain retryable - Update ownerNotice type to AutomationActionNotice * Extract automations list panel and worktree map logic Split AutomationsPageSurface into smaller, focused modules for better maintainability and reusability. Move list panel UI rendering to AutomationsPageListPanel component and worktree map selection logic to a standalone utility function. * Add i18n strings for automation runs dashboard Adds localized strings for the automation runs dashboard view, including search, filtering by host and status, run counts for 24h/7d windows, and empty state messaging across all supported languages. * fix missing translation * fix missing translation
38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
---
|
|
title: Annotate AI Diff
|
|
---
|
|
|
|
import { ImagePlaceholder } from '@/components/docs/prose'
|
|
|
|
Annotate AI Diff is Orca's inline review loop for agent-generated code. You leave comments on any line of any AI-generated hunk, then send them back to the agent as a single batch for revision — no copying line numbers, no context-switching.
|
|
|
|
<ImagePlaceholder
|
|
src="/docs/annotate-ai-diff.gif"
|
|
caption="Annotate a generated diff and send one batch of line-level notes back to the agent"
|
|
/>
|
|
|
|
## Leave a comment
|
|
|
|
1. Hover any line in the diff. A **+** appears in the gutter.
|
|
1. Click it (or press `c` with the cursor on the line).
|
|
1. Type your feedback — markdown supported.
|
|
1. Press `Cmd-Enter` to save, `Esc` to cancel.
|
|
|
|
Comments pin to the exact line; Orca tracks them across edits so they follow the line if the diff shifts.
|
|
|
|
## Send the batch
|
|
|
|
When your review is done, click **Send to agent** at the top of the diff. Orca composes a single prompt with all your comments, line-anchored, then opens a **Send notes to** menu for the worktree's available agents. Pick the agent that should revise the change, or start a new agent from the same menu.
|
|
|
|
**Send Review Notes to Agent** is unbound by default so it won't collide with other chords. Assign it under [Settings → Shortcuts](/docs/settings) to open that send menu from the keyboard (works even while the editor is focused).
|
|
|
|
## Why batch?
|
|
|
|
Sending comments one at a time causes the agent to swing back and forth. Batching keeps the feedback coherent: one round of thinking, one revision pass, and a much higher hit rate.
|
|
|
|
## Reply, resolve, re-review
|
|
|
|
- Comments stay pinned after the agent revises — use them to verify the fix.
|
|
- Click **Resolve** to collapse a thread.
|
|
- Unresolved comments are part of the next batch if you hit **Send** again.
|