Skip to content

feat(tasks): add Jira as a mobile task provider - #13126

Closed
tisohjung wants to merge 35 commits into
stablyai:mainfrom
tisohjung:feat/mobile-jira-task-provider
Closed

tisohjung wants to merge 35 commits into
stablyai:mainfrom
tisohjung:feat/mobile-jira-task-provider

Conversation

@tisohjung

@tisohjung tisohjung commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Your phone can already browse GitHub, GitLab, and Linear tasks. It could not browse Jira, even though the desktop app has had Jira for a while. Now it can — list your issues, search them, open one, and start a workspace from it.

What Changed

  • Mobile browses Jira from the Tasks screen: issue list, JQL search, the assigned/reported/all/done preset chip, a site chip when more than one site is connected, and issue detail with comments.
  • Workspaces can be created from a Jira issue.
  • The workspace composer gains a Jira tab, mirroring desktop's Smart · GitHub · Linear · Jira · GitLab · Branch · Name order.
  • mobile/src/tasks/mobile-task-providers.ts is deleted in favour of src/shared/task-providers.ts.
  • Six read-only jira.* methods are added to MOBILE_RPC_METHOD_ALLOWLIST.

Connecting a Jira site still happens on desktop; mobile only reads.

Why

Mobile carried its own copy of the task-provider helpers, and the copy had drifted: it declared only github | gitlab | linear, and its availability filter ended in a bare return availability.linearConnected, so any provider added later would silently hide behind a Linear connection. Deleting the fork fixes the drift and brings Jira along with it.

Two decisions worth surfacing:

  • Jira links ride linkedWorkItem. worktree.create has no flat linkedJiraIssue field the way it has linkedLinearIssue, so the durable payload is used, built from the shared buildJiraWorkspaceSource so naming matches desktop exactly.
  • The allowlist is read-only. Mobile-scoped device tokens are checked against MOBILE_RPC_METHOD_ALLOWLIST before dispatch. Only the six methods mobile calls are added; connect, disconnect, and every write method stay unauthorized because sites are set up on desktop.

Linked Issue

Addresses the provider half of #10950. Deliberately not using Fixes: that issue also covers the task-query helpers, which #11121 handles, so this PR alone should not close it. Also #14512

Visual Proof

Jira list screen The task source picker, with Jira alongside GitHub and Linear. Jira issues in the Tasks screen — My Issues preset, JQL search box, status pills.
Screenshot_2026-08-08-10-41-27-417_com stably orca mobile Screenshot_2026-08-08-11-31-30-749_com stably orca mobile Screenshot_2026-08-08-11-34-41-935_com stably orca mobile (1)

No BEFORE shots: Jira did not exist anywhere in the mobile app before this PR, so the prior state is simply the absence of every surface above.

Testing

Verified on a physical Android device paired to a desktop build running this branch (macOS host): browsing assigned and reported issues, switching between the My Issues and Reported presets, selecting Jira in the task source picker, and the disconnected prompt when the desktop refuses jira.status. The screenshots above are from that session.

Not exercised by hand yet: creating a workspace from a Jira issue, the composer's Jira tab, pasted-URL resolution, and the multi-site chip (only one Jira site was connected). Those paths are covered by the unit tests below, but a reviewer with a second Jira site would be testing ground this has not touched.

pnpm test reports failures in 16 files locally. Re-running those files serially leaves 15 passing, and the remaining one (config/scripts/check-root-directory-entries.test.mjs) fails identically on a clean tree with this branch stashed. No Jira or mobile test fails in either run.

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

New tests cover the connection parser (an unreadable jira.status maps to disconnected rather than throwing; a stale site selection falls back to the active site), pasted-URL resolution (a foreign-site link resolves to nothing and costs no round trip), the workspace-create payload (Jira links through linkedWorkItem and never emits a stray linkedLinearIssue), and composer tab availability. mobile-rpc-allowlist.test.ts already covers the allowlist.

AI Disclosure

Written with Claude Opus 5 (via Claude Code). Human Review & QA.

Review

Security. Mobile gets read-only Jira access plus site selection. Tokens never leave the desktop — the client only ever sees issue payloads, and no credential-bearing method is authorized. Pasted-URL resolution matches the connected site before requesting an issue, so a crafted link cannot surface an issue from a site under another origin. Worth a reviewer's eye: jira.selectSite mutates shared host-side state, so a phone can change the desktop's selected Jira site. That matches the already-authorized linear.selectWorkspace, but it is a deliberate widening.

