fix(engine): register grep/find/ls alongside read/bash/edit/write for coding sessions

pi-coding-agent 0.70's createCodingTools preset only includes read/bash/edit/write,
but pi-claude-cli's tool-mapping translates Claude's Glob→find and Grep→grep.
Triage sessions running through Claude CLI hit "Tool find not found" the moment
the model called Glob and looped on the error.

Compose the built-in set explicitly so every tool referenced by tool-mapping.ts
is registered. Read-only sessions also gain ls (was silently dropped earlier
when readonly was redefined upstream).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Fusion
2026-04-25 16:34:31 -07:00
committed by gsxdsm
parent 73ff095ccc
commit cd4cef38fc
2 changed files with 7 additions and 1 deletions

View File

@@ -1867,7 +1867,8 @@ function AgentsView({ state }: { state: DashboardState }) {
return;
}
if ((key.return || input === "l") && selectedRun) {
const isEnterKey = key.return || input === "\r" || input === "\n";
if ((isEnterKey || input === "l") && selectedRun) {
setDetailFocused(true);
setShowRunLogs(true);
return;