In using the Agentspan demo environment it appears tools were being 'forgotten'. Using AI it appears it found the possible issue in AgentService:
Look at the start() method — it always calls metadataDAO.updateWorkflowDef(def) which overwrites the stored workflow definition with a freshly compiled one on every agent/start call. That's why tools get wiped.
In using the Agentspan demo environment it appears tools were being 'forgotten'. Using AI it appears it found the possible issue in AgentService:
Look at the start() method — it always calls metadataDAO.updateWorkflowDef(def) which overwrites the stored workflow definition with a freshly compiled one on every agent/start call. That's why tools get wiped.