Cross-platform. No new keyboard shortcuts, accelerators, shell invocations, or path construction. The mobile changes are React Native and run identically on iOS and Android; the one desktop-side change is a string added to an allowlist array.

Remote SSH / backwards compatibility. No RPC params, stream frames, or published content change, so there is no wire-compatibility surface. A host predating these Jira RPCs answers jira.status with an error, which the client reports as an error rather than silently rendering "not connected"; the Tasks screen still works for every other provider against such a host.

Mobile. Follows docs/STYLEGUIDE.md and existing mobile tokens. The Jira glyph is the same flattened mark the desktop JiraIcon uses. The preset chip dims rather than disappearing when a JQL query overrides it, so the toolbar does not reflow.

Reading the diff. Most of the changed lines are recorded RPC goldens, and almost none of that is worth reading. The recorder stores values in a content-addressed pool where each entry carries an ordinal, so inserting one jira.status step into the hydration and workspace-context scenarios renumbers everything after it. In matrix-settings.task-hydration-linear.status-1.json, for example, 856 lines change and 8 of them mention Jira; the rest is renumbering. The goldens cannot be trimmed by hand — the suites compare them byte for byte, so a hand-edited file is regenerated on the next record run. Product code is about 2,100 lines of the diff.

Performance. Jira reads are capped at 50 items and only run for the active tab. The composer tab is excluded from the Smart-mode fan-out because the shared row builder does not render Jira rows there, so it would pay for a round trip nothing displays. A pasted Jira URL short-circuits the fan-out entirely.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • 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)

Author

Mobile carried its own copy of the task-provider helpers in
`mobile/src/tasks/mobile-task-providers.ts`, and the copy had drifted from
`src/shared/task-providers.ts`: it declared only github/gitlab/linear, and its
availability filter ended in a bare `return availability.linearConnected`, so any
provider added later would silently hide behind a Linear connection. Mobile
already imports `src/shared` elsewhere, so the fork bought nothing.

Delete it and import the shared module. Adopting the shared `TaskProvider` union
pulls `jira` in, so `TaskProviderLogo` and the home screen's provider labels grow
a Jira case; nothing yet selects it.

While the Tasks screen was open, split its option lists and pure helpers into
`mobile/src/tasks` modules so the 15k-line component keeps shrinking rather than
growing.

Refs stablyai#10950
The runtime has exposed jira.* RPCs for a while (jira.ts), but mobile had no
client for them. Add the pieces every Jira surface needs, with no UI wired up yet:

- `jira-mobile-connection` reads jira.status. A host that predates the Jira RPCs
  answers with an error, so an unreadable status maps to "disconnected" rather
  than throwing, and a saved site selection that no longer exists falls back to
  the active site.
- `jira-mobile-issue-read` parses issue lists and comments defensively.
- `mobile-jira-task-source` wraps the list/search and detail round trips.
- `jira-mobile-url-lookup` resolves a pasted browse URL, but only through a site
  the user has actually connected — a link to a foreign site must never be
  answered with a same-keyed issue from the user's own site.
- `mobile-jira-issue-filters` + the Jira picker options carry the preset labels.

Refs stablyai#10950
Wire Jira into the Tasks surface as a real source: a Jira task item, the
list/search fetch, the assigned/reported/all/done preset chip, a site chip when
more than one site is connected, and issue detail with comments.

The search box takes raw JQL, matching desktop — a typed query replaces the
preset entirely, so the preset chip dims instead of implying both apply.

Connecting Jira needs a site URL, email, and API token, which is a form that
belongs on desktop; the disconnected state points there rather than half-hosting
it on the phone. A host without the Jira RPCs lands in that same state.

Refs stablyai#10950
`worktree.create` has no flat linkedJiraIssue field the way it has
linkedLinearIssue — Jira links ride the durable `linkedWorkItem` payload, same as
the desktop composer. Build that payload from the shared
`buildJiraWorkspaceSource` so naming and the link stay identical across clients.

`MobileLinkedWorkItem` no longer excludes 'jira'; the exclusion was what kept the
composer from ever carrying a Jira selection.

Refs stablyai#10950
Mirrors desktop's Smart · GitHub · Linear · Jira · GitLab · Branch · Name order.
Jira issues are not repo-scoped, so the tab needs no selected repo, and unlike
the Tasks search box the composer field is free text that
`buildJiraIssueSearchJql` turns into a key or text match.

