Skip to content

feat(sidebar): open plugin task lists from the Tasks row shortcuts - #30465

Draft
DimitriBrick wants to merge 27 commits into
stablyai:mainfrom
DimitriBrick:feat/sidebar-plugin-task-shortcuts
Draft

DimitriBrick wants to merge 27 commits into
stablyai:mainfrom
DimitriBrick:feat/sidebar-plugin-task-shortcuts

Conversation

@DimitriBrick

@DimitriBrick DimitriBrick commented Oct 19, 2026 •

Copy link
Copy Markdown

Stacked on #26282 (plugin task sources), which this builds on. Until that merges, the diff here includes it; the change itself is the last commit, 703b749.

ELI5

Hovering Tasks in the sidebar shows quick buttons for GitHub, Linear and Jira. A plugin's task
list had no such button, so reaching it meant opening Tasks and then picking its tab. Now every
enabled plugin list gets its own quick button there too.

What Changed

Before: the Tasks row's hover shortcuts covered only the built-in sources (GitHub, GitLab,
Linear, Jira). A plugin task source was reachable from the Tasks page's source bar, or by a bare
Tasks click when it was the last tab picked.

After: each enabled plugin task source adds a shortcut after the built-in ones, drawn with the
icon its Tasks page tab already uses (resolvePluginPanelIcon) and labelled "Open <title>".
Clicking it calls openTaskPage({ pluginTaskSource }), the same request the Tasks page's plugin
tab makes. Like the built-in shortcuts it does not touch the remembered default
(defaultPluginTaskSource), so a bare Tasks click still opens whatever tab was last picked on
the page.

The list comes from usePluginTaskSources(), so it follows plugin enable, disable and errored
states exactly as the Tasks page tabs do. One new English string,
auto.components.sidebar.SidebarNav.openPluginTaskSource ("Open {{value0}}"); the plugin title
itself renders untranslated, as everywhere else plugin titles appear.

Why

A plugin list someone checks every morning should be as quick to reach as the built-in sources.
Reusing the existing shortcut row needs no new sidebar entry, setting or plugin API, and every
plugin list benefits, not one in particular.

Known limit: there is no per-plugin hide switch like Settings > Tasks has for the built-in
sources, so a user with many plugin lists gets one shortcut each. Easy to add if that matters.

Linked Issue

Fixes #30463

Visual Proof

Taken in a throwaway profile with a demo project and the examples/plugins/hello-tasks sample plugin.

Before: the Tasks row's hover shortcuts After: the plugin list gets one too
Tasks row hovered, shortcuts for GitHub, Linear and Jira Tasks row hovered, a flag shortcut for Hello Tasks after Jira

Clicking the new shortcut while GitHub was open switched the Tasks page to the plugin list:

Tasks page opened on Hello Tasks from the sidebar shortcut

Testing

Built on the #26282 branch at e62f51ebc.

  • pnpm tc passes.

  • New SidebarTaskNavButton.plugin-sources.test.tsx (3 tests): the shortcut sits beside the
    built-in ones and opens Tasks on that plugin list; one shortcut per list; none when no plugin
    contributes a list. With SidebarNav.test.tsx and plugin-task-sources.test.ts: 3 files,
    24 tests pass.

  • check:code-quality:changed (base e62f51ebc), check:max-lines-ratchet,
    verify:localization-catalog and verify:localization-extraction pass.

  • Manual check on Windows in a pnpm dev instance with the sample plugin: the Tasks row's hover
    shows the plugin's shortcut after GitHub, Linear and Jira; with GitHub open on the Tasks page,
    clicking it switched the page to the plugin list (screenshots above).

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Written with Claude Code (Claude Opus 5.5); reviewed by the author.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Independent of #30466 (start a task in an existing workspace); either can merge first.

Security: no new IPC or input surface. The shortcut uses data and an action the renderer
already has.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

🤖 Generated with Claude Code

ggrafhalfbrick and others added 27 commits October 7, 2026 09:06
A plugin can now declare contributes.taskSources (with the new tasks:provide
capability, shown in the consent dialog) and register list/get handlers with
orca.tasks.registerSource in its worker. Main validates every request and every
worker answer against strict schemas before anything reaches a renderer.

Each source gets a tab on the Tasks page beside the built-in providers, with
search, plugin-defined filters, a list, and a detail sheet. An item's start
recipe opens Create workspace prefilled with the name, project, base and a new
editable Agent prompt, which is typed into the agent as a draft; nothing is
created until the user clicks Create. The last plugin tab picked is remembered.

Includes the hello-tasks example plugin and an e2e spec for the whole flow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n settings

Plugin task sources now:
- remember each source's search and filters per device, so the list comes
  back as the user left it after visiting other pages or restarting;
- link a workspace to the task it was started from: the sidebar card shows
  the task and opens it, and the task list and detail show the workspaces
  already started from a task ("Open workspace" / "Start another");
- let a start recipe pin agent session options (model, effort) for the agent
  they are written for, shown in Create workspace; other agents start with
  their own;
- carry small link metadata that the workspace keeps with its link.

Plugins can declare contributes.settings (string, boolean, enum; needs
settings:own). Settings > Plugins shows a Settings dialog for them, and values
land in the plugin's own settings store that the worker already reads.

Also clears the stale "Enter a plugin folder path" error once a path is typed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The examples were borrowed from a private plugin: a "Read from" setting with
a depot option, Perforce stream base refs, and a project-specific label.
Use a generic "Sort by" setting and a plain branch name instead, and drop the
Perforce mention from the baseRef doc, since main has no Perforce support.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ect.apply

Two worktree merge tests compared whole objects and missed the new
linkedPluginTask field. The task-source activation test called the API
through Reflect.apply, which the anti-slop gate rejects; it now types the
fake plugin's view of the API instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The commit hook's formatter wrapped this upstream line during the merge,
which left the cast one line below its oxlint-disable comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A remembered filter value the source stopped offering showed its picker's
default, while the list request and the saved view kept sending the stale
value. Once a list arrives, selections that are no longer offered (or whose
filter is gone) are dropped, so the request, the saved view and the pickers
agree; the source then applies its own default, as it does for an unset filter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Saving a new workspace's link to its plugin task discarded the result, so a
failed metadata write lost the link silently. The result is now checked and a
failure shows a toast. The save stays off the creation path so a slow host
never delays opening the workspace or starting its agent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Start opened Create workspace on the active project whenever a recipe's
projectPath did not match one, so the new workspace could land in an
unrelated repository with a base ref from another.

Start recipes can now name projectSource, where the project's files
come from (for example a Git remote URL). Without projectPath, Orca asks
one matcher per source-control kind; the Git matcher compares the URL
with each project's stored remote identity (any forge, scp/https/ssh
forms, forge alias hosts, SSH host aliases ranked lower) and prefers the
active project, then local over SSH, on ties. When a recipe names a
folder or source that no project matches, Start shows which one is
missing instead of opening another project. Recipes that name neither
keep the composer's usual default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A project keeps one remote identity and prefers its upstream remote, so
a task naming a fork's URL found no clone whose upstream is the parent,
and a fork clone without an upstream remote did not match a task naming
the parent. Both now match, ranked below an exact remote and an SSH host
alias: a project whose forge-reported parent is the task's repository,
or one whose identity comes from upstream and shares the host and
repository name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…okups

A fork parent saved without a host was assumed to be on github.com, so a
GitHub Enterprise fork could match a same-named github.com task, and a mixed-
case host never matched. Like repoUpstreamIdentityKey, the parent now takes
the clone's own host, and the fork match is refused when that is unknown.

Start's project lookup is async and fire-and-forget, so a failing matcher now
shows its error in a toast instead of becoming an unhandled rejection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The load pass only checked a truthy linkedPluginTask, so a stored '', 0 or
false skipped validation and stayed in memory. Every present value is now
validated, as the write path already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clearing the "enter a plugin folder path" error while typing is unrelated to
task sources and plugin settings, so it comes out of this branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream dropped the selectedRepo argument from quick submit and stopped
passing Chat UI's stored options into composer launches. A plugin task's
model and effort are explicit choices for one launch, so they now go to the
startup plan as session options that win over the agent's default arguments,
as orchestration worker preferences do. plugins.invokeTaskSource declares the
workspace permission that every runtime method now needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
While merging main, the pre-commit formatter rewrapped a line in
src/relay/agent-exec-disposal.test.ts and dropped a blank line in
structured-agent-session-queued-mutations.ts. Neither belongs to this
change, so both go back to upstream's exact content. Committed without the
hook, which would reformat them again; only these two files are touched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	src/renderer/src/components/task-page/SourceBar.tsx
#	src/renderer/src/i18n/locales/en.json
The main merge took upstream's quick-startup-plan.ts, which replaced the
input's `platform` field with `launchHost: ExecutionHostPlatformFact`, but
auto-merge kept this branch's test helper still passing `platform`. Update
the helper to build a `launchHost` so the renderer typechecks again.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Resolved conflicts:
- composer: unify QuickSubmitOptions in quick-creation-request (upstream's setupOnly plus agentDraft, sessionOptions, linkedPluginTask) and keep both the plugin agent-draft props and the setup-only picker
- task page effects: keep the escape-to-close hook with upstream's Jira summary model
- en.json: keep plugin task keys alongside the new Jira key; drop the unused key upstream removed

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	src/renderer/src/lib/pending-worktree-creation.ts
#	src/shared/worktree/meta-types.ts
#	src/shared/worktree/types.ts
Hovering the Tasks row shows one-click shortcuts for GitHub, GitLab, Linear
and Jira. Each enabled plugin's task list now gets one beside them, drawn
with the icon its Tasks page tab already uses and labelled "Open <title>".
Clicking it opens Tasks on that list, the same way the built-in shortcuts
open their source; like them, it does not change which list a bare Tasks
click remembers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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.

[Feature]: Plugin task lists have no shortcut on the sidebar's Tasks row

3 participants