fix: don't clobber tools on resume (#118)

This commit is contained in:
Charles Packer
2025-11-23 22:30:13 -08:00
committed by GitHub
parent 8cab132513
commit 4862a87fb1
4 changed files with 189 additions and 3 deletions

View File

@@ -438,6 +438,13 @@ export default function App({
const agent = await client.agents.retrieve(agentId);
setLlmConfig(agent.llm_config);
setAgentName(agent.name);
// Detect current toolset from attached tools
const { detectToolsetFromAgent } = await import("../tools/toolset");
const detected = await detectToolsetFromAgent(client, agentId);
if (detected) {
setCurrentToolset(detected);
}
} catch (error) {
console.error("Error fetching agent config:", error);
}