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:
wassname
2026-04-23 12:42:35 +08:00
parent 64f9d0242f
commit 39da73ce3c
5 changed files with 50 additions and 8 deletions
+9
View File
@@ -367,6 +367,15 @@ export function buildTelegramAgentEndPlan(options: {
};
}
if (options.stopReason === "aborted") {
if (options.hasFinalText) {
return {
kind: "text",
shouldClearPreview: false,
shouldDispatchNext,
shouldSendErrorMessage: false,
shouldSendAttachmentNotice: false,
};
}
return {
kind: "aborted",
shouldClearPreview: true,