From eaf61a1e8a2aec436137dacd19f6162d58b2401f 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 2666faf91..09b649761 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) }