Repository navigation
Conversation
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
8db3536 to
aeedd5f
Compare
|
Good find and a well-reasoned fix for issue #1688 — Two concerns:
Overall the change is scoped correctly, doesn't touch any forbidden paths, and is testable — recommend porting with the code-map duplication flagged for follow-up. |
Move cli-binary-path into @codebuff/common so code-map uses the same implementation (and tests) instead of an inline copy. Recognize versioned glibc, uClibc and ld.so.N loaders, and document that detection is by file name only.
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