feat: support numbered model selection

This commit is contained in:
xmanrui 2026-08-20 03:11:20 +08:00
parent 12112b0881
commit 8121557460
17 changed files with 230 additions and 152 deletions

View file

@ -346,7 +346,7 @@ test('DingTalk lists models without prompting and help advertises all four comma
});
await bridge.accept(message('models-dingtalk', '/models'));
assert.match(sent.at(-1).text, /dingtalk-provider\/model-one/);
assert.match(sent.at(-1).text, /1\. dingtalk-provider\/model-one/);
assert.equal(asks, 0);
assert.equal(creates, 0);
assert.equal(fixture.sessions.size, 0);
@ -356,6 +356,7 @@ test('DingTalk lists models without prompting and help advertises all four comma
for (const command of ['/models', '/model', '/stop', '/steer']) {
assert.equal(help.includes(command), true, command);
}
assert.match(help, /\/model 2/);
});
test('bridge maps a DingTalk direct conversation to one persistent Harness session', async () => {