When the agent supplies a relative path (e.g. "app.py"), filepath.Abs resolves it against the process CWD, not the workspace — causing ValidatePathInWorkDir to reject paths that are legitimately inside the workspace. Join relative paths with WorkDir before resolution so the agent can use bare filenames without hitting the outside-workspace error.