Skip to content

Fix private Linear images in task descriptions - #25849

Merged
nwparker merged 2 commits into
mainfrom
nwparker/bug-images-in-linear-tasks-not-shown
Oct 6, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/bug-images-in-linear-tasks-not-shown

Conversation

@nwparker

@nwparker nwparker commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​349 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​342
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​82 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​78

ELI5

Linear screenshots need temporary access links. Orca now requests those links for the task view while keeping the original image URLs in description edits.

What Changed

  • Description images that previously failed to load now use signed URLs through the existing rich Markdown image renderer. The saved Markdown stays unchanged.
  • Comment image links also receive signed URLs through Orca's existing Linear client.
  • Only descriptions containing private Linear uploads require an extra, description-only API read. A failed signing read leaves the issue readable.

Why

Linear stores uploads privately (authentication documentation). Reusing the signed-URL client already used for agent ticket reads avoids adding a download proxy or exposing an API key to the renderer. Keeping display URLs separate prevents expiring signatures from being written back to Linear.

Linked Issue

Fixes #25643

Visual Proof

Captured from a hidden Electron renderer on macOS with mocked Linear responses and image requests: unsigned requests return 401; signed requests return an image.

Before:

Before: broken description image

After:

After: description image loads

Testing

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

Passed locally: 161 unit tests across Linear reads and rich Markdown image rendering, pnpm tc, the full native code-quality audit, changed-code quality checks, and the Electron/CLI builds used by the end-to-end harness. CI also passed the full unit suite, relay integration, the Linux Electron test, mobile checks, headless persistence, and Linux/Windows package checks.

The rebuilt Electron test passed again after review. It verifies a broken unsigned image, successful decoding with a signed URL, signed comment links, and editing/saving through the task UI without saving a signature. Renderer tests also verify signature refresh preserves the document and selection, and that switching issues clears the previous mapping. Existing local-file image tests pass. An additional test uses the real Linear SDK transport to verify the signing header and owning workspace credential reach the API.

Reproduce the rendered check with:

ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e tests/e2e/linear-private-images.spec.ts --workers=1

pnpm run typecheck:e2e reports unrelated existing errors, including missing cloud workspace dependencies and stale types in other specs; it reports no errors in the new spec.

Review

Reviewed credential ownership, saved Markdown, failure handling, image refresh and cleanup, local-file images, and old/new remote-client compatibility. No blocking findings remain. Replaced three dynamic property reads flagged by CI with typed access and added real SDK transport coverage.

Live Linear verification could not be completed: the saved credential could not be decrypted in the isolated development app. Image-loading proof uses fixtures, not a live ticket; SDK transport validation uses the real client with a mocked HTTP response.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Tested on macOS. Linux, Windows, and live SSH were not exercised. Linear requests still run on the selected provider host; the image mapping is an optional response field, so older clients ignore it and newer clients fall back when older hosts omit it. No workspace filesystem or process behavior changes. Mobile has its own renderer and does not consume the new display mapping.

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)

@nwparker
nwparker marked this pull request as ready for review October 6, 2026 09:23
@coderabbitai

coderabbitai Bot commented Oct 6, 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: 5eab3265-c150-490d-837c-aba0637f24b1
📥 Commits

Reviewing files that changed from the base of the PR and between 4de9f9f and c7a8953.

📒 Files selected for processing (13)
  • src/main/linear/client.test.ts
  • src/main/linear/issues.test.ts
  • src/main/linear/linear-description-images.test.ts
  • src/main/linear/linear-description-images.ts
  • src/main/linear/linear-issue-comments.ts
  • src/main/linear/linear-issue-lookups.ts
  • src/renderer/src/components/LinearIssueMarkdownDescriptionEditor.tsx
  • src/renderer/src/components/LinearIssueTextEditor.tsx
  • src/renderer/src/components/editor/rich-markdown-extensions.ts
  • src/renderer/src/components/editor/rich-markdown-image-context.ts
  • src/renderer/src/components/editor/rich-markdown-signed-images.test.ts
  • src/shared/linear/issue-types.ts
  • tests/e2e/linear-private-images.spec.ts

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


📝 Walkthrough

Walkthrough

Linear issue lookups now retrieve signed URLs for private description images and include the URL map in the issue result. Comment requests use a client configured for public file URLs. The rich Markdown editor uses the map to resolve image URLs for display. Tests cover URL signing, matching and failure handling, editor behavior, and end-to-end loading and saving.

Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to c7a89

No merge-blocking issue is established. Live Linear image loading remains unverified, but the available evidence does not show a failure.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ 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 14 functions across 13 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue #25643 requires native Linear CDN images to display in Orca. The PR signs private upload URLs for issue descriptions and comments, then resolves description images through the rich Markdown rend…
Out of Scope Changes check ✅ Passed The production changes and tests concern loading private Linear images in issue descriptions and comments. The extra API read, signing client, renderer mapping, and save-payload coverage directly supp…
Title check ✅ Passed The title clearly and concisely identifies the main change: fixing private Linear images in task descriptions.
Description check ✅ Passed The description covers the required sections, links issue #25643, explains the change and rationale, includes visual proof and test results, and notes testing limits and compatibility considerations.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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 5b8a982 into main Oct 6, 2026
38 checks passed
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.

[Bug] images in linear tasks not shown

1 participant