From d71e3eb8e414ca478ef1924725cf1964b5cf38b0 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 3 Aug 2026 10:56:20 +0200 Subject: [PATCH] fs: set agent dir UID to agent ID, GID to 'agent' Agent directories now have proper ownership: UID is the agent's immutable 12-char hex identity, GID is 'agent'. Consistent with session directories which use UID(s.Uname()). --- fs/agentfiles.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/agentfiles.go b/fs/agentfiles.go index c7abe04..e3d7e63 100644 --- a/fs/agentfiles.go +++ b/fs/agentfiles.go @@ -32,6 +32,8 @@ func listAgents(ctx HandlerCtx) ([]FsNodeDecl, error) { dirName := a.Name() agentDir := Dir(dirName, + UID(a.ID()), + GID("agent"), Alias(a.ID()), Leaf("prompt", 0666, Write(func(_ HandlerCtx, data []byte) error { input := strings.TrimSpace(string(data))