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.
Summary
ade chat show <session-id> --jsoncrashes withsessionId.trim is not a function. Calling the same backend action with--args-list-jsonworks, 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:
Actual
Expected
ade chat show <session-id> --jsonshould 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"]' \ --jsonThat 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 callssessionId.trim()directly.