Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix: chat cache and win claude init

Gus9653f32157ed
diff --git a/src/cli/daemon/agent/claude.ts b/src/cli/daemon/agent/claude.ts
index 7b33f4811..0028a5f8f 100644
--- a/src/cli/daemon/agent/claude.ts
+++ b/src/cli/daemon/agent/claude.ts
@@ -33,6 +33,7 @@ export class ClaudeBackend implements AgentBackend {
cwd: options.cwd,
stdio: ["pipe", "pipe", "pipe"],
env: { ...process.env, ...options.env },
+ shell: process.platform === "win32",
});
if (!proc.pid) {
diff --git a/src/cli/daemon/agent/codex.ts b/src/cli/daemon/agent/codex.ts
index 24f50d407..f53024700 100644
--- a/src/cli/daemon/agent/codex.ts
+++ b/src/cli/daemon/agent/codex.ts
@@ -50,6 +50,7 @@ export class CodexBackend implements AgentBackend {
cwd: options.cwd,
stdio: ["pipe", "pipe", "pipe"],
env: { ...process.env, ...options.env },
+ shell: process.platform === "win32",
});
if (!proc.pid) {
diff --git a/src/cli/daemon/agent/opencode.ts b/src/cli/daemon/agent/opencode.ts
index ec246895e..aa4e2cfea 100644
--- a/src/cli/daemon/agent/opencode.ts
+++ b/src/cli/daemon/agent/opencode.ts
@@ -25,6 +25,7 @@ export class OpenCodeBackend implements AgentBackend {
cwd: options.cwd,
stdio: ["ignore", "pipe", "pipe"],
env: { ...process.env, ...options.env, OPENCODE_PERMISSION: '{"*":"allow"}' },
+ shell: process.platform === "win32",
});
if (!proc.pid) {
diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsx
index 76030d199..b75a867c7 100644
--- a/src/web/src/components/agent-chat/agent-chat-view.tsx
+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx
@@ -502,6 +502,8 @@ export function AgentChatView({
setInput(localStorage.getItem(`chat-draft:${agentId}:${targetConvId ?? 'default'}`) ?? "");
if (hasCacheHit) {
setMessages(cached!);
+ } else {
+ setMessages([]);
}
});
async function load() {