mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
9f0f914ad7
Resolves conflicts after the agent loop refactor on main: - pkg/agent/loop.go was deleted upstream (logic split into agent.go, agent_init.go, pipeline.go, etc.); accepted the deletion. - Moved the delegate tool registration block from the old loop.go into registerSharedTools in pkg/agent/agent_init.go, immediately after the spawn/spawn_status block. Logic and gating (len(registry.ListAgentIDs()) > 1) are unchanged. - pkg/agent/subturn.go and pkg/agent/subturn_test.go merged cleanly on their own; TargetAgentID field, validation, registry lookup, and tests all preserved. Verified locally: - go build ./pkg/agent/... ./pkg/tools/... clean - go vet clean - TestDelegateTool* (17 cases) pass - TestSpawnSubTurn_TargetAgentID_* (3 cases) pass - TestDelegateToolRegistered_MultiAgent / _SingleAgent pass - full pkg/agent + pkg/tools test suites green