- Session.Agent() now looks up activeAgentName in the agents slice instead of returning agents[0]. Falls back to first agent if unset. - Added SetActiveAgent(), FindAgent(), SaveFuncs() methods. - New() and AddAgent() set activeAgentName automatically. - CreateAgent: refactored to ADD to existing core session instead of overwriting it. If sess.Core exists, builds the new agent via agent.NewAgent() and adds it via Core.AddAgent(). - agent/new now lists all agents in the session directory. - 9P path handlers (rootReaddir/Stat/Open) use FindAgent() and AgentLogFor() to resolve agents by name/ID instead of using the first agent exclusively. - Added AgentLogFor(id) to fs Session for per-agent log lookup. |
||
|---|---|---|
| .. | ||
| session.go | ||