Pasting a Jira URL short-circuits the fan-out: the shared row builder already
collapses a URL intent to the single resolved issue, so spending round trips on
the other providers would only produce rows nothing renders.

The tab gates on an actually-connected site rather than on
`filterAvailableTaskProviders`, which reports Jira as always available so the
Tasks surface can still offer setup.

Two nearby refactors kept the files inside their max-lines budgets: the
GitHub/GitLab handlers now share one hosted-item path, and the PR/MR base
argument plumbing moved into `composer-source-base-resolve`.

Refs stablyai#10950
`jira.status` was only read once, inside the Tasks hydration effect, whose deps
are the client and connection state. Connecting Jira on desktop changes neither,
so the phone kept the "disconnected" snapshot it took at mount and stayed on the
connect prompt until the app was restarted.

The prompt told users to pull to refresh, which could not work twice over: it
renders outside the FlatList so there is no RefreshControl, and the header refresh
only calls loadTasks, which early-returns while the cached status says
disconnected.

Re-read the status when the Jira tab is selected and from the header refresh, and
give the prompt an explicit "Check again" action. Extracting the prompt into its
own component keeps tasks.tsx inside its max-lines budget.
Mobile-scoped device tokens are checked against MOBILE_RPC_METHOD_ALLOWLIST before
dispatch, and it carried no jira.* entries. Every Jira call from a paired phone came
back `forbidden`, so the mobile Tasks screen read jira.status as "no Jira connected"
and showed the desktop setup prompt even with a site connected and credentials on
disk.

Add only what mobile actually calls. Connect, disconnect, and every write method
stay unauthorized because sites are set up on desktop.

mobile-rpc-allowlist.test.ts already covered this by scanning mobile sources for
sendRequest literals; it named all six missing methods once run.
…sconnected

The status read mapped any non-ok response to "no Jira connected", which is what
let a host refusing jira.* present itself as a setup prompt the user could never
satisfy — the real error message was thrown away.

Move the read into readJiraConnection() so it throws on a failed response, and let
the Jira tab switch and the Check again action report it. A genuinely disconnected
host still gets the prompt; a broken one now says why.
@coderabbitai

coderabbitai Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 48e9a469-cdaf-4905-bbf1-e4944caf141e

📥 Commits

Reviewing files that changed from the base of the PR and between 8fa1b3c and 6cdd5ee.

📒 Files selected for processing (42)
  • mobile/app/h/[hostId]/tasks.tsx
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/JiraDetailMeta.tsx
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/NewWorktreeModalDrawers.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/components/use-new-workspace-runtime-context.ts
  • mobile/src/home/MobileHomeListFooter.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/MobileHomeTasksCard.tsx
  • mobile/src/home/mobile-home-host-requests.ts
  • mobile/src/home/use-mobile-home-data.ts
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/composer-source-base-resolve.ts
  • mobile/src/tasks/jira-mobile-connection.test.ts
  • mobile/src/tasks/jira-mobile-connection.ts
  • mobile/src/tasks/jira-mobile-issue-read.test.ts
  • mobile/src/tasks/jira-mobile-issue-read.ts
  • mobile/src/tasks/jira-mobile-url-lookup.test.ts
  • mobile/src/tasks/jira-mobile-url-lookup.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/mobile-github-work-item-labels.ts
  • mobile/src/tasks/mobile-jira-issue-filters.ts
  • mobile/src/tasks/mobile-jira-task-source.ts
  • mobile/src/tasks/mobile-linear-issue-grouping.ts
  • mobile/src/tasks/mobile-linear-issue-priority.ts
  • mobile/src/tasks/mobile-smart-source-modes.test.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/mobile-task-navigation.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • mobile/src/tasks/mobile-task-view-options.tsx
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/src/tasks/use-open-mobile-tasks.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/workspace-create-params.ts
  • src/main/runtime/runtime-rpc.ts
💤 Files with no reviewable changes (1)
  • mobile/src/tasks/mobile-task-providers.ts
🚧 Files skipped from review as they are similar to previous changes (33)
  • mobile/src/tasks/jira-mobile-connection.test.ts
  • mobile/src/tasks/mobile-jira-issue-filters.ts
  • mobile/src/tasks/jira-mobile-url-lookup.test.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/components/JiraDetailMeta.tsx
  • mobile/src/tasks/mobile-smart-source-modes.test.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/workspace-create-params.ts
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/tasks/mobile-task-view-options.tsx
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/composer-source-base-resolve.ts
  • mobile/src/tasks/mobile-github-work-item-labels.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/jira-mobile-issue-read.test.ts
  • mobile/src/tasks/jira-mobile-url-lookup.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/src/tasks/mobile-linear-issue-grouping.ts
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/jira-mobile-connection.ts
  • mobile/src/tasks/mobile-linear-issue-priority.ts
  • mobile/src/components/TaskProviderLogo.tsx
  • src/main/runtime/runtime-rpc.ts
  • mobile/src/tasks/mobile-task-navigation.ts
  • mobile/app/h/[hostId]/tasks.tsx
  • mobile/src/tasks/mobile-jira-task-source.ts
  • mobile/src/tasks/use-open-mobile-tasks.ts
  • mobile/src/tasks/jira-mobile-issue-read.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

Adds Jira support to mobile task browsing, smart-source search, issue details, comments, site selection, filtering, persistence, and workspace creation. Jira connection state is read from jira.status and refreshed during hydration, tab changes, and toolbar refresh. Smart-source search supports JQL and pasted Jira URLs. Jira issues can be linked to workspaces with durable linked-item payloads. Shared task-provider and task-view modules replace obsolete mobile-local declarations.

Merge Risk: 🟡 Moderate · up to 6cdd5

This PR adds mobile Jira browsing, site selection, and workspace creation, but the current branch also retains committed development state that can expose local details, affect other checkouts, and make validation or usage records misleading. Jira site selection may also influence shared desktop context. Merge readiness is moderate until these repository-state concerns are isolated or removed and the site-selection ownership is explicitly bounded or accepted.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 32.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 58 functions across 41 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely identifies the main change: adding Jira as a mobile task provider.
Description check ✅ Passed The description covers the change, rationale, linked issues, testing, security, compatibility, performance, AI disclosure, and visual proof. It notes that no before screenshots are included, although …
Full details: Docstring Coverage

Explanation

Docstring coverage is 32.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 58 functions across 41 files. (1 skipped: 1 too large.)

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
mobile/app/h/[hostId]/tasks.tsx (1)

8566-8575: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

emptyLabel shows "No Linear tasks" for an empty Jira list.

The emptyLabel ternary handles provider === 'github' and provider === 'gitlab' explicitly, then falls through to 'No Linear tasks' for everything else, including provider === 'jira'. The sibling providerLabel ternary a few hundred lines earlier was correctly extended with a 'jira' branch; emptyLabel was not.

A user viewing Jira Tasks with zero results and an empty query sees "No Linear tasks" instead of a Jira-specific message.

🐛 Proposed fix for the empty-state label
   const emptyLabel =
     connState !== 'connected'
       ? 'Connect to a host to load tasks'
       : query
         ? 'No matching tasks'
         : provider === 'github'
           ? 'No GitHub tasks'
           : provider === 'gitlab'
             ? 'No GitLab tasks'
+            : provider === 'jira'
+              ? 'No Jira tasks'
             : 'No Linear tasks'

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9a396abf-b101-41a7-b1ed-c2b60dbcac90

📥 Commits

Reviewing files that changed from the base of the PR and between c3bf22b and 2fbc6c9.

📒 Files selected for processing (35)
  • mobile/app/h/[hostId]/tasks.tsx
  • mobile/app/index.tsx
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/composer-source-base-resolve.ts
  • mobile/src/tasks/jira-mobile-connection.test.ts
  • mobile/src/tasks/jira-mobile-connection.ts
  • mobile/src/tasks/jira-mobile-issue-read.test.ts
  • mobile/src/tasks/jira-mobile-issue-read.ts
  • mobile/src/tasks/jira-mobile-url-lookup.test.ts
  • mobile/src/tasks/jira-mobile-url-lookup.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/mobile-github-work-item-labels.ts
  • mobile/src/tasks/mobile-jira-issue-filters.ts
  • mobile/src/tasks/mobile-jira-task-source.ts
  • mobile/src/tasks/mobile-linear-issue-grouping.ts
  • mobile/src/tasks/mobile-linear-issue-priority.ts
  • mobile/src/tasks/mobile-smart-source-modes.test.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/mobile-task-navigation.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • mobile/src/tasks/mobile-task-view-options.tsx
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/src/tasks/use-open-mobile-tasks.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/workspace-create-params.ts
  • src/main/runtime/runtime-rpc.ts
💤 Files with no reviewable changes (1)
  • mobile/src/tasks/mobile-task-providers.ts

