mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 03:03:24 +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
|
|
@ -15,7 +15,11 @@ export function createHarnessCommandExecutor(ctx, provided) {
|
|||
return (sessionId, line, options = {}) => gateway.invoke({
|
||||
namespace: 'commands',
|
||||
method: 'execute',
|
||||
args: { agentId: sessionId, line },
|
||||
// The Harness commands execute descriptor declares agentId, line, and
|
||||
// images as required JSON wire fields; omitting images makes the Typert
|
||||
// gateway reject the call with arguments-invalid, so IM /compact always
|
||||
// carried an empty image list.
|
||||
args: { agentId: sessionId, line, images: [] },
|
||||
signal: options.signal,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue