Skip to content

fix(linux): remove legacy AppImage orca wrapper during migration - #17685

Merged
nwparker merged 1 commit into
nwparker/linux-serve-flag-validationfrom
nwparker/linux-legacy-appimage-wrapper-cleanup
Aug 31, 2026
Merged

nwparker merged 1 commit into
nwparker/linux-serve-flag-validationfrom
nwparker/linux-legacy-appimage-wrapper-cleanup

Conversation

@nwparker

@nwparker nwparker commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​50 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​50
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​19 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11

Summary

  • remove the pre-stack regular ~/.local/bin/orca AppImage wrapper when it names the current packaged AppImage
  • reuse the stable command inspection (including content hashing) for race-safe quarantine
  • preserve foreign AppImage wrappers and other user-owned commands

This is stacked on #17683 and closes the migration gap left by the Linux command rename. It is related to the historical GNOME Orca collision issue #7904.

Validation

  • pnpm test src/main/cli/cli-installer.test.ts src/main/cli/cli-command-installation-races.test.ts src/main/cli/legacy-appimage-cli-wrapper.test.ts src/main/cli/appimage-extracted-root.test.ts src/main/cli/appimage-extraction-pruning.test.ts src/main/cli/cli-installer-appimage-ownership.test.ts (6 files, 51 passed)
  • pnpm tc
  • pnpm run check:code-quality:changed
  • pnpm exec oxfmt --check src/main/cli/cli-command-installation.ts src/main/cli/cli-installer.test.ts
  • git diff --check

@pullfrog

pullfrog Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@greptile-apps

greptile-apps Bot commented Aug 31, 2026

Copy link
Copy Markdown

Greptile Summary

The PR closes a Linux CLI migration gap by recognizing and safely removing the legacy ~/.local/bin/orca wrapper when it names the currently packaged AppImage.

  • Reuses stable command inspection and content hashing before quarantine deletion.
  • Preserves wrappers naming another AppImage and other commands not recognized as Orca-managed.
  • Adds installer coverage for current-versus-foreign AppImage wrappers.

Confidence Score: 5/5

The PR appears safe to merge, with ownership checks and stable quarantine validation preserving foreign commands.

The cleanup only proceeds for recognized Orca-managed targets, and regular wrappers are content-hashed and revalidated after quarantine before deletion.

Important Files Changed

Filename Overview
src/main/cli/cli-command-installation.ts Replaces bespoke legacy symlink inspection with stable shared inspection and extends ownership detection to exact wrappers targeting the current AppImage.
src/main/cli/cli-installer.test.ts Verifies that migration removes the current AppImage wrapper while preserving an otherwise valid wrapper targeting a foreign AppImage.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Inspect ~/.local/bin/orca] --> B{Stable entry exists?}
  B -- No --> Z[Leave unchanged]
  B -- Yes --> C{Recognized Orca target?}
  C -- No --> Z
  C -- Yes --> D{Names managed launcher or current AppImage?}
  D -- No --> Z
  D -- Yes --> E[Quarantine entry]
  E --> F{Snapshot, target, and hash still match?}
  F -- No --> G[Restore quarantined entry]
  F -- Yes --> H[Discard legacy command]
Loading

Reviews (1): Last reviewed commit: "fix(cli): clean up legacy AppImage wrapp..." | Re-trigger Greptile

@nwparker
nwparker merged commit 51add7e into nwparker/linux-serve-flag-validation Aug 31, 2026
28 of 29 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.

1 participant