orca icon indicating copy to clipboard operation
orca copied to clipboard

[Feature]: Sidekick extension

Open MaheshDoiphode opened this issue 7 months ago • 4 comments

Problem or use case

Image

As of now, the sidekick is not more than an overlay, but we can expand its use.

  • It can show status of all running agents across projects in one place, instead of checking multiple terminals.
  • It can notify when a task is completed, failed, or requires input.
  • It can show which project or workspace the update is coming from.
  • It can indicate long running or stuck tasks where there has been no activity for a while.
  • It can allow quick actions like opening the related workspace, viewing logs, retrying or stopping a task.
  • It can show a compact list of all active agents on click or hover, acting as a mini dashboard.
  • It can reflect different states like running, idle, completed, or error.
  • It can allow filtering notifications by project or event type.
  • It can optionally integrate with system notifications so users don’t need to stay focused on the IDE. - yes sure orca has its own notification system, but in app notifications can be shown on sidekick..

Proposed solution

As of now, the sidekick is not more than an overlay, but we can expand its use.

  • It can show status of all running agents across projects in one place, instead of checking multiple terminals.
  • It can notify when a task is completed, failed, or requires input.
  • It can show which project or workspace the update is coming from.
  • It can indicate long running or stuck tasks where there has been no activity for a while.
  • It can allow quick actions like opening the related workspace, viewing logs, retrying or stopping a task.
  • It can show a compact list of all active agents on click or hover, acting as a mini dashboard.
  • It can reflect different states like running, idle, completed, or error.
  • It can allow filtering notifications by project or event type.
  • It can optionally integrate with system notifications so users don’t need to stay focused on the IDE. - yes sure orca has its own notification system, but in app notifications can be shown on sidekick..

Alternatives or additional context

No response

MaheshDoiphode avatar May 04 '26 13:05 MaheshDoiphode

love it. will add it

AmethystLiang avatar May 05 '26 18:05 AmethystLiang

What would be the added value of exposing these features through the sidekick/pet instead of the regular Orca UI?

From a UX perspective, many of these actions seem like they either already have a natural place in the main interface, or would benefit from a more conventional UI pattern there. My concern is that moving them into the sidekick could make useful features less discoverable, less predictable, or unnecessarily split across different interaction models.

Curious where you see the sidekick adding value compared to improving the default Orca UI directly.

rnoblecodes avatar May 11 '26 19:05 rnoblecodes

Triage from current origin/main: this is not implementation-ready as a single “sidekick extension” PR yet. The issue asks for cross-project agent status, completion/failure/input notifications, project/workspace attribution, stuck detection, quick actions, filters, a compact active-agent dashboard, and optional system/in-app notifications; the unanswered product question in https://github.com/stablyai/orca/issues/1395#issuecomment-4424288662 is the key blocker: what should be uniquely better about doing this through the pet/sidekick instead of improving the normal Orca UI?

Architecture facts I checked:

  • src/renderer/src/App.tsx:438 and src/renderer/src/App.tsx:1765 mount PetOverlay only when persisted UI is ready and both settings.experimentalPet and petVisible allow it.
  • src/renderer/src/components/pet/PetOverlay.tsx:11 reads agentStatusByPaneKey and retained agents only to pick an animation, and src/renderer/src/components/pet/PetOverlay.tsx:346 renders an aria-hidden fixed draggable overlay with pointer events only on the pet itself. It is not currently a popover, command surface, or dashboard host.
  • src/renderer/src/components/pet/pet-agent-state.ts:4 supports only animation states (idle, running, waiting, review, jumping) derived from fresh hook states (working, blocked, waiting, done) and retained completions.
  • Pet discoverability/control is already status-bar/settings based: src/renderer/src/components/status-bar/PetStatusSegment.tsx:20 clusters show/hide, character picker, custom upload/import, size, and settings; src/renderer/src/components/settings/ExperimentalPane.tsx:42 describes it as a small animated bottom-right pet.
  • Agent status aggregation already exists outside the pet: src/shared/agent-status-types.ts:8 defines hook states, src/renderer/src/store/slices/agent-status.ts:34 keeps live and retained maps, src/renderer/src/components/sidebar/useWorktreeAgentRows.ts:218 builds per-worktree live/retained rows, and src/renderer/src/components/sidebar/WorktreeCardAgents.tsx:22 renders each worktree’s live state, prompt, last message, activate, and dismiss behavior.
  • Notifications already cover a narrow, native/mobile path: src/shared/types.ts:2082 has only agent-task-complete, terminal-bell, and test; src/main/ipc/notification-options.ts:50 formats rich agent completion notifications; src/main/ipc/notifications.ts:186 gates by settings/focus/cooldown and src/main/ipc/notifications.ts:240 fans non-test notifications to mobile; src/renderer/src/components/settings/NotificationsPane.tsx:224 exposes the current settings.
  • Workspace board/status UI is already a full surface: src/shared/workspace-status-defaults.ts:10 defines default statuses, src/renderer/src/components/sidebar/WorkspaceKanbanDrawer.tsx:74 groups worktrees by status, and src/renderer/src/components/sidebar/WorkspaceKanbanStatusLane.tsx:41 renders status lanes with create/drop/resize flows.
  • Existing quick actions are intentionally limited: src/renderer/src/components/sidebar/WorktreeCard.tsx:437 restricts hover delete to inactive/non-live workspaces, src/renderer/src/components/sidebar/WorktreeCard.tsx:577 provides read/unread, and src/renderer/src/components/sidebar/WorktreeCardAgents.tsx:147 activates a specific agent pane or dismisses stale rows. There is no generic retry/stop/log action taxonomy yet.
  • SSH/mobile are first-class in the current status path: src/main/agent-hooks/server.ts:846 revalidates relay-forwarded SSH hook payloads at the trust boundary, src/shared/agent-hook-relay.ts:1 defines the relay wire envelope, src/main/index.ts:533 forwards hook status to the renderer with connectionId, and src/shared/runtime-types.ts:101 / src/main/runtime/orca-runtime.ts:10907 carry mobile terminal agentStatus in runtime session snapshots.

Product decision needed: should the pet be (A) only an ambient indicator plus shortcut into existing Agents/workspace surfaces, (B) a compact read-only dashboard, or (C) an action surface that owns stop/retry/log/filter workflows? Option C needs explicit UX and data-model decisions for stuck thresholds, event types, filtering semantics, failure vs interrupted vs blocked states, and how actions behave over SSH, paired web/mobile, automations, and orchestration workers.

First safe PRs after that decision:

  1. If we choose A, add a small pet/status-menu entry point that opens the existing Agents/Activity or workspace agent rows without new data models or quick actions.
  2. If we choose B, add a read-only compact summary that reuses useWorktreeAgentRows/dashboard row data and links to workspaces/panes, with no retry/stop behavior.
  3. Treat stuck detection, filters, and retry/stop/log actions as follow-up PRs only after their product contract is defined, because those are cross-surface and SSH/mobile-sensitive.

nwparker avatar May 29 '26 23:05 nwparker

ready for testing

ppalka-lingaro avatar Aug 03 '26 12:08 ppalka-lingaro