Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/tests/test_coding_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def test_workspace_file_index_lists_relative_paths_only(self) -> None:
headers={"Authorization": f"Bearer {alice_key}"},
)
dot_paths = [item["path"] for item in with_dot.json()["entries"]]
self.assertTrue(any(p.startswith(".evotown/") for p in dot_paths))
self.assertTrue(any(p == ".evotown" or p.startswith(".evotown/") for p in dot_paths))

def test_create_run_and_runner_writes_shared_context(self) -> None:
from infra import claude_agent_runs, workspaces
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/components/CodingAgentWorkspacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ import { WorkspaceFileList, type WorkspaceFileEntry } from "./WorkspaceFileList"
type Workspace = {
workspace_id: string; owner_account_id: string; name: string; root_path: string;
status: "active" | "archived"; created_at: string; updated_at: string;
template_id?: string;
};

type AgentTemplateSummary = {
template_id: string;
has_workspace_dir?: boolean;
workspace_dir_root?: string;
workspace_dir_prefix?: string;
};

type AgentRun = {
Expand Down Expand Up @@ -168,7 +176,9 @@ export function CodingAgentWorkspacePage() {
const ws = d.workspace || d;
if (ws.template_id) {
adminFetch("/api/v1/agent-templates").then(r => r.json()).then(td => {
const tpl = (td.templates || []).find((t: any) => t.template_id === ws.template_id);
const tpl = ((td.templates || []) as AgentTemplateSummary[]).find(
(t) => t.template_id === ws.template_id,
);
if (tpl?.has_workspace_dir) { setDevDirRoot(tpl.workspace_dir_root as "workspace" | "shared" | "server"); setDevDirPrefix((tpl.workspace_dir_prefix || "").replace(/\/$/, "")); }
}).catch(() => {});
}
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/components/McpPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ type McpService = {
service_type: string; endpoint_url: string; db_type: string;
status: string; source: string; workspace_id: string;
created_at: string; updated_at: string;
bound_workspaces?: number;
calls_24h?: number;
};

type McpSource = "internal" | "external" | "system";
Expand Down Expand Up @@ -219,8 +221,8 @@ export function McpPanel({ locale }: { locale: Locale }) {
"border-emerald-200 bg-emerald-50 text-emerald-700"
}`}>{SOURCE_LABELS[svc.source] || svc.source}</span>
</td>
<td className="px-4 py-3 text-center text-xs text-slate-500">{(svc as any).bound_workspaces ?? "-"}</td>
<td className="px-4 py-3 text-center text-xs text-slate-500">{(svc as any).calls_24h ?? "-"}</td>
<td className="px-4 py-3 text-center text-xs text-slate-500">{svc.bound_workspaces ?? "-"}</td>
<td className="px-4 py-3 text-center text-xs text-slate-500">{svc.calls_24h ?? "-"}</td>
<td className="px-4 py-3">
<label className="relative inline-flex items-center cursor-pointer">
<input
Expand Down
Loading