You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/08/26 14:58:17 UTC
(maka) 26/26: test(desktop): drop the message-state double the transient fixture replaced
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch fix/canonical-message-projection
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 9264dfb70246271cd72309437111ba379371e41c
Author: AstroHan <le...@outlook.com>
AuthorDate: Wed Aug 26 15:16:17 2026 +0800
test(desktop): drop the message-state double the transient fixture replaced
Transient rows moved out of the canonical `messages` array into their own map,
so nothing constructs `createMessageState` any more and Knip fails the build
on it.
Generated-by: Claude Code
---
.../src/main/__tests__/app-shell-chat-actions-fixture.ts | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/apps/desktop/src/main/__tests__/app-shell-chat-actions-fixture.ts b/apps/desktop/src/main/__tests__/app-shell-chat-actions-fixture.ts
index d4ba820ef..19c8e86b7 100644
--- a/apps/desktop/src/main/__tests__/app-shell-chat-actions-fixture.ts
+++ b/apps/desktop/src/main/__tests__/app-shell-chat-actions-fixture.ts
@@ -24,7 +24,6 @@
* actions gain a dependency.
*/
-import type { StoredMessage } from '@maka/core/session';
import type { LiveTurnProjection, TransientUserMessageProjection } from '@maka/ui';
/** Installs a `window.maka` bridge double; the returned function restores it. */
@@ -92,18 +91,6 @@ export function createTransientState() {
};
}
-export function createMessageState() {
- const messages: StoredMessage[] = [];
- return {
- messages,
- setMessages(updater: StoredMessage[] | ((current: StoredMessage[]) => StoredMessage[])) {
- const next = typeof updater === 'function' ? updater([...messages]) : updater;
- messages.length = 0;
- messages.push(...next);
- },
- };
-}
-
export function createActionsDeps() {
return {
uiLocale: 'en' as const,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org