Compare commits

...
Author SHA1 Message Date
l0ng-ai 00b1be30f8 fix(agents): shorten the import link in the empty task list
The empty Agents list now reads "Import Sessions…" instead of the full
"Import Sessions from Other Apps…", which wrapped awkwardly in a narrow
tool window. The command title and dialog title keep the full wording.
2026-11-17 19:22:57 +08:00
4 changed files with 5 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -411,7 +411,7 @@ export function AgentsView() {
{/* Docked, the list shows in the history popup, which lists the sessions itself. */}
{!inline && (
<button type="button" className={styles.link} onClick={showImportSessions}>
<T>Import Sessions from Other Apps…</T>
<T>Import Sessions…</T>
</button>
)}
</div>
+2 -2
View File
@@ -2202,7 +2202,7 @@ describe("sessions from other apps", () => {
fireEvent.click(screen.getByRole("button", { name: "Agent sessions" }));
await waitFor(() => expect(screen.getByText("Login fix")).toBeInTheDocument());
expect(screen.getByText("No agent tasks yet")).toBeInTheDocument();
expect(screen.queryByRole("button", { name: "Import Sessions from Other Apps…" })).toBeNull();
expect(screen.queryByRole("button", { name: "Import Sessions…" })).toBeNull();
});
it("keeps two pending imports disabled", async () => {
@@ -2661,7 +2661,7 @@ describe("import sessions dialog", () => {
it("opens from the empty task list", () => {
act(() => useAgents.setState({ tasks: new Map() }));
render(<AgentsView />);
fireEvent.click(screen.getByRole("button", { name: "Import Sessions from Other Apps…" }));
fireEvent.click(screen.getByRole("button", { name: "Import Sessions…" }));
expect(useAgents.getState().importOpen).toBe(true);
});
+1
View File
@@ -82,6 +82,7 @@
"Choose another model before starting.": "Choose another model before starting.",
"Rename Agent Task Group": "Rename Agent Task Group",
"Remove Agent Task Group": "Remove Agent Task Group",
"Import Sessions…": "Import Sessions…",
"Import Sessions from Other Apps…": "Import Sessions from Other Apps…",
"Import Sessions from Other Apps": "Import Sessions from Other Apps",
"No sessions from other apps": "No sessions from other apps",
+1
View File
@@ -2639,6 +2639,7 @@
"Services actions": "服务操作",
"Session finished": "会话已结束",
"Sessions from other apps": "来自其他应用的智能体会话",
"Import Sessions…": "导入会话…",
"Import Sessions from Other Apps…": "从其他应用导入智能体会话…",
"Import Sessions from Other Apps": "从其他应用导入智能体会话",
"No sessions from other apps": "没有来自其他应用的智能体会话",