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()).
This commit is contained in:
Levi Neely 2026-08-03 10:56:20 +02:00
parent 04e1bfa228
commit d71e3eb8e4
1 changed files with 2 additions and 0 deletions

View File

@ -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))