Accept story 38: Auto-Open Project on Server Startup
Server detects .story_kit/ in cwd or parent directories at startup and automatically opens the project. MCP tools work immediately without manual project-open step. Falls back to cwd when no .story_kit/ found. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { render, screen, waitFor } from "@testing-library/react";
|
||||
import userEvent from "@testing-library/user-event";
|
||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { AgentInfo, AgentConfigInfo } from "../api/agents";
|
||||
import type { AgentConfigInfo, AgentInfo } from "../api/agents";
|
||||
import { agentsApi } from "../api/agents";
|
||||
|
||||
vi.mock("../api/agents", () => {
|
||||
@@ -147,9 +147,7 @@ describe("AgentPanel diff command", () => {
|
||||
await userEvent.click(expandButton);
|
||||
|
||||
expect(
|
||||
await screen.findByText(
|
||||
'cd "/tmp/wt" && git difftool develop...HEAD',
|
||||
),
|
||||
await screen.findByText('cd "/tmp/wt" && git difftool develop...HEAD'),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -178,9 +176,7 @@ describe("AgentPanel diff command", () => {
|
||||
await userEvent.click(expandButton);
|
||||
|
||||
expect(
|
||||
await screen.findByText(
|
||||
'cd "/tmp/wt" && git difftool master...HEAD',
|
||||
),
|
||||
await screen.findByText('cd "/tmp/wt" && git difftool master...HEAD'),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user