Skip to content

Complete Agent Builder create→save→reuse flow by enabling saved-agent loading#1

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/review-cyber-security-app
Draft

Complete Agent Builder create→save→reuse flow by enabling saved-agent loading#1
Copilot wants to merge 5 commits intomainfrom
copilot/review-cyber-security-app

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 27, 2026

Agent creation was effectively one-way: configurations could be saved, but not loaded back into the builder for reuse/editing. This PR closes that gap by wiring saved-agent retrieval into the existing Agent Builder UI and adding a direct “Load” path.

  • Saved agent retrieval is now active

    • Re-enabled loadAgents() in AgentBuilder to fetch user agents from custom_agents and populate local state.
    • Replaced silent no-op behavior with lightweight warning logging on load failure.
  • Reuse/edit path added in builder

    • Added loadAgentIntoBuilder(agent) to hydrate form fields from a saved agent:
      • name/description/system prompt
      • model/category
      • conversation starters
      • capability toggles (web search, code execution, MCP, file access)
    • Switching to the Configure tab is automatic after loading.
  • Create tab now surfaces saved agents

    • Added a “Saved Agents” panel with count badge and compact list.
    • Each item includes a Load action to prefill the builder.
    • Introduced MAX_DISPLAYED_AGENTS constant for display limit control.
const loadAgents = async () => {
  try {
    const data = await customAgentsService.getAgents();
    setAgents(data);
  } catch (error) {
    console.warn('[AgentBuilder] Failed to load agents:', error);
  }
};

const loadAgentIntoBuilder = (agent: CustomAgent) => {
  setAgentName(agent.name);
  setInstructions(agent.system_prompt);
  setSelectedModel(agent.model);
  setCategory(agent.category || "security");
  setCapabilities({
    webSearch: agent.enable_web_search,
    codeExecution: agent.enable_code_execution,
    mcpTools: agent.enable_mcp,
    fileAccess: agent.enable_file_access,
  });
  setActiveTab("configure");
};

Agent Builder update


⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

@docs-page
Copy link
Copy Markdown

docs-page Bot commented Mar 27, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/hlsitechio/crowbyte~1

Documentation is deployed and generated using docs.page.

Copilot AI changed the title [WIP] Review agents cyber security application for enhancements Normalize Copilot rate-limit stream errors into clear chat messages Mar 28, 2026
Copilot AI changed the title Normalize Copilot rate-limit stream errors into clear chat messages Complete Agent Builder create→save→reuse flow by enabling saved-agent loading Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants