Skip to content

ADE CLI chat show passes sessionId in wrong shape and crashes with sessionId.trim #245

@arul28

Description

@arul28

Summary

ade chat show <session-id> --json crashes with sessionId.trim is not a function. Calling the same backend action with --args-list-json works, so the friendly CLI wrapper appears to be passing an object where the action expects a raw string session id.

Repro

After creating a chat session, run:

/Applications/ADE.app/Contents/Resources/ade-cli/bin/ade chat show a2dc8109-576c-46d3-b863-214335ee0faa --json

Actual

ade: sessionId.trim is not a function
{
  "code": -32011,
  "message": "sessionId.trim is not a function"
}

Expected

ade chat show <session-id> --json should return the chat/session summary, or a clear user-facing validation error if the session does not exist.

Workaround that succeeded

/Applications/ADE.app/Contents/Resources/ade-cli/bin/ade actions run chat.getSessionSummary \
  --args-list-json '["a2dc8109-576c-46d3-b863-214335ee0faa"]' \
  --json

That returned the session summary correctly.

Likely source

The wrapper likely builds an object like { sessionId: "..." } for an action implementation that expects a raw string and calls sessionId.trim() directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions