added agent instructions drawer - #599
Open
vinit-truefoundry wants to merge 2 commits into
Open
Conversation
vinit-truefoundry
requested review from
govindavashishtha,
kumarsks619,
qaifi-tf,
sajal-truefoundry and
sayan-truefoundry
as code owners
September 4, 2026 13:43
|
| Name | Type |
|---|---|
| @truefoundry/trueforge-ui | Minor |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit aea1e1d. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
https://linear.app/truefoundry/issue/FRONTEN-2452/agent-builder-make-instructions-experience-same-as-our-product
Note
Medium Risk
Changes how agent instructions are edited and persists a new
messagesfield on the agent spec at runtime, which could affect builder save behavior if context and drawer state diverge.Overview
Replaces the inline instructions textarea in the agent config panel with a summary row (preview + initial user-message count) that opens a dedicated
instructionseditor.Adds
AgentInstructionsDrawer: a right-side drawer to edit agent instructions and manage initial session user messages (add, edit, remove), with explicit Save (blank messages are dropped; closing without Save discards edits).agentConfigMessagesreads/writesspec.messagesvia SDK-shapeduser.messageentries until the UI contract exposes them fully.AgentConfigEditorsandAgentConfigDrawerContainerwire the drawer so Save can commit instructions and messages in oneupdateAgentSpec(container usesonInstructionsSave; editors fall back toonChangewhen no handler). The component is exported and registered in default slots; tests cover drawer behavior and the integrated commit path.Reviewed by Cursor Bugbot for commit b7915c5. Bugbot is set up for automated code reviews on this repo. Configure here.