Skip to content

Search connected tasks by keyword from Cmd+J - #28617

Merged
nwparker merged 4 commits into
mainfrom
nwparker/cmd-j-task-search
Oct 14, 2026
Merged

nwparker merged 4 commits into
mainfrom
nwparker/cmd-j-task-search

Conversation

@nwparker

@nwparker nwparker commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​695 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​694
Prod 17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​939 $\color{#cf222e}{\Huge{\mathbf{−}}}$​17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​922

ELI5

Type a few words of an issue title in Cmd+J to find connected Jira, Linear, GitHub, and GitLab tasks. Open a linked workspace or its task details with Enter; use Cmd+Enter on macOS or Ctrl+Enter elsewhere to start a workspace from the selected task.

What Changed

Previously, keyword searches only found local palette targets, so an unlinked issue required a detour through Tasks. A separate Tasks group now uses the existing provider search APIs after a short debounce, while local results remain immediately available. Results arrive independently, keep their host/site/account identity, ignore obsolete responses, and retain successful sources when another source fails. Repository and host filters apply to searches; Jira for SSH repositories stays on the desktop credential host, while runtime-owned Jira stays remote. Account searches receive the host already captured by the palette and use explicit target entry points in the existing clients, so changing the default host cannot redirect an in-flight search.

Task selection reuses existing workspace activation, Tasks detail, and workspace composer flows. A linked folder workspace can also be activated. A late task result replaces the default create action only while the user has not moved the selection.

Why

This keeps task discovery in the existing navigation flow. Reusing provider clients and workspace actions preserves authentication, remote ownership, and task-link behavior without adding another search backend or creation dialog. Limited request concurrency and result counts keep large repository lists bounded.

Linked Issue

Fixes #24154

Visual Proof

Hidden macOS Electron renderer with example Jira fixtures; no live provider authentication is implied. Same keyword query before and after:

Before: only the generic create action

After: Jira task result and Cmd+Enter shortcut

Cmd+Enter: existing workspace composer with the selected Jira task

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

The latest focused runs pass 66 tests across eight suites, covering debounce, incremental results, stale/closed requests, failure/retry, provider routing, account/site collisions, linked folder activation, and exact composer task identity. Captured-host regressions keep both Jira and Linear on their original account host if the default host changes during status loading, and reject late results after the palette owner changes. Selecting several SSH hosts still produces one desktop Jira query, while runtime Jira remains remote.

Task selection now lives in a focused hook so the existing selection module stays within the file-size limit. The five new English messages and updated search hints are included in the canonical catalog; the runtime catalog, extraction, and coverage gates pass. Changed-code quality passes across all 24 changed source files, including type-aware checks, React Doctor, and design-system checks. The focus-read gate passes without raising its baseline. Formatting, staged lint checks, and git diff --check pass.

The branch includes the audited main snapshot 9c0420fa9ab3, which contains the former clock prerequisite #28593. Node and renderer typechecks pass for the exact published head; source hashes match before and after both checks. New GitHub checks are pending; no CI pass is claimed.

For manual verification, open Cmd+J, search at least two plain-text characters from an issue title, and confirm local matches appear while provider searches run. Enter should open the linked workspace or the task detail. Cmd/Ctrl+Enter should open the existing composer with that task attached. Hidden CDP checks exercised Jira keyword results, Enter detail opening, and real Meta+Enter composer opening on macOS with fixtures. Live-provider, Linux, Windows, and remote-host end-to-end checks were not performed.

Review

Self-reviewed query lifetime, keyboard/platform handling, source ownership, account/site collisions, folder workspaces, and bounded searches. Separate request, activation, and selection-lifecycle review found no remaining code defect after the SSH correction. Exact-head node/renderer typechecks pass. GitHub CI remains pending. Merge risk: Low, with asynchronous selection and owner identity covered by scoped regressions and the existing rendered flow. This change adapts existing Orca flows and copies no external contributor PR or upstream implementation.

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

No IPC or remote wire change. Existing runtime APIs preserve compatibility with older hosts. Merge risk is the added asynchronous selection path; local selection and existing activation actions are retained, with request-lifetime and identity regressions covering the new behavior.

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)

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3561775a-bd11-4590-a554-698adf983a81
📥 Commits

