Skip to content

Session ID not returned after agentcore invoke --stream #664

@notgitika

Description

@notgitika

Description

After running agentcore invoke with --stream, there is no way to retrieve the session ID without digging into the logs. Users need the session ID for follow-up operations (e.g., continuing a session, debugging).

Steps to Reproduce

  1. Run agentcore invoke "My name is Sarah and I prefer email updates. I recently bought a Smart Watch." --stream
  2. Observe the streamed output
  3. Try to find the session ID from the command output

Expected Behavior

The session ID should be displayed in the CLI output (e.g., printed at the end of the stream, or available via a flag like --show-session-id), so users can easily reference it without searching logs.

Actual Behavior

The session ID is not surfaced in the CLI output. Users must go to the logs to find it.

CLI Version

N/A

Operating System

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions