Skip to content
Source
Sign inSign up
TanStack/ai

[ai-harness] workspaceTools: with workspace.bind, an approved outside path is still refused #2236

Openviclafouch(GitHub profile, opens in a new tab) opened this issue 1 comment

Version: @tanstack/ai-harness 0.4.0

With workspaceTools({ workspace: { bind }, outside: 'ask' }) and permissions({ root }), a file tool call on a path outside the root asks a person: permissions() marks the outside path as risky. After a yes, the tool still refuses it: "Path ... is outside the workspace, and no rule allows it. With a workspace for each thread, the call cannot ask for it." (first-party/coding/workspace.ts, the check of the tool). The person approves a call that cannot run.

Ask: under a binder, either let an approved outside path run, or do not ask for it, so the refusal comes before the question.

  1. tanstack-source added labelsbug

  2. Thanks for the report, @viclafouch! To help us reproduce this, could you add a minimal reproduction?

    A runnable example makes fixes dramatically faster — you can fork one of the official examples, or use StackBlitz / CodeSandbox. For TypeScript-only issues, a TS Playground link works too.

    Automated triage — a maintainer will follow up.
  3. github-actions[bot](GitHub profile, opens in a new tab) added labelswaiting-on: maintainer

Sign in to join this conversation.