Repository navigation
Fix private Linear images in task descriptions - #25849
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (13)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughLinear 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 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)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
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
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:
After:
Testing
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:
pnpm run typecheck:e2ereports 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
docs/reference/agent-skill-sharing-upstream-boundary.mdand 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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)