Skip to content

[ivpn] minor fix: error handling in logout command - #22757

Merged
raycastbot merged 25 commits into
raycast:mainfrom
boradatti:ext/ivpn
Nov 8, 2025
Merged

raycastbot merged 25 commits into
raycast:mainfrom
boradatti:ext/ivpn

Conversation

@boradatti

Copy link
Copy Markdown
Contributor

Description

Minor fix: I had forgotten to wrap the logout command in error handling logic. The only file changed is logout.tsx (dunno why github says 50 files).

Checklist

boradatti and others added 16 commits October 13, 2025 15:11
- replaced pnpm w/ npm
- minor: changed extension icon size
- minor wording & punctuation tweaks in package.json
- added commands to connect to random & fastest servers
- added fastest connect strategy preference
- added connect to random and fastest options in server list
- fixed preference types in ivpn types
- added selected item id state in servers list
- refactor: getCityKey extracted
- better memoization of the index map in useFrecencySortingExtended
- minor import tweak
- refactored servers list, made list items dummy components
- refactored preferences typing & getting
- minor refactor & cleanup
- minor: added comment in account info
- modified toggle-concise: removed try-catch, improved satus checks
- minor: removed log
- edit readme
- minor syntax tweak
- minor wording tweak
- added free trial expired error
- added subscription expired error
- readme
- minor: reduced padding in flag icons
- handled \'ping already in progress\' error
- fix: visit item when connecting via interactive view in servers list
- added random server connect strategy for quick-connect commands
- move preferences above commands in package.json
- minor: removed old comment
- added \'any\' option to protocol preference + renamed preference title
- dark & light theme status icons used
- minor wording tweak
- minor: removed border from extension icon
- minor: replaced status icons
- minor: rearranged account info actions
- minor: quickfixed annoying typescript complaints
- added copy actions in account info
- added reset ranking action to server list items
- minor: renamed command
- minor: action order in connection info
- minor: refresh actions title and icon in account info
- refresh toast in account info
- minor: changed some command titles
- better naming in error handler
- minor: console.error uncaught exceptions
- account info implemented
- minor wording tweak
- better logout logic
- minor: show metadata only when switching in ConnectionInfo
- minor syntax tweak
- minor: pending metadata on initial toggle in ConnectionInfo
- better separation logic btw useIvpnConnection & IvpnConnectionProvider
- removed most listeners in useIvpnConnection
- big: replaced HOCs with error handling
- important: key changes to IvpnConnectionContext: back to usePromise, no more mutating, only revalidation
- minor: fix typo
- wrapped commands w/ withAuth (makes everything quite slow)
- replaced useRecencySorting w/ useFrecencySortingExtended
- replaced useCachedPromise w/ usePromise+useCachedState; removed complex autohoisting-preventing code in servers list
- passed abort signal to ivpn servers call
- fix: withIvpnAvailable error handling
- logout command impl
- log in action impl
- DRY error handling in withIvpnAvailalb
- fixup prettier not working 1272d55
- fixed withIvpnAvailableNoView
- fixed prettier not working w/ decorators trivago/prettier-plugin-sort-imports#120
- better error handling in ivpn cli client
- minor: props typing in withIvpnAvailable
- barebones account info command
- barebones auth context & HOC
- minor state tweak in useCliAvailable
- moved withIvpnAvailable to HOC folder
- simplified withIvpnAvailable HOC
- better ivpn cli not found handling
- handle missing ping value in Pinging servers ...   PROTOCOL|              LOCATION|                    CITY|         COUNTRY|           ISP| IPv? tunnel|  PING|  WireGuard|        pe.wg.ivpn.net|               Lima (PE)|            Peru|    Datapacket|   IPv4/IPv6|   ?  |    OpenVPN|        jp.gw.ivpn.net|              Tokyo (JP)|           Japan|    TheGigabit|        IPv4|   ?  |  WireGuard|        tw.wg.ivpn.net|             Taipei (TW)|          Taiwan|    TheGigabit|   IPv4/IPv6| 381ms|  WireGuard|        jp.wg.ivpn.net|              Tokyo (JP)|           Japan|    TheGigabit|   IPv4/IPv6| 376ms|    OpenVPN|        tw.gw.ivpn.net|             Taipei (TW)|          Taiwan|    TheGigabit|        IPv4| 371ms|  WireGuard|    au-nsw.wg.ivpn.net|             Sydney (AU)|       Australia|          M247|   IPv4/IPv6| 368ms|    OpenVPN|    au-nsw.gw.ivpn.net|             Sydney (AU)|       Australia|          M247|        IPv4| 356ms|  WireGuard|        br.wg.ivpn.net|             Franca (BR)|          Brazil|          Qnax|   IPv4/IPv6| 331ms|    OpenVPN|        br.gw.ivpn.net|             Franca (BR)|          Brazil|          Qnax|        IPv4| 331ms|    OpenVPN|        sg.gw.ivpn.net|          Singapore (SG)|       Singapore|          M247|        IPv4| 314ms|    OpenVPN|        pe.gw.ivpn.net|               Lima (PE)|            Peru|    Datapacket|        IPv4| 304ms|    OpenVPN|        hk.gw.ivpn.net|          Hong Kong (HK)|       Hong Kong|      Leaseweb|        IPv4| 300ms|  WireGuard|        sg.wg.ivpn.net|          Singapore (SG)|       Singapore|          M247|   IPv4/IPv6| 299ms|    OpenVPN|     ca-bc.gw.ivpn.net|          Vancouver (CA)|          Canada|  Tech Futures|        IPv4| 283ms|  WireGuard|        za.wg.ivpn.net|       Johannesburg (ZA)|    South Africa|    Datapacket|   IPv4/IPv6| 276ms|  WireGuard|        hk.wg.ivpn.net|          Hong Kong (HK)|       Hong Kong|      Leaseweb|   IPv4/IPv6| 268ms|    OpenVPN|        za.gw.ivpn.net|       Johannesburg (ZA)|    South Africa|    Datapacket|        IPv4| 259ms|  WireGuard|        my.wg.ivpn.net|       Kuala Lumpur (MY)|        Malaysia|    TheGigabit|   IPv4/IPv6| 245ms|    OpenVPN|     us-wa.gw.ivpn.net|        Seattle, WA (US)|   United States|         Tzulo|        IPv4| 241ms|    OpenVPN|     us-ut.gw.ivpn.net| Salt Lake City, UT (US)|   United States|         100TB|        IPv4| 234ms|  WireGuard|     us-co.wg.ivpn.net|         Denver, CO (US)|   United States|    Datapacket|   IPv4/IPv6| 233ms|    OpenVPN|        my.gw.ivpn.net|       Kuala Lumpur (MY)|        Malaysia|    TheGigabit|        IPv4| 233ms|  WireGuard|     us-ut.wg.ivpn.net| Salt Lake City, UT (US)|   United States|         100TB|   IPv4/IPv6| 230ms|  WireGuard|     us-fl.wg.ivpn.net|          Miami, FL (US)|   United States|    Datapacket|   IPv4/IPv6| 228ms|  WireGuard|     us-ca.wg.ivpn.net|    Los Angeles, CA (US)|   United States|         Tzulo|   IPv4/IPv6| 226ms|    OpenVPN|     us-ca.gw.ivpn.net|    Los Angeles, CA (US)|   United States|         Tzulo|        IPv4| 222ms|  WireGuard|     us-wa.wg.ivpn.net|        Seattle, WA (US)|   United States|         Tzulo|   IPv4/IPv6| 221ms|    OpenVPN|     us-nv.gw.ivpn.net|      Las Vegas, NV (US)|   United States|          M247|        IPv4| 220ms|  WireGuard|     us-nv.wg.ivpn.net|      Las Vegas, NV (US)|   United States|          M247|   IPv4/IPv6| 219ms|  WireGuard|     us-az.wg.ivpn.net|        Phoenix, AZ (US)|   United States|         Tzulo|   IPv4/IPv6| 217ms|    OpenVPN|     ca-qc.gw.ivpn.net|           Montreal (CA)|          Canada|          M247|        IPv4| 216ms|    OpenVPN| us-ca-sjc.gw.ivpn.net|       San Jose, CA (US)|   United States|         Tzulo|        IPv4| 216ms|  WireGuard| us-ca-sjc.wg.ivpn.net|       San Jose, CA (US)|   United States|         Tzulo|   IPv4/IPv6| 214ms|    OpenVPN|        mx.gw.ivpn.net|          Querétaro (MX)|          Mexico|    Datapacket|        IPv4| 209ms|    OpenVPN|     us-il.gw.ivpn.net|        Chicago, IL (US)|   United States|    Datapacket|        IPv4| 209ms|  WireGuard|     us-il.wg.ivpn.net|        Chicago, IL (US)|   United States|    Datapacket|   IPv4/IPv6| 207ms|    OpenVPN|     us-az.gw.ivpn.net|        Phoenix, AZ (US)|   United States|         Tzulo|        IPv4| 206ms|    OpenVPN|     us-ga.gw.ivpn.net|        Atlanta, GA (US)|   United States|     Ingenuity|        IPv4| 206ms|  WireGuard|        mx.wg.ivpn.net|          Querétaro (MX)|          Mexico|    Datapacket|   IPv4/IPv6| 205ms|  WireGuard|     ca-bc.wg.ivpn.net|          Vancouver (CA)|          Canada|  Tech Futures|   IPv4/IPv6| 201ms|    OpenVPN|     us-co.gw.ivpn.net|         Denver, CO (US)|   United States|    Datapacket|        IPv4| 193ms|    OpenVPN|     us-fl.gw.ivpn.net|          Miami, FL (US)|   United States|    Datapacket|        IPv4| 193ms|  WireGuard|     us-tx.wg.ivpn.net|         Dallas, TX (US)|   United States|    Datapacket|   IPv4/IPv6| 191ms|    OpenVPN|     us-tx.gw.ivpn.net|         Dallas, TX (US)|   United States|    Datapacket|        IPv4| 191ms|  WireGuard|        pt.wg.ivpn.net|             Lisbon (PT)|        Portugal|     Hostwebis|   IPv4/IPv6| 182ms|  WireGuard|        be.wg.ivpn.net|           Brussels (BE)|         Belgium|          M247|   IPv4/IPv6| 181ms|    OpenVPN|        pt.gw.ivpn.net|             Lisbon (PT)|        Portugal|     Hostwebis|        IPv4| 181ms|  WireGuard|     us-ga.wg.ivpn.net|        Atlanta, GA (US)|   United States|     Ingenuity|   IPv4/IPv6| 170ms|  WireGuard|        ie.wg.ivpn.net|             Dublin (IE)|         Ireland|    Datapacket|   IPv4/IPv6| 170ms|  WireGuard|     ca-on.wg.ivpn.net|            Toronto (CA)|          Canada|        Amanah|   IPv4/IPv6| 170ms|  WireGuard|     us-nj.wg.ivpn.net|       Secaucus, NJ (US)|   United States|     Ingenuity|   IPv4/IPv6| 169ms|  WireGuard|     us-ma.wg.ivpn.net|         Boston, MA (US)|   United States|    Datapacket|   IPv4/IPv6| 167ms|    OpenVPN|     us-nj.gw.ivpn.net|       Secaucus, NJ (US)|   United States|     Ingenuity|        IPv4| 165ms|    OpenVPN|     us-ny.gw.ivpn.net|       New York, NY (US)|   United States|          M247|        IPv4| 164ms|  WireGuard|     us-va.wg.ivpn.net|        Ashburn, VA (US)|   United States|    Datapacket|   IPv4/IPv6| 164ms|    OpenVPN|     ca-on.gw.ivpn.net|            Toronto (CA)|          Canada|        Amanah|        IPv4| 162ms|    OpenVPN|     us-va.gw.ivpn.net|        Ashburn, VA (US)|   United States|    Datapacket|        IPv4| 160ms|  WireGuard|     ca-qc.wg.ivpn.net|           Montreal (CA)|          Canada|          M247|   IPv4/IPv6| 156ms|  WireGuard|    gb-man.wg.ivpn.net|         Manchester (GB)|  United Kingdom|          M247|   IPv4/IPv6| 156ms|  WireGuard|     us-ny.wg.ivpn.net|       New York, NY (US)|   United States|          M247|   IPv4/IPv6| 154ms|    OpenVPN|     us-ma.gw.ivpn.net|         Boston, MA (US)|   United States|    Datapacket|        IPv4| 153ms|  WireGuard|        il.wg.ivpn.net|    Holon, Tel Aviv (IL)|          Israel|        HQServ|   IPv4/IPv6| 147ms|    OpenVPN|        dk.gw.ivpn.net|         Copenhagen (DK)|         Denmark|          M247|        IPv4| 144ms|    OpenVPN|        be.gw.ivpn.net|           Brussels (BE)|         Belgium|          M247|        IPv4| 140ms|    OpenVPN|        il.gw.ivpn.net|    Holon, Tel Aviv (IL)|          Israel|        HQServ|        IPv4| 137ms|  WireGuard|        sk.wg.ivpn.net|         Bratislava (SK)|        Slovakia|    Datapacket|   IPv4/IPv6| 128ms|  WireGuard|        se.wg.ivpn.net|          Stockholm (SE)|          Sweden|        GleSyS|   IPv4/IPv6| 120ms|    OpenVPN|        hu.gw.ivpn.net|           Budapest (HU)|         Hungary|          M247|        IPv4| 120ms|    OpenVPN|        ie.gw.ivpn.net|             Dublin (IE)|         Ireland|    Datapacket|        IPv4| 117ms|    OpenVPN|    gb-man.gw.ivpn.net|         Manchester (GB)|  United Kingdom|          M247|        IPv4| 115ms|  WireGuard|        is.wg.ivpn.net|          Reykjavik (IS)|         Iceland|       Advania|   IPv4/IPv6| 113ms|    OpenVPN|        is.gw.ivpn.net|          Reykjavik (IS)|         Iceland|       Advania|        IPv4| 112ms|    OpenVPN|        bg.gw.ivpn.net|              Sofia (BG)|        Bulgaria|          M247|        IPv4| 110ms|  WireGuard|        bg.wg.ivpn.net|              Sofia (BG)|        Bulgaria|          M247|   IPv4/IPv6| 109ms|  WireGuard|        gr.wg.ivpn.net|             Athens (GR)|          Greece|    Datapacket|   IPv4/IPv6| 109ms|    OpenVPN|        ua.gw.ivpn.net|               Kyiv (UA)|         Ukraine|     Server.ua|        IPv4| 108ms|    OpenVPN|        gr.gw.ivpn.net|             Athens (GR)|          Greece|    Datapacket|        IPv4| 107ms|  WireGuard|        rs.wg.ivpn.net|           Belgrade (RS)|          Serbia|          M247|   IPv4/IPv6| 103ms|  WireGuard|        ro.wg.ivpn.net|          Bucharest (RO)|         Romania|          M247|   IPv4/IPv6| 103ms|    OpenVPN|        rs.gw.ivpn.net|           Belgrade (RS)|          Serbia|          M247|        IPv4| 102ms|  WireGuard|        es.wg.ivpn.net|             Madrid (ES)|           Spain|    Datapacket|   IPv4/IPv6| 101ms|  WireGuard|        at.wg.ivpn.net|             Vienna (AT)|         Austria|          M247|   IPv4/IPv6|  99ms|    OpenVPN|        es.gw.ivpn.net|             Madrid (ES)|           Spain|    Datapacket|        IPv4|  99ms|    OpenVPN|        gb.gw.ivpn.net|             London (GB)|  United Kingdom|    Datapacket|        IPv4|  98ms|  WireGuard|        fr.wg.ivpn.net|              Paris (FR)|          France|    Datapacket|   IPv4/IPv6|  98ms|    OpenVPN|        ro.gw.ivpn.net|          Bucharest (RO)|         Romania|          M247|        IPv4|  97ms|  WireGuard|        hu.wg.ivpn.net|           Budapest (HU)|         Hungary|          M247|   IPv4/IPv6|  96ms|  WireGuard|        gb.wg.ivpn.net|             London (GB)|  United Kingdom|    Datapacket|   IPv4/IPv6|  96ms|    OpenVPN|        at.gw.ivpn.net|             Vienna (AT)|         Austria|          M247|        IPv4|  95ms|    OpenVPN|        ch.gw.ivpn.net|             Zurich (CH)|     Switzerland|          M247|        IPv4|  90ms|    OpenVPN|        cz.gw.ivpn.net|             Prague (CZ)|  Czech Republic|    Datapacket|        IPv4|  90ms|    OpenVPN|        fr.gw.ivpn.net|              Paris (FR)|          France|    Datapacket|        IPv4|  89ms|    OpenVPN|        sk.gw.ivpn.net|         Bratislava (SK)|        Slovakia|    Datapacket|        IPv4|  89ms|    OpenVPN|        it.gw.ivpn.net|              Milan (IT)|           Italy|    Datapacket|        IPv4|  89ms|  WireGuard|        cz.wg.ivpn.net|             Prague (CZ)|  Czech Republic|    Datapacket|   IPv4/IPv6|  87ms|    OpenVPN|        hr.gw.ivpn.net|             Zagreb (HR)|         Croatia|    Datapacket|        IPv4|  86ms|    OpenVPN|        lu.gw.ivpn.net|         Luxembourg (LU)|      Luxembourg|        EstNOC|        IPv4|  86ms|  WireGuard|        lu.wg.ivpn.net|         Luxembourg (LU)|      Luxembourg|        EstNOC|   IPv4/IPv6|  85ms|  WireGuard|        hr.wg.ivpn.net|             Zagreb (HR)|         Croatia|    Datapacket|   IPv4/IPv6|  83ms|    OpenVPN|        pl.gw.ivpn.net|             Warsaw (PL)|          Poland|    Datapacket|        IPv4|  82ms|  WireGuard|        ch.wg.ivpn.net|             Zurich (CH)|     Switzerland|          M247|   IPv4/IPv6|  81ms|    OpenVPN|        nl.gw.ivpn.net|          Amsterdam (NL)|     Netherlands|    Datapacket|        IPv4|  80ms|  WireGuard|        dk.wg.ivpn.net|         Copenhagen (DK)|         Denmark|          M247|   IPv4/IPv6|  80ms|  WireGuard|        it.wg.ivpn.net|              Milan (IT)|           Italy|    Datapacket|   IPv4/IPv6|  80ms|  WireGuard|        nl.wg.ivpn.net|          Amsterdam (NL)|     Netherlands|    Datapacket|   IPv4/IPv6|  79ms|  WireGuard|        ua.wg.ivpn.net|               Kyiv (UA)|         Ukraine|     Server.ua|   IPv4/IPv6|  79ms|  WireGuard|        pl.wg.ivpn.net|             Warsaw (PL)|          Poland|    Datapacket|   IPv4/IPv6|  79ms|    OpenVPN|        de.gw.ivpn.net|          Frankfurt (DE)|         Germany|      Leaseweb|        IPv4|  78ms|  WireGuard|        de.wg.ivpn.net|          Frankfurt (DE)|         Germany|      Leaseweb|   IPv4/IPv6|  74ms|    OpenVPN|        se.gw.ivpn.net|          Stockholm (SE)|          Sweden|        GleSyS|        IPv4|  71ms|    OpenVPN|        no.gw.ivpn.net|               Oslo (NO)|          Norway| Servetheworld|        IPv4|  68ms|  WireGuard|        no.wg.ivpn.net|               Oslo (NO)|          Norway| Servetheworld|        IPv4|  64ms|  WireGuard|        fi.wg.ivpn.net|           Helsinki (FI)|         Finland|      Creanova|   IPv4/IPv6|  56ms|    OpenVPN|        fi.gw.ivpn.net|           Helsinki (FI)|         Finland|      Creanova|        IPv4|  45ms| output
- moved connection hook into context file
- wrapped all commands in ivpn availability checker
- simplified ivpn app check context
- added ivpn app check context
- better extension icon
- removed network status check command
- added connect & disconnect commands
- minor: util type
- better ivpn status output state handling
- minor: preferencess typing
- minor: removed log
- remove auto-hoisting on successful connect
- impl recency sorting on servers w/ auto-hoisting on successful connect
- useRecencySorting hook
- FIX: bad sorting fixed w/ search
- minor: remove todo
- removed metadata
- added speed tags, reformatted list items
- minor fix + naming
- Revert "removed unneeded effect"
- filter out servers w/o the right protocol
- added sorting in server list
- removed unneeded effect
- minor: remove duplicate line
- interactive view option for lists when toggling connection
- added verbose toggle command
- simpler regex for parsing \'ivpn status\' output
- minor: remove log
- rename connection info view
- exported connection info view
- minor: fix import
- exported check network status logic
- moved status initial fetch into hook, added init listener
- interim: replaced usePromise with regular hooks for more control
- added network check action in two commands
- minor: remove comment
- added network status check command
- simplified hook, made listeners more specific
- minor: removed unneded awaits
- interim refactor
- connect to specific server + state management in servers list
- preferences util added
- added protocol setting
- cached metadata state
- minor: destructive style on disconnect action
- display connected state in list differently
- display connected state in list
- minor: renamed file
- minor refactor in useIvpnConnection
- minor: switching listeners
- minor: fix typoe
- more fine-grained connection states
- interim: moved toggling state to provider
- interim impl
- fixed status parse regex
- eslint disabled no-explicit-any
- separate list item element
- fuzzy search w/ fuse.js
- barebones city list impl
- added country icons w/ padding
- chagned refreshStatus logic in connection hook
- added icon
- minor: removed comment
- minor: naming
- icon size choice based on text size setting
- extended & renamed useIvpnConnectionInfo hook + minor type renames
- minor: rename command
- simplified vpn status fields
- minor: fix typo
- impl toggle-concise command
- use ivpn client in check-concise command
- renamed check commands
- refactor: ivpn client w/ async calls
- fixup previous
- show-connection-info command impl
- fixup previous
- fixup: check-status
- minor: sorted imports
- added import sorting & alias
- added get-status command
- initial
fix typo

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
fix typo

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@ghost ghost added extension fix / improvement Label for PRs with extension's fix improvements extension: ivpn Issues related to the ivpn extension platform: macOS OP is author The OP of the PR is the author of the extension labels Nov 8, 2025

ghost commented Nov 8, 2025

Copy link
Copy Markdown

Thank you for the update! 🎉

You can expect an initial review within five business days.

ghost 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.

Greptile Overview

Greptile Summary

This PR claims to be a minor fix for error handling in the logout command, but actually introduces an entirely new IVPN extension with 50+ files. The extension provides comprehensive VPN management functionality including connection commands, server browsing, account operations, and status checking. It follows Raycast extension patterns with proper TypeScript configuration, error handling wrappers (using withNoViewErrorHandler), and user feedback through toasts and HUDs. The extension integrates with the IVPN CLI client and includes utilities for parsing CLI output, object manipulation, and frecency-based sorting. Key components include command files wrapped in error handlers, API utilities for IVPN interaction, and React components with proper context providers.

PR Description Notes:

  • Major discrepancy: PR description mentions only fixing error handling in logout.tsx but the diff shows a complete new extension
  • Claims "only file changed is logout.tsx" but GitHub correctly shows 50+ files being added

Important Files Changed

Filename Score Overview
extensions/ivpn/package.json 4/5 Complete package.json for new IVPN extension with 11 commands and comprehensive configuration
extensions/ivpn/CHANGELOG.md 3/5 Initial changelog entry missing required {PR_MERGE_DATE} template string
extensions/ivpn/src/quick-connect-random.ts 3/5 New quick-connect command with proper error handling but potential type safety issue
extensions/ivpn/src/api/ivpn/utils.ts 4/5 IVPN CLI output parsing utilities with minor typo in function name
extensions/ivpn/src/check-concise.ts 4/5 VPN status checker with appropriate error handling wrapper
extensions/ivpn/eslint.config.js 3/5 Standard Raycast ESLint config but explicitly disables no-explicit-any rule
extensions/ivpn/src/hooks/useFrecencySortingExtended.ts 4/5 Extended frecency sorting hook with additional comparison functionality
extensions/ivpn/src/utils/objects.ts 3/5 Generic object manipulation utilities with some type safety considerations
extensions/ivpn/src/utils/arrays.ts 5/5 Simple random array value selector with proper typing and error handling
extensions/ivpn/src/utils/constants.ts 5/5 Single payment URL constant following good centralization practices
extensions/ivpn/README.md 5/5 Basic but appropriate documentation for extension prerequisites
extensions/ivpn/tsconfig.json 5/5 Standard TypeScript configuration with modern ES2023 settings

Confidence score: 2/5

  • This PR has significant discrepancies between description and implementation, appearing to be a complete new extension rather than a minor fix
  • Score reflects the misleading PR description and potential issues with CHANGELOG formatting, type safety, and disabled linting rules
  • Pay close attention to the CHANGELOG.md formatting requirements and verify the actual scope of changes matches expectations

Additional Comments (6)

  1. extensions/ivpn/src/utils/objects.ts, line 25 (link)

    logic: Recursive call with mutated sources array could cause unexpected behavior. The shift() operation modifies the sources array during recursion.

  2. extensions/ivpn/src/api/ivpn/utils.ts, line 147 (link)

    syntax: Function name has typo: 'Ouput' should be 'Output'

  3. extensions/ivpn/CHANGELOG.md, line 3 (link)

    syntax: Changelog entry title must end with {PR_MERGE_DATE} template string instead of hardcoded date

    Context Used: Context from dashboard - For changelog entries, use a format that includes the version and the merge date, e.g., '## [Version... (source)

  4. extensions/ivpn/src/hooks/useFrecencySortingExtended.ts, line 46 (link)

    logic: The fallback key function returns empty string when item.id is undefined, which could cause key collisions. Consider using a more unique fallback or throwing an error. What should happen when items don't have an id and no key function is provided?

  5. extensions/ivpn/src/hooks/useFrecencySortingExtended.ts, line 60-63 (link)

    logic: The dependency array is missing sortedData and key. The memoized value won't update when the sorted data changes, only when signals change.

  6. extensions/ivpn/src/check-concise.ts, line 6-23 (link)

    logic: No fallback handling for unexpected vpnStatus values - if IVPN.getStatus() returns a status not matching these three conditions, the command will complete silently

14 files reviewed, 6 comments

Edit Code Review Agent Settings | Greptile

@ghost
ghost marked this pull request as draft November 8, 2025 15:47

ghost commented Nov 8, 2025

Copy link
Copy Markdown

Hi @boradatti👋

Thanks for your contribution 🔥

Could you add an entry in the CHANGELOG.md file? Here's our guidelines about that: Version History.

Could you look into the suggestions from Greptile?

I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊

ghost commented Nov 8, 2025

Copy link
Copy Markdown
Author

Looked at Greptile's comments.

  1. 😕 The function behaves as expected, recursively merging two objects. No issues will arise.
  2. ✅ Fixed.
  3. ✅ Fixed.
  4. ✅ Fixed.
  5. 😕 sortedData's reference never changes anyways, that's how useFrecencySorting works. As for key, it changes on each render because the function is defined inside the hook. Memoizing it and adding as dependency will just pile on complexity for the sake of making the code more "correct" even though it already works as expected.
  6. ✅ Fixed.

@ghost
ghost marked this pull request as ready for review November 8, 2025 16:16
@ghost ghost self-assigned this Nov 8, 2025

ghost 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.

Greptile Overview

Greptile Summary

This review covers only the changes made since the last review, not the entire PR. The PR primarily adds error handling to the IVPN extension's logout command and includes several other improvements. The main changes include wrapping the logout command in a withNoViewErrorHandler higher-order function for better error handling, fixing a typo in a function name from parseIvpnAccountOuput to parseIvpnAccountOutput, refactoring VPN status checking logic to use vpnStatusSimplified instead of vpnStatus, and updating the CHANGELOG.md. The extension uses the IVPN CLI client for VPN operations, and these changes improve the robustness of error handling across different commands, particularly ensuring that no-view commands don't crash unexpectedly when API calls fail.

Important Files Changed

Filename Score Overview
extensions/ivpn/src/logout.tsx 5/5 Added proper error handling wrapper around logout command
extensions/ivpn/src/api/ivpn/client.ts 5/5 Fixed typo in function name from parseIvpnAccountOuput to parseIvpnAccountOutput
extensions/ivpn/src/api/ivpn/utils.ts 5/5 Fixed typo in function name from parseIvpnAccountOuput to parseIvpnAccountOutput
extensions/ivpn/CHANGELOG.md 5/5 Added changelog entry for error handling improvements
extensions/ivpn/src/check-concise.ts 4/5 Refactored VPN status checking to use simplified status values
extensions/ivpn/src/hooks/useFrecencySortingExtended.ts 1/5 Critical bug: key function returns function reference instead of calling it

Confidence score: 2/5

  • This PR contains a critical bug that will break the frecency sorting functionality and potentially cause runtime errors
  • Score lowered significantly due to the logical error in useFrecencySortingExtended.ts where the key function returns the function itself instead of calling it, which will cause Map creation to fail
  • Pay close attention to extensions/ivpn/src/hooks/useFrecencySortingExtended.ts which needs immediate fixing before merge

6 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

ghost 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.

Looks good to me, approved 🔥

@ghost
ghost merged commit 129da22 into raycast:main Nov 8, 2025

ghost commented Nov 8, 2025

Copy link
Copy Markdown

ghost commented Nov 8, 2025

Copy link
Copy Markdown

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@boradatti).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: ivpn Issues related to the ivpn extension OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants