execute.Decl is now a function (func(workdir string) func() tools.Server) rather than a var, making workdir an explicit dependency rather than an implicit os.Getwd() call. execute.Server stores the workdir and sets cmd.Dir accordingly; falls back to os.Getwd() if empty. AgentCoreConfig gains WorkDir string, threaded into BuildAgentEnv and the system prompt. The /agent switch uses s.workdir so the correct directory is preserved across agent switches. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| context.go | ||
| core.go | ||
| hooks.go | ||
| loop.go | ||
| session.go | ||
| signals.go | ||
| signals_unix.go | ||
| signals_windows.go | ||
| state.go | ||
| types.go | ||