Skip to content

v0.7.8 - CORS-Safe Ollama Check & Widget Fix

Choose a tag to compare

@joelnishanth joelnishanth released this 09 Apr 02:54
· 13 commits to main since this release

Offlyn Apply v0.7.8 — Release Notes

Release Date: April 3, 2026

Bug Fixes

CORS-Safe Ollama Connectivity Check

  • Fixed: Content script Ollama connection checks (checkOllamaConnection()) were making direct fetch() calls to http://localhost:11434 from job site origins (e.g., https://jobs.ashbyhq.com), which browsers blocked due to CORS policy.
  • Impact: Users saw false "Ollama Offline" errors even when Ollama was running, plus console CORS errors on every page scan.
  • Solution: All Ollama connectivity checks from content scripts now route through the background script via CHECK_OLLAMA message passing. The background script has unrestricted network access and can reliably reach localhost services.

Widget Panel Positioning

  • Fixed: The in-page compatibility widget panel opened off-screen to the left when the widget pill was on the left side of the viewport.
  • Solution: Replaced CSS-relative positioning (left: '0' / right: '0' within the narrow flex root) with calculated pixel offsets based on actual viewport coordinates. The panel now always opens toward the side with more available space, clamped within viewport bounds.
  • Additional fix: The dragMoved flag was not reset after drag operations, causing the widget pill to become unclickable. Fixed with a post-drag timeout reset.

Technical Details

Files Changed

  • src/shared/ollama-service.ts — checkOllamaConnection() now uses chrome.runtime.sendMessage({ kind: 'CHECK_OLLAMA' }) with a fallback to direct fetch for non-extension contexts.
  • src/background.ts — Added CHECK_OLLAMA message handler that leverages the background's existing connection state and checkOllamaConnection().
  • src/ui/compatibility-widget.ts — Rewrote repositionPanel() to use viewport-coordinate math; added id="ow-panel" for reliable element lookup; moved repositionPanel() call to after DOM attachment.

Applies To

  • Chrome extension (Manifest V3)
  • Firefox extension (Manifest V2)

Artifacts

  • offlyn-chrome-v0.7.8.zip — Chrome Web Store ready
  • offlyn-firefox-v0.7.8.zip — Firefox Add-ons ready