Skip to content

Commit ef21b23

Browse files
chore: remove disclaimer
1 parent 7cbb644 commit ef21b23

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/components/agent-preview-react.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,18 +186,6 @@ export function AgentPreviewReact(props: {
186186
setHeader(`New session started with "${props.name}" (${session.sessionId})`);
187187
await sleep(500); // Add a short delay to make it feel more natural
188188
setIsTyping(false);
189-
// Add disclaimer for local agents before the agent's first message
190-
const initialMessages = [];
191-
if (isLocalAgent) {
192-
initialMessages.push({
193-
role: 'system',
194-
content:
195-
'Agent preview does not provide strict adherence to connection endpoint configuration and escalation is not supported.\n\nTo test escalation, publish your agent then use the desired connection endpoint (e.g., Web Page, SMS, etc).',
196-
timestamp: new Date(),
197-
});
198-
}
199-
initialMessages.push({ role: name, content: session.messages[0].message, timestamp: new Date() });
200-
setMessages(initialMessages);
201189
} catch (e) {
202190
const sfError = SfError.wrap(e);
203191
setIsTyping(false);

test/commands/agent/validate/authoring-bundle.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ describe('Agent Validate Authoring Bundle', () => {
2727
it('should have correct prompt messages', () => {
2828
const prompts = AgentValidateAuthoringBundle['FLAGGABLE_PROMPTS'];
2929

30-
expect(prompts['api-name'].message).to.equal('API name of the authoring bundle you want to validate.');
30+
expect(prompts['api-name'].message).to.equal(
31+
'API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.'
32+
);
3133
expect(prompts['api-name'].promptMessage).to.equal('API name of the authoring bundle to validate');
3234
});
3335
});

0 commit comments

Comments
 (0)