mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
Coalesce sequential status messages
Rapidly changing settings no longer spams the chat log with multiple status lines. fixes #365
This commit is contained in:
parent
ac6f5006a9
commit
a2afa490f1
3 changed files with 7 additions and 6 deletions
|
|
@ -19,8 +19,8 @@ describe("InteractiveMode.showStatus", () => {
|
|||
const fakeThis: any = {
|
||||
chatContainer: new Container(),
|
||||
ui: { requestRender: vi.fn() },
|
||||
lastStatusSpacer: null,
|
||||
lastStatusText: null,
|
||||
lastStatusSpacer: undefined,
|
||||
lastStatusText: undefined,
|
||||
};
|
||||
|
||||
(InteractiveMode as any).prototype.showStatus.call(fakeThis, "STATUS_ONE");
|
||||
|
|
@ -38,8 +38,8 @@ describe("InteractiveMode.showStatus", () => {
|
|||
const fakeThis: any = {
|
||||
chatContainer: new Container(),
|
||||
ui: { requestRender: vi.fn() },
|
||||
lastStatusSpacer: null,
|
||||
lastStatusText: null,
|
||||
lastStatusSpacer: undefined,
|
||||
lastStatusText: undefined,
|
||||
};
|
||||
|
||||
(InteractiveMode as any).prototype.showStatus.call(fakeThis, "STATUS_ONE");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue