session: rename Config.Uname → Config.AgentID

This commit is contained in:
Levi Neely 2026-07-29 20:28:17 +02:00
parent 4643c4fca5
commit d6c56bd4f0
1 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ type Config struct {
AgentsDir string
SessionsDir string
SessionID string
Uname string // immutable user principal for 9P identity
AgentID string // unique agent identity
CWD string // working directory for tool execution and system prompt
History *History
Runtime *Runtime
@ -464,7 +464,7 @@ func New(cfg Config) *Session {
history: cfg.History,
runtime: rt,
cwd: paths.ExpandHome(cfg.CWD),
id: cfg.Uname,
id: cfg.AgentID,
agentName: cfg.AgentName,
agentsDir: cfg.AgentsDir,
promptEnvExtra: cfg.PromptEnvExtra,