Skip to content

@W-22167805@ add sf agent trace delete command#410

Open
WillieRuemmele wants to merge 6 commits intowr/listTracesfrom
wr/deleteTraces
Open

@W-22167805@ add sf agent trace delete command#410
WillieRuemmele wants to merge 6 commits intowr/listTracesfrom
wr/deleteTraces

Conversation

@WillieRuemmele
Copy link
Copy Markdown
Contributor

@WillieRuemmele WillieRuemmele commented Apr 30, 2026

Work Item

@W-22167805@

Summary

Adds the sf agent trace delete command for deleting local trace files recorded during agent preview sessions. No org connection required.

Changes

  • New command: sf agent trace delete
  • Flags: --agent (substring match), --session-id, --older-than (e.g. 7d, 2w, 24h), --no-prompt
  • Shows a preview table before deleting; prompts for confirmation unless --no-prompt is passed
  • Messages: messages/agent.trace.delete.md
  • Schema and snapshot updated

Files Changed

  • src/commands/agent/trace/delete.ts
  • messages/agent.trace.delete.md
  • schemas/agent-trace-delete.json
  • command-snapshot.json
  • test/commands/agent/trace/delete.test.ts

Test Plan

  • 22 unit tests passing
  • npm run build and npm test pass cleanly
  • Schema and deprecation snapshot regenerated

Dependencies

@WillieRuemmele WillieRuemmele requested a review from a team as a code owner April 30, 2026 17:18
@WillieRuemmele WillieRuemmele changed the base branch from main to wr/listTraces April 30, 2026 17:42
@WillieRuemmele WillieRuemmele changed the title @W-21785101@ add sf agent preview trace delete command @W-22167805@ add sf agent trace delete command Apr 30, 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.

1 participant