fix: display session ID after CLI invoke completes#957
fix: display session ID after CLI invoke completes#957jesseturner21 merged 2 commits intoaws:mainfrom
Conversation
The streaming and non-streaming invoke responses include a session ID from the runtime, but the CLI paths discarded it. Now prints the session ID and a resume command hint after invoke output.
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-957-tarball/aws-agentcore-0.9.1.tgz |
|
The AGUI protocol branch in Suggested fix: capture return {
success: !hasError,
agentName: agentSpec.name,
targetName: selectedTargetName,
response,
sessionId: aguiResult.sessionId,
logFilePath: logger.logFilePath,
};(A2A intentionally returns |
|
Reviewed the PR. The one serious issue I spotted — the AGUI branch in |
|
Reviewed — the only serious issue I found (the AGUI branch not propagating |
|
Good catch @jesseturner21 I added it in my latest commit |
Summary
agentcore invokecompletes in non-interactive CLI mode (both--streamand default)Closes #664
Changes
sessionIdtoInvokeResultinterfacesessionIdfrominvokeAgentRuntimeStreaming()andinvokeAgentRuntime()responses and include it in the returned resultExample output
Test plan
agentcore invoke "hello" --stream— session ID printed after streamagentcore invoke "hello"— session ID printed after responseagentcore invoke "hello" --json— session ID included in JSON output