refactor(command): remove history command

This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-14 23:02:26 +08:00
1 parent efec4a608d
commit c927808aff
30 files changed
+58 -278

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ export function installSubagentDockApi() {
if (url.origin !== location.origin || !url.pathname.startsWith("/api/")) return original(input, init);
if (url.pathname === "/api/settings") return Response.json(settings);
if (url.pathname === "/api/commands") return Response.json({ commands: [
{ command: "/history", title: "Chat history", description: "Show recent messages", icon: "history", lifecycle: "side_channel", accepts_args: true },
{ command: "/inspect", title: "Inspect session", description: "Inspect a session", icon: "history", lifecycle: "side_channel", accepts_args: true },
] });
if (url.pathname.endsWith("/subagents")) return Response.json({ tasks: url.pathname.includes(encodeURIComponent(`websocket:${chatId}`)) ? tasks : [] });
if (url.pathname.includes("/subagents/") && url.pathname.endsWith("/webui-thread")) {
+1 -1
View File
@@ -702,7 +702,7 @@ for (const width of [1440, 390]) {
await trigger.click();
await settledMotion(page.getByTestId("subagent-task-dock"));
const input = page.getByRole("textbox").first();
for (const [query, inserted] of [["/", "/history"], ["@ref", "@reference "]]) {
for (const [query, inserted] of [["/", "/inspect"], ["@ref", "@reference "]]) {
await input.fill(query);
const option = page.getByRole("option").first();
await expect(option).toBeVisible();