mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 01:53:21 +08:00
fix(commands): send empty images list to the commands Typert endpoint
The Harness commands execute descriptor declares agentId, line, and images as required JSON wire fields (strict codec, no acceptsUndefined). The Host command executor only sent agentId and line, so the Typert gateway rejected every IM /compact call with arguments-invalid before the command could run. Send images: [] so /compact works from every IM channel.
This commit is contained in:
parent
d251bc280d
commit
03565e5a69
3 changed files with 10 additions and 3 deletions
|
|
@ -145,7 +145,10 @@ test('Host command executor invokes the commands Typert endpoint with the Sessio
|
|||
assert.deepEqual(requests, [{
|
||||
namespace: 'commands',
|
||||
method: 'execute',
|
||||
args: { agentId: 'session-one', line: '/compact' },
|
||||
// images must ride the wire as an empty array: the Harness commands
|
||||
// execute descriptor declares it a required JSON field, and omitting it
|
||||
// makes the Typert gateway reject the call with arguments-invalid.
|
||||
args: { agentId: 'session-one', line: '/compact', images: [] },
|
||||
signal,
|
||||
}]);
|
||||
assert.equal(createHarnessCommandExecutor({}), undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue