Apply PR #20039: feat: bash->shell tool + pwsh/powershell/cmd/bash specific tool definitions so agents work better

This commit is contained in:
opencode-agent[bot] 2026-04-27 20:46:10 +00:00
commit af8ea50ab2
60 changed files with 885 additions and 347 deletions

View file

@ -14,8 +14,9 @@ export function SessionPermissionDock(props: {
const toolDescription = () => {
const key = `settings.permissions.tool.${props.request.permission}.description`
const fallback = props.request.permission === "shell" ? "settings.permissions.tool.bash.description" : key
const value = language.t(key as Parameters<typeof language.t>[0])
if (value === key) return ""
if (value === key) return fallback === key ? "" : language.t(fallback as Parameters<typeof language.t>[0])
return value
}