Reviewing files that changed from the base of the PR and between 294927e and 145fb4c.

📒 Files selected for processing: 23
  • src/renderer/src/components/WorktreeJumpPalette.task-search.test.tsx
  • src/renderer/src/components/cmd-j/task-search-activation.test.ts
  • src/renderer/src/components/cmd-j/task-search-activation.ts
  • src/renderer/src/components/cmd-j/task-search-requests.test.ts
  • src/renderer/src/components/cmd-j/task-search-requests.ts
  • src/renderer/src/components/cmd-j/task-search-results.ts
  • src/renderer/src/components/cmd-j/task-search.test-fixture.ts
  • src/renderer/src/components/use-worktree-jump-palette-controller.ts
  • src/renderer/src/components/use-worktree-jump-palette-list-entries.ts
  • src/renderer/src/components/use-worktree-jump-palette-selection-actions.ts
  • src/renderer/src/components/use-worktree-jump-palette-selection-lifecycle.ts
  • src/renderer/src/components/use-worktree-jump-palette-task-search.test.tsx
  • src/renderer/src/components/use-worktree-jump-palette-task-search.ts
  • src/renderer/src/components/worktree-jump-palette-empty-state.ts
  • src/renderer/src/components/worktree-jump-palette-entry.tsx
  • src/renderer/src/components/worktree-jump-palette-model.ts
  • src/renderer/src/components/worktree-jump-palette-surface.tsx
  • src/renderer/src/components/worktree-jump-palette-task-row.tsx
  • src/renderer/src/components/worktree-jump-palette-task-search-status.tsx
  • src/renderer/src/runtime/runtime-jira-client.test.ts
  • src/renderer/src/runtime/runtime-jira-client.ts
  • src/renderer/src/runtime/runtime-linear-client.test.ts
  • src/renderer/src/runtime/runtime-linear-client.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The change adds keyword task search to the worktree jump palette. It builds requests for connected Linear, Jira, GitHub, and GitLab sources, then displays merged results with loading and failure status. Selecting a result can open a matching workspace or task page. A keyboard shortcut can start workspace creation from a selected task. Runtime-target Jira and Linear entry points support searches scoped to the selected runtime.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 145fb

This adds keyword task search to the Cmd+J palette, with local results shown immediately. No merge-blocking issue was identified from the supplied evidence; the remaining step is the final CI run.

Pre-merge checks: Passed 6 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 30 functions across 23 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 6 passed
Check name Status Explanation
Linked Issues check Passed The pull request links and fixes issue #24154, and the described implementation directly addresses that issue's requested Cmd+J task search behavior.
Out of Scope Changes check Passed The changes are focused on Cmd+J task search, task activation, runtime client routing, UI integration, and related tests. No unrelated production changes are evident.
Linked Issues check Passed Issue #24154 requires plain-text task search from Cmd+J, a separate Tasks group, debounced remote searches that do not delay local results, and task activation or workspace creation. The PR implements…
Out of Scope Changes check Passed The changed production files implement the Cmd+J task search, result rendering, selection lifecycle, task activation, and provider target routing required by #24154. The runtime client changes preserv…
Description check Passed The description is complete and relevant. It includes the user-facing summary, implementation details, rationale, linked issue, visual proof, testing coverage, limitations, review notes, and checklist…
Title check Passed The title clearly and concisely describes the main change: keyword search for connected tasks from Cmd+J.
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 3bf9c85 into main Oct 14, 2026
12 checks passed
SimonSQLML added a commit to SimonSQLML/orca that referenced this pull request Oct 20, 2026
…anges

The full sharded E2E run on main fails these specs on every run because
they still expect the product's old behavior:

- Cmd+J placeholder now names tasks (stablyai#28617)
- toaster base z-index is 47, above the floating workspace (stablyai#28068)
- the profile-delay warning has the app toaster's close button (stablyai#28900)
- the worktree meta dialog is titled "Workspace details"
- an editable CSV renders as an ARIA grid, not a table
- a host whose search is off sends the vault box to title-only (stablyai#22453)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]: Search tasks (Linear / GitHub / Jira issues) by keyword from Cmd+J

1 participant