Skip to content

feat(plugins): richer panel settings/storage, readContext, focus (+ join keys), and sidecar presence hook #19020

Description

@jondmarien

Summary

Plugins that need richer host context for panels and presence (settings persistence, diagnostics storage, workspace/agent/focus metadata, and a host-mediated remote/sidecar presence hook) currently cannot get that data on stock Orca without fragile workarounds.

This issue tracks upstreaming a single coordinated host-API expansion that was implemented and smoke-tested on a personal fork (jondmarien/orca) against a real Discord Rich Presence plugin (chron0.discord-presence).

Motivation

Discord Rich Presence and similar plugins want to show workspace, branch, agent state/counts, focused surface, and optional remote/sidecar presence. Stock Orca panel APIs were too thin; the fork added panel settings/storage, richer workspace.readContext, focus events + join keys + ui.readFocus, and a sidecar mailbox hook. Live smoke on Linux from-source confirmed Discord SET_ACTIVITY with agent counts, focus join keys, and workspace detail.

Proposed host surface (one PR)

  1. Panel settings — panel-callable settings.get / settings.set (plugin-private)
  2. Panel storage — panel-callable storage.* for diagnostics / ephemeral panel state
  3. Richer workspace.readContext — execution host label / agent metadata
  4. Focus — ui:focus / ui.focus.changed, focusedSurface on readContext
  5. Sidecar / remote presence hook — host-mediated mailbox for remote presence
  6. Focus join keys + ui.readFocus — opaque worktree/agent join keys and a pollable focus read (follow-up that completed the presence smoke)

Out of scope

  • Sandboxed-renderer white-screen / process-table process/promisify leak — already fixed upstream separately; must not be included in this PR.
  • The Discord Presence plugin itself (lives in jondmarien/orca-discord-presence).

Evidence

Acceptance

  • One upstream PR against main covering the surfaces above
  • Docs + tests for the new host methods
  • No white-screen / process-table renderer changes

Activity

  1. added a commit that references this issue on Sep 6, 2026
    764a62a
  2. self-assigned this
    on Sep 7, 2026
  3. added
    enhancement
    on Sep 19, 2026
  4. added theissue type on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions