Skip to content

Fix process.execPath resolution when launched via an ELF loader - #1800

Open
YrFnS wants to merge 2 commits into
CodebuffAI:mainfrom
YrFnS:fix/elf-loader-exec-path
Open

YrFnS wants to merge 2 commits into
CodebuffAI:mainfrom
YrFnS:fix/elf-loader-exec-path

Conversation

@YrFnS

@YrFnS YrFnS commented Dec 4, 2026

Copy link
Copy Markdown

Resolves the on-disk bundle path independently of process.execPath, which points at the loader (e.g. ld.so) when the CLI is started through an ELF interpreter. Applies the resolved path to ripgrep extraction, tree-sitter.wasm lookup, smoke diagnostics, and re-execution of the terminal command broker (preserving loader arguments), plus code-map's tree-sitter lookup.

Fixes #1688

Resolve the on-disk bundle path independently of process.execPath, which
points at the loader (e.g. ld.so) when the CLI is started through an ELF
interpreter. Applies the resolved path to ripgrep extraction, tree-sitter.wasm
lookup, smoke diagnostics, and re-execution of the terminal command broker
(preserving loader arguments), plus code-map's tree-sitter lookup.

Fixes CodebuffAI#1688
@YrFnS
YrFnS force-pushed the fix/elf-loader-exec-path branch from 8db3536 to aeedd5f Compare December 4, 2026 09:41

This branch has not been deployed

No deployments
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.

Terminal broker and ripgrep break when the CLI is launched through an ELF loader (process.execPath is the loader)

1 participant