You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address PR review feedback and improve --all end-all-agents path
- Remove all explicit Lifecycle.emitTelemetry() calls (CLI framework handles it)
- Change PreviewEndPartialFailure exit code from 4 to 6
- Use sessionType as discriminator for agent type (published vs local)
- Re-set sessionId after ProductionAgent.endSession() clears it before removeCache
- Clean local cache on server error for --all paths to prevent stale buildup
- Show per-agent breakdown with local/published label in confirmation prompt
- Use displayName in prompt breakdown, falling back to agentId
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: messages/agent.preview.end.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ You must have previously started a programmatic agent preview session with the "
8
8
9
9
The original "agent preview start" command outputs a session ID which you then use with the --session-id flag of this command to end the session. You don't have to specify the --session-id flag if an agent has only one active preview session. You must also use either the --authoring-bundle or --api-name flag to specify the API name of the authoring bundle or the published agent, respectively. To find either API name, navigate to your package directory in your DX project. The API name of an authoring bundle is the same as its directory name under the "aiAuthoringBundles" metadata directory. Similarly, the published agent's API name is the same as its directory name under the "Bots" metadata directory.
10
10
11
-
Use the --all flag together with either --api-name or --authoring-bundle to end all active preview sessions for a specific agent at once. Alternatively, use --all with only --target-org to end all active preview sessions for every agent found in the local session cache.
11
+
Use the --all flag to end all active preview sessions at once. You can combine --all with --api-name or --authoring-bundle to end only sessions for a specific agent, or use --all on its own to end every session across all agents in the project.
12
12
13
13
# flags.session-id.summary
14
14
@@ -62,17 +62,13 @@ No active preview sessions found.
62
62
63
63
Ended %s preview session(s).
64
64
65
-
# output.skippingSessionMissingDisplayName
66
-
67
-
Skipping session '%s' for agent '%s': no agent name found in cache.
68
-
69
65
# prompt.confirmAll
70
66
71
67
About to end %s preview session(s) for agent '%s'. Continue?
72
68
73
69
# prompt.confirmAllAgents
74
70
75
-
About to end %s preview session(s) across all agents. Continue?
71
+
About to end %s preview session(s) across %s agent(s). Continue?
0 commit comments