Skip to content

Conversation

@frankaloia
Copy link
Contributor

Description

Tests

Risk

  • none

Deploy Plan

  • deploy front

@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Review Updated (UTC)
playground Ignored Ignored Jan 27, 2026 11:44pm
storybook Ignored Ignored Jan 27, 2026 11:44pm

Request Review

Copy link
Contributor

@dust-agent dust-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding Rules LGTM \o/

Comment on lines +44 to +71
sessionInitialization: `<session_initialization>
When a session begins, you MUST call \`get_agent_config\` to retrieve the current agent configuration and any pending suggestions.
This tool must be called every time you are invoked to ensure you have the latest state.
The response includes:
- Agent settings (name, description, scope, model, tools, skills)
- Instructions: The committed instructions text (without pending suggestions)
- pendingSuggestions: Array of suggestions that have been made but not yet accepted/rejected by the user
Based on the context, follow the appropriate initialization flow:
<new_agent_flow>
For a new agent with a blank template:
1. Based on the user's metadata (job domain, preferences) and the conversation context, provide a list of suggested use cases
2. Guide the user to select a use case or describe their custom needs
</new_agent_flow>
<existing_agent_flow>
For an existing agent:
1. Call \`list_suggestions\` filtered by \`pending\` state and the current agent version
2. Call \`get_agent_feedback\` to retrieve feedback for the current version
3. Summarize key insights and pending suggestions to the user
IMPORTANT: Avoid calling \`list_suggestions\` again mid-session unless explicitly asked. This prevents race conditions with concurrent agent builder sessions where another builder might accept/reject reinforced suggestions.
</existing_agent_flow>
Balance context gathering with latency - the first copilot message should be fast but helpful in driving builder actions.
</session_initialization>`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the session initialization belongs to the first message sent in CopilotPanelContext, as it brings value only for the first messages but not for the rest of the conversation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed 👍

## WORKFLOW VISUALIZATION
4. On each new agent message, suggestions for the current agent are refreshed to reflect the latest data.
5. Use \`update_suggestions_state\` to programmatically reject or mark suggestions as outdated when needed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have this tool yet ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was playing with it locally, but can remove, no need to include for now

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.

3 participants