Skip to content

fix: keep cursor shim working in AppImage terminals#21

Draft
ZanzyTHEbar wants to merge 6 commits intowatzon:mainfrom
ZanzyTHEbar:fix/appimage-shim-path-handling
Draft

fix: keep cursor shim working in AppImage terminals#21
ZanzyTHEbar wants to merge 6 commits intowatzon:mainfrom
ZanzyTHEbar:fix/appimage-shim-path-handling

Conversation

@ZanzyTHEbar
Copy link
Copy Markdown
Contributor

Summary

  • keep cursor resolving to ~/.local/bin/cursor in supported shells even when AppImage runtime paths are injected ahead of it
  • tighten shim detection and path normalization so reruns stay idempotent and do not overwrite unrelated wrappers
  • document and uninstall the managed shell PATH hook alongside the existing shim assets

Test plan

  • shell syntax checks for installer, shim, helper, and uninstall scripts
  • temp-home regression test for managed shell PATH hook idempotence and removal
  • temp-home regression test for shim self-recursion, legacy upgrade, and wrapper-preservation behavior
  • temp-home regression test for AppImage runtime path dispatch and cursor agent behavior

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e669bc8a1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Cursor-launched shells can put AppImage runtime mounts ahead of ~/.local/bin, which bypasses the shim and breaks agent and installer flows. Manage shell PATH setup and tighten shim detection so installs remain idempotent regardless of install order.
Update the PATH hook helper in place when an rc file already exists so dotfile-managed symlinks keep pointing at their original targets during install and removal.
@ZanzyTHEbar ZanzyTHEbar force-pushed the fix/appimage-shim-path-handling branch from 4e669bc to 8945586 Compare March 21, 2026 16:21
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89455866f2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

The shim should route `cursor agent ...` into the agent binary without forwarding the `agent` dispatcher token itself. Shift the subcommand before exec so the agent CLI receives only its own arguments.
Repeated installs should not rewrite shell rc files with extra blank lines or lose track of the intended destination variables. Trim trailing separator whitespace before re-appending the managed block and avoid leaking helper-local variable names across functions.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4fc8394997

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ZanzyTHEbar
Copy link
Copy Markdown
Contributor Author

This is a WIP - be ready soon.

@ZanzyTHEbar ZanzyTHEbar marked this pull request as draft March 23, 2026 20:00
Persist the source checkout for local installs and reuse those local shim and shell-path assets on later updates so branch testing doesn't silently downgrade back to main.
Prefer current installer assets when available, keep shell-path helpers compatible across mixed versions, and avoid corrupting cached refresh assets on failed downloads.
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