Comment thread mobile/app/h/[hostId]/tasks.tsx Resolved
@AmethystLiang

Copy link
Copy Markdown
Contributor

Thanks for the PR 👍

The Jira detail payload carried assignee, priority, and project but the meta grid
had no Jira branch, so the fields were fetched on every issue open and thrown
away. The empty state fell through to "No Linear tasks" for Jira, and the
composer's "Connect the repository" notice showed on the Jira tab even though
Jira search needs no repo.

Provider labels and empty-state labels move to Record<TaskProvider, string> maps,
so a provider added later has to be given text instead of silently inheriting
Linear's.

A pasted Jira URL now also resolves from Smart mode without a connected repo,
which is the one case the intent short-circuit was already written for.
@tisohjung

Copy link
Copy Markdown
Contributor Author

Addressed the review in 169c0c9. Replying here for the out-of-diff emptyLabel finding, which has no thread to answer.

emptyLabel showed "No Linear tasks" for Jira — correct, and it was the same bare-fallthrough shape this PR's first commit set out to delete from mobile-task-providers.ts. Rather than append another ternary arm, provider labels and empty-state labels are now Record<TaskProvider, string> maps in mobile-task-view-options.tsx:

export const PROVIDER_EMPTY_LABELS: Record<TaskProvider, string> = {
  github: 'No GitHub tasks',
  gitlab: 'No GitLab tasks',
  linear: 'No Linear tasks',
  jira: 'No Jira tasks'
}

A provider added later now fails to compile until it is given text, instead of silently inheriting Linear's. providerLabel got the same treatment.

The three inline findings are answered in their threads: the detail-metadata and Smart-mode ones are fixed; the getGitHubMergeLabel ordering is pre-existing GitHub code this PR only relocated, so I've proposed it as a follow-up rather than smuggling a GitHub behavior change into a Jira PR.

…-provider

# Conflicts:
#	mobile/app/h/[hostId]/tasks.tsx
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

1 similar comment
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: faba9be6-1278-4d9e-acbf-e9ba9e730147

📥 Commits

Reviewing files that changed from the base of the PR and between a663f1b and 7b36e59d738e318eb252a4f582847f3f0d356440.

📒 Files selected for processing (53)
  • .bkit/audit/2026-08-07.jsonl
  • .bkit/audit/2026-08-08.jsonl
  • .bkit/audit/2026-08-09.jsonl
  • .bkit/audit/2026-08-10.jsonl
  • .bkit/audit/2026-08-11.jsonl
  • .bkit/audit/2026-08-14.jsonl
  • .bkit/audit/2026-08-15.jsonl
  • .bkit/bkit-aside/audit/2026-08-07.jsonl
  • .bkit/bkit-aside/runtime/first-run-seen.json
  • .bkit/bkit-aside/runtime/hook-reachability.json
  • .bkit/bkit-aside/runtime/otel-env.json
  • .bkit/bkit-aside/runtime/session-ctx-fp.json
  • .bkit/bkit-aside/runtime/token-ledger.ndjson
  • .bkit/bkit-aside/state/pdca-status.json
  • .bkit/runtime/control-state.json
  • .bkit/runtime/hook-reachability.json
  • .bkit/runtime/token-ledger.ndjson
  • mobile/app/h/[hostId]/tasks.tsx
  • mobile/app/index.tsx
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/JiraDetailMeta.tsx
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/composer-source-base-resolve.ts
  • mobile/src/tasks/jira-mobile-connection.test.ts
  • mobile/src/tasks/jira-mobile-connection.ts
  • mobile/src/tasks/jira-mobile-issue-read.test.ts
  • mobile/src/tasks/jira-mobile-issue-read.ts
  • mobile/src/tasks/jira-mobile-url-lookup.test.ts
  • mobile/src/tasks/jira-mobile-url-lookup.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/mobile-github-work-item-labels.ts
  • mobile/src/tasks/mobile-jira-issue-filters.ts
  • mobile/src/tasks/mobile-jira-task-source.ts
  • mobile/src/tasks/mobile-linear-issue-grouping.ts
  • mobile/src/tasks/mobile-linear-issue-priority.ts
  • mobile/src/tasks/mobile-smart-source-modes.test.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/mobile-task-navigation.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • mobile/src/tasks/mobile-task-view-options.tsx
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/src/tasks/use-open-mobile-tasks.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/workspace-create-params.ts
  • src/main/runtime/runtime-rpc.ts
💤 Files with no reviewable changes (1)
  • mobile/src/tasks/mobile-task-providers.ts
🚧 Files skipped from review as they are similar to previous changes (34)
  • mobile/src/tasks/use-open-mobile-tasks.ts
  • mobile/src/tasks/mobile-linear-issue-priority.ts
  • mobile/app/index.tsx
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/mobile-smart-source-modes.test.ts
  • mobile/src/tasks/mobile-task-navigation.ts
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/jira-mobile-issue-read.test.ts
  • src/main/runtime/runtime-rpc.ts
  • mobile/src/tasks/jira-mobile-connection.test.ts
  • mobile/src/tasks/mobile-jira-issue-filters.ts
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/tasks/jira-mobile-connection.ts
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/mobile-linear-issue-grouping.ts
  • mobile/src/tasks/mobile-task-view-options.tsx
  • mobile/src/tasks/workspace-create-params.ts
  • mobile/src/tasks/jira-mobile-url-lookup.test.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/jira-mobile-url-lookup.ts
  • mobile/src/tasks/jira-mobile-issue-read.ts
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/composer-source-base-resolve.ts
  • mobile/src/tasks/mobile-github-work-item-labels.ts
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/tasks/mobile-jira-task-source.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/app/h/[hostId]/tasks.tsx

Comment thread .bkit/audit/2026-08-07.jsonl Resolved
Comment thread .bkit/audit/2026-08-07.jsonl Resolved
Comment thread .bkit/audit/2026-08-11.jsonl Resolved
Comment thread .bkit/runtime/control-state.json Resolved
…-provider

# Conflicts:
#	mobile/src/components/NewWorktreeModal.tsx
#	mobile/src/tasks/composer-source-base-resolve.ts
#	mobile/src/tasks/workspace-create-params.ts
…-provider

# Conflicts:
#	mobile/app/index.tsx
#	mobile/src/components/NewWorktreeModal.tsx
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@tisohjung

Copy link
Copy Markdown
Contributor Author

Hi, Seems like conflicts are coming up every few days.
Should I resolve conflicts or just leave it as it is?

…-provider

# Conflicts:
#	mobile/app/h/[hostId]/tasks.tsx
#	mobile/src/tasks/use-smart-workspace-source.ts
#	mobile/src/tasks/workspace-create-params.ts
#	src/main/runtime/runtime-rpc.ts
@VincentMenard76

Copy link
Copy Markdown
Contributor

Jira is still missing as a mobile task source on current main (mobile/src/tasks/mobile-task-providers.ts is still github | gitlab | linear). This PR is still the work for that.

The branch still conflicts with main. If you'd rather not keep resolving those, I can open a follow-up that rebases this onto current main and credits this PR. I won't open that unless you want it.

@tisohjung

Copy link
Copy Markdown
Contributor Author

The branch still conflicts with main. If you'd rather not keep resolving those, I can open a follow-up that rebases this onto current main and credits this PR. I won't open that unless you want it.

Thx. I guess I can rebase, I just wanted to make sure someone is watching the old PRs

…-provider

Main moved 1579 commits ahead and restructured three things this branch
touches, so the merge is more than conflict markers:

- Every mobile RPC send moved onto typed RpcOperations, with a ratchet that
  fails on any new raw client.sendRequest. Jira's seven call sites migrate to
  jira-reply-schema.ts + mobile-jira-operations.ts; the schemas replace the
  hand reader in jira-mobile-issue-read.ts and three `as JiraIssue` casts.
- use-mobile-tasks-runtime-hydration.tsx crossed the 379-line cap, so the
  pure resume-to-controls fold moves to mobile-tasks-hydrated-view-state.ts.
- The hydration and workspace-context scenarios now answer jira.status. They
  did not, so the Promise.all never settled and the goldens froze a
  half-hydrated screen; the task-hydration-envelope mutant survived on it.
  Two new reply-matrix goldens follow, registered in the bridged-parity pins
  (result-absent-settlement 341 -> 343, corpus 787 -> 789).

Recording adapter fixtures are strict about undeclared members, so the Tasks
fixtures gain jiraConnection/jiraFilter/refreshJiraConnection; without them
the new Jira effects aborted the mount before Linear could send listTeams.

Parity baselines re-captured: 359 hooks, 429 statements, 196 declarations,
3317 semantic lines, 35766 render tokens.
…-provider

Seven conflicts, all in the bridged-parity census files, and all of them a
counting collision rather than a code one: main shrank the page-closure
membership (C1 22 families/103 goldens -> 20/94) while this branch had bumped
the same numbers for the two jira.status matrix goldens.

