picoclaw/pkg/agent
yuchou87 a7a4e88fff fix(agent): use fallback workspace path for MCP initialization
Use cfg.WorkspacePath() as a fallback when defaultAgent is nil or
its Workspace is empty. This ensures MCP servers with relative
envFile paths can always resolve them correctly, even when agents
haven't been fully initialized yet.

Previously, workspacePath would be an empty string in these cases,
causing relative envFile paths to fail to resolve. Now the fallback
guarantees a valid workspace path is always provided to
LoadFromMCPConfig.

Addresses Copilot code review feedback.
2026-02-19 20:03:00 +08:00
..
context.go misc: fmt code 2026-02-13 17:51:47 +08:00
instance.go merge: sync upstream/main (PR #213) into feat/multi-agent-routing 2026-02-18 11:39:14 -03:00
loop.go fix(agent): use fallback workspace path for MCP initialization 2026-02-19 20:03:00 +08:00
loop_test.go merge: sync upstream/main into feat/multi-agent-routing 2026-02-16 10:34:55 -03:00
memory.go misc: fmt code 2026-02-13 17:51:47 +08:00
registry.go merge: sync upstream/main (PR #213) into feat/multi-agent-routing 2026-02-18 11:39:14 -03:00
registry_test.go merge: sync upstream/main into feat/multi-agent-routing 2026-02-13 12:24:26 -03:00