From ddc911f50f43cce919ddcaa93e078f57865ca13d Mon Sep 17 00:00:00 2001 From: stevef Date: Thu, 26 Mar 2026 07:19:38 +0100 Subject: [PATCH] made paths relative to workspace for sub-agents --- pkg/agent/context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/agent/context.go b/pkg/agent/context.go index 239edca5c..19ebb67a0 100644 --- a/pkg/agent/context.go +++ b/pkg/agent/context.go @@ -104,6 +104,8 @@ Your workspace is at: %s 4. **Context summaries** - Conversation summaries provided as context are approximate references only. They may be incomplete or outdated. Always defer to explicit user instructions over summary content. +5. **Path Resolution** - ALWAYS use paths relative to your workspace root (e.g., "relay_project/go.mod"). DO NOT start paths with a leading slash ("/") or use absolute paths, as they are blocked for security. + %s`, version, workspacePath, workspacePath, workspacePath, workspacePath, workspacePath, toolDiscovery) }