rename workdir to cwd

Rename the user-facing 9P file and session key from "workdir" to
"cwd" for consistency with the /cwd command.
This commit is contained in:
Levi Neely 2026-04-13 15:51:48 +02:00
parent 2273f0e867
commit bebe3014fc
1 changed files with 2 additions and 2 deletions

View File

@ -968,7 +968,7 @@ func (s *agentCore) handleCommand(ctx context.Context, input string, handler Eve
case "/cwd":
if len(args) == 0 {
handler(infoEvent("workdir: " + s.WorkDir()))
handler(infoEvent("cwd: " + s.WorkDir()))
return true
}
dir := strings.Join(args, " ")
@ -976,7 +976,7 @@ func (s *agentCore) handleCommand(ctx context.Context, input string, handler Eve
handler(infoEvent("error: " + err.Error()))
return true
}
handler(infoEvent("workdir: " + dir))
handler(infoEvent("cwd: " + dir))
return true
case "/skills", "/tools":