mirror of
https://github.com/wassname/pi-telegram.git
synced 2026-06-27 16:46:21 +08:00
feat: improve model selection UX and fix queue/status behaviors
- Add search/filtering to the `/model` command with multi-word matching - Finalize partial stream previews (e.g. thinking blocks) on turn abort instead of clearing them - Dynamically format low-cost `$ value` metrics up to 5 decimal places in status outputs - Update queue tests to expect text-turn plans for aborted turns with partial text
This commit is contained in:
@@ -526,6 +526,16 @@ test("Agent end plan classifies turn outcomes correctly", () => {
|
||||
assert.equal(abortedPlan.kind, "aborted");
|
||||
assert.equal(abortedPlan.shouldClearPreview, true);
|
||||
assert.equal(abortedPlan.shouldDispatchNext, false);
|
||||
const abortedTextPlan = __telegramTestUtils.buildTelegramAgentEndPlan({
|
||||
hasTurn: true,
|
||||
stopReason: "aborted",
|
||||
preserveQueuedTurnsAsHistory: true,
|
||||
hasFinalText: true,
|
||||
hasQueuedAttachments: false,
|
||||
});
|
||||
assert.equal(abortedTextPlan.kind, "text");
|
||||
assert.equal(abortedTextPlan.shouldClearPreview, false);
|
||||
assert.equal(abortedTextPlan.shouldDispatchNext, false);
|
||||
const errorPlan = __telegramTestUtils.buildTelegramAgentEndPlan({
|
||||
hasTurn: true,
|
||||
stopReason: "error",
|
||||
|
||||
Reference in New Issue
Block a user