Took main's version of all seven and re-applied only the real content — the
pin entries — then derived every count from the suite rather than arithmetic.
The workspace-context pin goes in C1 and C5 both: C5 keeps its own copy of
that family and the cross-domain agreement test is what catches doing only one.

The corpus baseline in divergence-classes.ts needed no change; main moved
closure membership, not the corpus, so 789 with these two still holds — the
through-bridge run confirms it at 795 passed.

Also re-recorded the two jira goldens. Main bumped the scenarios baseline and
re-recorded every sibling, but these two exist only here so they kept the old
value and failed the header compare.
…-provider

29 conflicts, all generated artifacts rather than logic: 28 golden provenance
headers (baseline / lockfileSha256 / recorderSha256 / adapterSha256) that main
re-recorded, and the parity test's hash baselines.

Took main's version of all 29 and re-derived, rather than hand-merging — a
hand-edited hash pins nothing. Goldens re-recorded from the current tree, which
is what folds in this branch's task-list adapter fixture; parity baselines
re-captured by measurement.

MAIN_REBASED_DECLARATIONS moves to a genuinely new value: main changed
declarations under this branch, so it is not only the Jira delta.

Verified read-only after recording: 34 files, 1882 passed.
…-provider

Four conflicts, all bookkeeping: the parity baselines, the corpus counts in
divergence-classes, and the prose counts in the through-bridge test.

divergence-classes conflicted because both sides grew the corpus — main added
three goldens of its own (787 -> 790) while this branch had added two for Jira.
Rather than adding the figures, took main's and let the through-bridge run
report it: result-absent-settlement 343 -> 345, corpus 790 -> 792. Main's
rewrite of that block dropped the sentence explaining the Jira +2, so it is
restored; without it the next reader sees two unexplained partitions.

Parity baselines re-captured. Only the style hash moved beyond the Jira delta —
main changed tasks-family styles. GitHubPrFileDiff stays byte-identical, which
is the evidence Jira still touches nothing outside the Tasks surface.

Goldens re-recorded for the provenance bump. Verified read-only afterwards:
34 files, 1888 passed.
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds Jira as a task provider option in the mobile app.

The PR appears safe to merge; no outstanding previous finding or actionable new issue was identified.

Summary

This PR adds Jira browsing, search, issue details, and workspace creation to mobile, while replacing the mobile task-provider fork with shared provider helpers.

  • Adds Jira to the Tasks screen and workspace composer.
  • Authorizes the Jira RPC methods mobile uses and updates tests and recordings.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Mobile[Mobile Tasks and composer] --> RPC[Paired-host RPC]
  RPC --> Jira[Jira issue and site reads]
  Mobile --> Create[Workspace creation]
  Jira --> Create
Loading

Reviews (6) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..."

The list stopped updating because loadTasks read jiraConnection and jiraFilter
without depending on them, so connecting Jira on desktop left an empty list and
switching preset or site kept the old results. Linear's equivalents were already
listed; Jira's are now too.

The detail view refetched forever: the effect depends on actionItem and the Jira
branch replaced it with a fresh object on every fetch. It now swaps only when
the fetch actually added something, mirroring the guard the Linear branch has.

Selecting "All sites" never reached the host. The comment there claimed
selectSite would reject 'all' — it does not: it skips the membership check for
'all', stores it as selectedSiteId and keeps activeSiteId. The write was being
skipped, so the next status read restored the host's previous site. The write
now goes out and the comment says what the host actually does.

Creating a workspace from a Jira issue silently used the first repository.
Jira is as repo-unscoped as Linear, so both repo-picker gates and the picker's
own state now admit it.

Jira rows said "Linear ticket" and "Open in Linear" because both label helpers
fall through to Linear for any other provider. They name Jira now.

Parity baselines re-captured and goldens re-recorded for the changed call shape;
verified read-only afterwards at 34 files, 1888 passed.
The guard added for the refetch loop compared description, labels and assignee
only. The drawer reads title and status straight off the task, so an issue whose
title or status changed after the list loaded kept the old values — the loop fix
traded one defect for its opposite.

Both fields join the comparison. The guard still returns the current task when
nothing moved, so the effect does not re-arm.
…-provider

Three modify/delete conflicts, and the deletions are the right side to take.
Main's stablyai#23815 removed 101 tests that "assert source text instead of behavior" —
copied inventories, export lists, exact source greps. The Tasks parity test and
the C2/C3 closure censuses are that category, and re-capturing their hashes is
what every merge on this branch has been spending its time on.

Accepted all three deletions rather than restoring the modified copies.

What survives still carries the Jira work: main kept the C1 and C5 closure tests
and every pin source file, so the three jira.status pins stay load-bearing and
bridged-parity passes at 65 with no bookkeeping this round.
…-provider

One conflict, in product code this time: mobile-task-navigation.ts.

Main slimmed the file to a single route helper, so its import list is the one
that matches the body — this branch's longer list was left over from the larger
version. But main still imports TaskProvider from mobile-task-providers, and
this branch deleted that module in favour of src/shared/task-providers. Taking
main's line verbatim would have left the only dangling reference in the tree, so
the resolution keeps main's slimmed import and this branch's shared path.

Checked that nothing else still points at the deleted module: main had eight
other importers, and all of them arrived already repointed.

The two Jira goldens needed re-recording again — main bumped the scenarios
baseline and re-recorded every sibling, but these exist only here. Verified
read-only afterwards: 31 files, 1864 passed.
…-provider

51 conflicts: 48 golden provenance headers plus the corpus counts in
divergence-classes and the through-bridge prose. Took main's side throughout and
re-derived, as with every round of this shape.

Main bumped the golden format from version 5 to 6, so the re-record was doing
more than a provenance refresh this time; the two Jira goldens came along with
it. pilot-scenarios.json did not conflict and kept all ten jira.status steps, so
the recorded bodies regenerate with the Jira partitions intact.

Corpus counts from the run rather than arithmetic: result-absent-settlement
343 -> 345, corpus 794 -> 796. Main's rewrite dropped the sentence explaining the
Jira +2 again, so it is restored.

Verified read-only: 29 files, 1844 passed. The one remaining failure is
recorded-request-params, a test main added in stablyai#23732 that dies on zod's missing
`compile` — the same stale-dependency class as the rest, not this branch.
…-provider

Three conflicts, the usual corpus bookkeeping. Took main's side and read the
numbers off the run rather than adding them: result-absent-settlement 342 -> 344,
corpus 793 -> 795. No golden re-record needed this round — no provenance or
format-version drift. Main's rewrite dropped the Jira +2 sentence again, restored.

Typecheck is now completely clean with no filtering. The long-standing
"stale dependency" errors were never stale: corepack 0.34.0 looks for
bin/pnpm.cjs while pnpm 12 ships bin/pnpm.mjs, so pnpm had been failing outright
and nothing main added was ever installed. Installing them fixed the typecheck
noise and most of the failing suites.

One failure remains, in mobile-agent-launch-architecture: durable receipt dedup
across a reopened store. It is not this branch's. The only src/main change here
is six jira.* strings in the mobile allowlist, and the allowlist test in that
same file passes; the two failures exercise the record store.
…lders

Main's stablyai#22900 replaced buildJiraIssueSearchJql with a gate
(getJiraIssueSearchQuery, which returns the trimmed query) and two builders in
jira-search-input-jql. The merge carried no conflict here, so only the typecheck
caught it — and swapping names alone would have sent plain text where the host
expects JQL.

The composer now gates on the query, then builds key JQL first and falls back to
text match, which is what the old single function did and what desktop does.

Compared old against new across the paths: issue keys, plain text and
empty/whitespace are identical. Three inputs differ, and all three are main's
fixes rather than regressions — quotes and parens are Lucene syntax the old
builder pasted into JQL, and an uppercase AND leaked through as an operator.
…-provider

# Conflicts:
#	mobile/src/tasks/use-mobile-composer-source.ts
#	src/main/runtime/runtime-rpc/runtime-rpc-mobile-method-allowlist.ts
@nwparker

Copy link
Copy Markdown
Contributor

Thank you, @tisohjung, for the Jira mobile implementation and for keeping it updated. This work has been adapted and merged in #28616, which credits your contribution in both the description and the commit trailer.

Main now includes Jira browsing, search, issue details/comments, and linked-workspace creation on mobile, using the shared task-provider definitions. The merged version also keeps the phone's site selection separate from the desktop and handles older hosts explicitly.

Closing this PR as superseded by that merged implementation. It is not included in the current v1.4.225 desktop release or the latest published Android build: it will ship in the next releases containing these changes, including the next mobile app release. Both the phone app and its paired host need the updated support.

@nwparker nwparker closed this Oct 14, 2026
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.

5 participants