Skip to content

feat(linear): add MCP-style save issue - #9670

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/linear-save-issue
Jul 21, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/linear-save-issue

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add orca linear save-issue, matching Linear MCP create-or-update semantics
  • support title, description, state, assignee, priority, estimate, due date, labels, project, and parent
  • support explicit null clears and full label replacement
  • preserve write confirmation, stable errors, current-ticket targeting, multi-workspace resolution, and SSH forwarding

Validation

  • 91 focused Linear tests passing
  • node and CLI typechecks
  • oxlint, max-lines ratchet, and bundled skill guide checks

Live Electron agent validation (2026-07-21)

  • launched this exact branch in an isolated Electron dev app with the branch-local revision-3 orca-linear skill and ran a real Codex agent against the disposable orca test workspace
  • created ORC-5, ORC-6, and ORC-7 through save-issue, then updated ORC-5 with description, urgent priority, assignee, and due date
  • repeated the identical update and confirmed the same issue was returned with created: false and no field change
  • cleared assignee and due date with literal null, then read the issue back to verify the clears while description and priority were preserved
  • no comments, attachments, or relations were created; no Stably issue was accessed or mutated

@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@brennanb2025, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 6 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 505591a4-4736-4aae-b84c-5a3222c90d56

📥 Commits

Reviewing files that changed from the base of the PR and between 5052d86 and 6d32a97.

📒 Files selected for processing (30)
  • config/scripts/orca-linear-skill-guidance.test.mjs
  • resources/skills/current-manifest.json
  • resources/skills/snapshot-registry.json
  • skill-guides/linear-tickets.md
  • skill-guides/orca-linear.md
  • skills/linear-tickets/SKILL.md
  • skills/orca-linear/SKILL.md
  • src/cli/bundled-skill-guides.ts
  • src/cli/handlers/linear-save-issue.ts
  • src/cli/handlers/linear.test.ts
  • src/cli/handlers/linear.ts
  • src/cli/linear-format.ts
  • src/cli/linear-save-issue-request.ts
  • src/cli/specs/linear.ts
  • src/main/linear/issues.ts
  • src/main/linear/linear-team-pages.ts
  • src/main/linear/projects.ts
  • src/main/linear/teams.test.ts
  • src/main/runtime/linear-save-issue.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/linear-agent-access.test.ts
  • src/main/runtime/rpc/methods/linear-agent-access.ts
  • src/main/runtime/rpc/methods/linear-agent-project-access.test.ts
  • src/main/ssh/ssh-remote-linear-output.ts
  • src/main/ssh/ssh-remote-linear-read-help.ts
  • src/main/ssh/ssh-remote-linear-result-guards.ts
  • src/main/ssh/ssh-remote-linear-save-issue.test.ts
  • src/main/ssh/ssh-remote-linear-save-issue.ts
  • src/main/ssh/ssh-remote-linear-write-cli.ts
  • src/main/ssh/ssh-remote-linear-write-help.ts
📝 Walkthrough

Walkthrough

Adds the orca linear save-issue command for creating or updating Linear issues through local and remote CLI paths. The change introduces shared request and result types, RPC validation and dispatch, runtime issue creation and updates, nullable field clearing, parent and project handling, result formatting, command help, tests, and skill-guide documentation. Issue update payloads now support title, description, project, and parent changes.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description covers summary and validation, but it omits the required Screenshots, AI Review Report, Security Audit, and Notes sections. Add the missing template sections, including screenshots or 'No visual change', a testing checklist, AI review report, security audit, and notes.
✅ Passed checks (3 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 is concise and accurately describes the main change: adding MCP-style Linear save-issue support.

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.

🧹 Nitpick comments (1)
src/main/runtime/orca-runtime.ts (1)

24365-24431: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Consider extracting the Linear write surface into a dedicated commands module.

OrcaRuntimeService already carries a top-of-file eslint-disable max-lines whose own rationale says "the remaining split points need state-owner extraction before enforcing max-lines," and the file already follows that pattern for stateless integrations (RuntimeFileCommands, RuntimeGitCommands, RuntimeBrowserCommands, RuntimeEmulatorCommands are all composed in via dedicated classes). linearSaveIssue/buildLinearSaveUpdate/resolveLinearAssignee/linearSavedIssueMatchesIntent and their many Linear write siblings (linearIssueSetState, linearIssueUpdateTask, linearIssueAddComment, linearIssueAttachLink, linearIssueCreate, …) don't touch PTY/graph/mobile-session state and look like good candidates for the same extraction treatment as a RuntimeLinearCommands class, rather than continuing to grow this already very large file inline.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e6b763b0-363d-4388-b8dd-5f0d283e2691

📥 Commits

Reviewing files that changed from the base of the PR and between ede57cf and 1124d12.

📒 Files selected for processing (22)
  • skill-guides/orca-linear.md
  • skills/orca-linear/SKILL.md
  • src/cli/bundled-skill-guides.ts
  • src/cli/handlers/linear-save-issue.ts
  • src/cli/handlers/linear.test.ts
  • src/cli/handlers/linear.ts
  • src/cli/linear-format.ts
  • src/cli/linear-save-issue-request.ts
  • src/cli/specs/linear.ts
  • src/main/linear/issues.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/linear-agent-access.test.ts
  • src/main/runtime/rpc/methods/linear-agent-access.ts
  • src/main/ssh/ssh-remote-linear-output.ts
  • src/main/ssh/ssh-remote-linear-read-help.ts
  • src/main/ssh/ssh-remote-linear-result-guards.ts
  • src/main/ssh/ssh-remote-linear-save-issue.ts
  • src/main/ssh/ssh-remote-linear-write-cli.ts
  • src/main/ssh/ssh-remote-linear-write-help.ts
  • src/shared/linear-agent-access.ts
  • src/shared/linear-agent-result-types.ts
  • src/shared/types.ts

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 22b103e3-fcf5-4c6c-981c-d7998f3669e8

📥 Commits

Reviewing files that changed from the base of the PR and between 1124d12 and 173e610.

📒 Files selected for processing (12)
  • resources/skills/current-manifest.json
  • resources/skills/release-mapping.json
  • resources/skills/snapshot-registry.json
  • skill-guides/linear-tickets.md
  • skills/linear-tickets/SKILL.md
  • src/cli/bundled-skill-guides.ts
  • src/main/linear/linear-team-pages.ts
  • src/main/linear/teams.test.ts
  • src/main/runtime/linear-save-issue.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/ssh/ssh-remote-linear-save-issue.test.ts
  • src/shared/types.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/shared/types.ts
  • src/cli/bundled-skill-guides.ts
  • src/main/runtime/orca-runtime.ts

Comment thread resources/skills/release-mapping.json Resolved
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Agent-facing project discovery and create --project guidance from #9677 has been folded into this PR so the capability and the skill surface ship together. Commit: 5052d8655.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/linear-save-issue branch from 5052d86 to 6d32a97 Compare July 21, 2026 20:25
@brennanb2025
brennanb2025 merged commit a10a2ba into main Jul 21, 2026
18 of 19 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* feat(linear): add MCP-style save issue

* fix(linear): harden save issue parity

* fix(linear): close save issue contract gaps

* docs(linear): bundle project discovery with save issue
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.

1 participant