Skip to content

feat: add agent preview debug mode - W-18417013#141

Merged
cristiand391 merged 7 commits intomainfrom
sh/add-preview-debug-mode
May 16, 2025
Merged

feat: add agent preview debug mode - W-18417013#141
cristiand391 merged 7 commits intomainfrom
sh/add-preview-debug-mode

Conversation

@shetzel
Copy link
Copy Markdown
Contributor

@shetzel shetzel commented May 13, 2025

What does this PR do?

Adds a new flag to the agent preview command to enable apex debug logs during agent conversation preview. When this flag is enabled, during each agent message send/retrieve that executes apex code there will be an apex debug log file written to the provided output directory.

What issues does this PR fix or reference?

@W-18417013@

@shetzel shetzel requested a review from a team as a code owner May 13, 2025 17:42
Comment thread messages/agent.preview.md Outdated
Copy link
Copy Markdown
Contributor

@jshackell-sfdc jshackell-sfdc left a comment

Choose a reason for hiding this comment

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

See my suggestion.

Co-authored-by: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com>
@cristiand391
Copy link
Copy Markdown
Member

QA notes:
setup:
afdx testing org with agent api user shared by Steve

sf agent preview --connected-app-user agent-user -x creates proper trace flag for apex
✅ reuses existing trace flag (30min expiration window)
🟡 when passing --apex-debug, the final msg doesn't mention where the log file was written
Screenshot 2025-05-15 at 13 43 12
🔴 If I answer No to save transcripts, no log is written:
Screenshot 2025-05-15 at 13 46 32

@cristiand391
Copy link
Copy Markdown
Member

QA update:

🟡 when passing --apex-debug, the final msg doesn't mention where the log file was written

✅ fixed

🔴 If I answer No to save transcripts, no log is written:

with --apex-debug it saves transcripts by default (no opt-out) so logs are always written

without --apex-debug saving transcripts can be skipped.

@cristiand391 cristiand391 merged commit 32368ed into main May 16, 2025
13 checks passed
@cristiand391 cristiand391 deleted the sh/add-preview-debug-mode branch May 16, 2025 14:39
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