mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
fix(coding-agent): ensure rg is downloaded at startup alongside fd
rg was only downloaded lazily when the grep tool was invoked, but the LLM often uses rg directly via the bash tool. Ensure both fd and rg are downloaded at startup so they are available in PATH for all tools. fixes #1348
This commit is contained in:
parent
5d361f4719
commit
a6cd254471
1 changed files with 4 additions and 2 deletions
|
|
@ -370,8 +370,10 @@ export class InteractiveMode {
|
|||
// Load changelog (only show new entries, skip for resumed sessions)
|
||||
this.changelogMarkdown = this.getChangelogForDisplay();
|
||||
|
||||
// Setup autocomplete with fd tool for file path completion
|
||||
this.fdPath = await ensureTool("fd");
|
||||
// Ensure fd and rg are available (downloads if missing, adds to PATH via getBinDir)
|
||||
// Both are needed: fd for autocomplete, rg for grep tool and bash commands
|
||||
const [fdPath] = await Promise.all([ensureTool("fd"), ensureTool("rg")]);
|
||||
this.fdPath = fdPath;
|
||||
|
||||
// Add header container as first child
|
||||
this.ui.addChild(this.headerContainer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue