Compare commits

..
Author SHA1 Message Date
paseo-bot[bot]andOuyang Xingyuan 27ad482129 fix(server): keep slow direct connections alive during large transfers
A direct client sees activity only after a complete WebSocket message arrives. Send large responses in existing transport chunks so the client sees progress while it waits for the full response.

Co-authored-by: Ouyang Xingyuan <galaxyroaming@qq.com>
2026-11-23 22:51:42 +00:00
31 changed files with 122 additions and 411 deletions
-20
View File
@@ -1,25 +1,5 @@
# Changelog
## 0.17.4 - 2026-11-23
### Fixed
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android ([#10499](https://github.com/getpaseo/paseo/pull/10499))
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning ([#10586](https://github.com/getpaseo/paseo/pull/10586))
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system ([#10555](https://github.com/getpaseo/paseo/pull/10555) by [@yzim](https://github.com/yzim))
- Fixed interrupt and steer messages to archived agents being queued without starting a turn ([#10611](https://github.com/getpaseo/paseo/pull/10611) by [@thomasvan](https://github.com/thomasvan))
- Fixed Hermes Shell rows omitting part of the command ([#10614](https://github.com/getpaseo/paseo/pull/10614))
- Fixed OpenCode Go usage for logins stored in the OpenCode 2 database, including Console sign-ins and API keys ([#8729](https://github.com/getpaseo/paseo/pull/8729), [#10612](https://github.com/getpaseo/paseo/pull/10612))
- Fixed existing OpenCode sessions failing to reopen after Paseo tool definitions change ([#10533](https://github.com/getpaseo/paseo/pull/10533) by [@Peanut-HZM](https://github.com/Peanut-HZM))
- Fixed Paseo tools missing from agents that use MCP protocol version `2026-07-28` ([#10558](https://github.com/getpaseo/paseo/pull/10558) by [@apple-ouyang](https://github.com/apple-ouyang))
- Fixed Codex MCP startup failures missing from daemon warning logs ([#10566](https://github.com/getpaseo/paseo/pull/10566))
- Fixed the daemon exiting when it closes a session after the plugin process has stopped ([#10585](https://github.com/getpaseo/paseo/pull/10585))
- Fixed Git commands selecting the wrong repository when a directory has the layout of a bare repository ([#10587](https://github.com/getpaseo/paseo/pull/10587))
- Fixed Claude Auto permission mode being unavailable on Bedrock and Vertex ([#6904](https://github.com/getpaseo/paseo/pull/6904))
- Fixed the sidebar host settings button requiring two clicks to open settings ([#10562](https://github.com/getpaseo/paseo/pull/10562) by [@ShalokShalom](https://github.com/ShalokShalom))
- Fixed the Changes pane not offering Push for a new branch that was never pushed in a regular checkout ([#10631](https://github.com/getpaseo/paseo/pull/10631))
- Fixed the daemon using the wrong model catalog when Hub sends a workspace directory for trigger validation ([#10582](https://github.com/getpaseo/paseo/pull/10582))
## 0.17.3 - 2026-11-22
### Fixed
-20
View File
@@ -1,25 +1,5 @@
# Changelog
## 0.17.4 - 2026-11-23
### 修复
- 修复 Android 上嵌套编号列表的编号与正文重叠,以及列表中的引用与后续消息重叠的问题 ([#10499](https://github.com/getpaseo/paseo/pull/10499))
- 修复 Android 终端输入,要求键盘不将输入内容用于个性化学习 ([#10586](https://github.com/getpaseo/paseo/pull/10586))
- 修复在不区分大小写的文件系统上,目录路径大小写不一致导致对话消失的问题 ([#10555](https://github.com/getpaseo/paseo/pull/10555),贡献者:[@yzim](https://github.com/yzim))
- 修复发给已归档 Agent 的中断和引导消息进入队列后未启动新轮次的问题 ([#10611](https://github.com/getpaseo/paseo/pull/10611),贡献者:[@thomasvan](https://github.com/thomasvan))
- 修复 Hermes 的 Shell 工具行只显示命令摘要的问题,现在会显示完整命令 ([#10614](https://github.com/getpaseo/paseo/pull/10614))
- 修复使用 OpenCode 2 数据库中保存的登录凭据时的 Go 用量显示,涵盖 Console 登录和 API 密钥 ([#8729](https://github.com/getpaseo/paseo/pull/8729), [#10612](https://github.com/getpaseo/paseo/pull/10612))
- 修复 Paseo 工具定义变更后无法重新打开已有 OpenCode 会话的问题 ([#10533](https://github.com/getpaseo/paseo/pull/10533),贡献者:[@Peanut-HZM](https://github.com/Peanut-HZM))
- 修复使用 MCP 协议版本 `2026-07-28` 的 Agent 缺少 Paseo 工具的问题 ([#10558](https://github.com/getpaseo/paseo/pull/10558),贡献者:[@apple-ouyang](https://github.com/apple-ouyang))
- 修复 Codex MCP 启动失败时 daemon 未记录警告的问题 ([#10566](https://github.com/getpaseo/paseo/pull/10566))
- 修复插件进程停止后 daemon 在关闭会话时退出的问题 ([#10585](https://github.com/getpaseo/paseo/pull/10585))
- 修复目录结构与裸仓库相同时 Git 命令选错仓库的问题 ([#10587](https://github.com/getpaseo/paseo/pull/10587))
- 修复在 Bedrock 和 Vertex 上无法选择 Claude Auto 权限模式的问题 ([#6904](https://github.com/getpaseo/paseo/pull/6904))
- 修复侧边栏的主机设置按钮需要点击两次才能打开设置的问题 ([#10562](https://github.com/getpaseo/paseo/pull/10562),贡献者:[@ShalokShalom](https://github.com/ShalokShalom))
- 修复普通检出中从未推送过的新分支在“变更”面板中不显示“推送”的问题 ([#10631](https://github.com/getpaseo/paseo/pull/10631))
- 修复 Hub 在验证触发器时传入工作区目录后,daemon 使用错误模型目录的问题 ([#10582](https://github.com/getpaseo/paseo/pull/10582))
## 0.17.3 - 2026-11-22
### 修复
@@ -1,7 +0,0 @@
Fixed
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
Full notes: https://paseo.sh/changelog
@@ -1,7 +0,0 @@
Fixed
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
Full notes: https://paseo.sh/changelog
@@ -1,7 +0,0 @@
Fixed
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
Full notes: https://paseo.sh/changelog
@@ -1,7 +0,0 @@
Fixed
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system
- Fixed interrupt and steer messages to archived agents being queued without starting a turn
Full notes: https://paseo.sh/changelog
+1 -1
View File
@@ -1 +1 @@
sha256-TAVzJzziWDAapQkG4TLkLzOlodkdFNKSl3y/Tm9HB28=
sha256-W725BRG14xajMsR4t8Y3NmxppMnJ8AUd7Kdb6F7LmMw=
+29 -29
View File
@@ -1,12 +1,12 @@
{
"name": "paseo",
"version": "0.17.4",
"version": "0.17.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "paseo",
"version": "0.17.4",
"version": "0.17.3",
"hasInstallScript": true,
"license": "Apache-2.0",
"workspaces": [
@@ -37541,7 +37541,7 @@
},
"packages/app": {
"name": "@getpaseo/app",
"version": "0.17.4",
"version": "0.17.3",
"dependencies": {
"@codemirror/commands": "6.10.4",
"@codemirror/language": "6.12.4",
@@ -39694,13 +39694,13 @@
},
"packages/cli": {
"name": "@getpaseo/cli",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@clack/prompts": "^1.0.0",
"@getpaseo/client": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/server": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"@getpaseo/server": "0.17.3",
"chalk": "^5.3.0",
"commander": "^12.0.0",
"mime-types": "^2.1.35",
@@ -39947,11 +39947,11 @@
},
"packages/client": {
"name": "@getpaseo/client",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@getpaseo/protocol": "0.17.4",
"@getpaseo/relay": "0.17.4",
"@getpaseo/protocol": "0.17.3",
"@getpaseo/relay": "0.17.3",
"ws": "^8.20.0",
"zod": "^4.4.3"
},
@@ -39963,7 +39963,7 @@
},
"packages/desktop": {
"name": "@getpaseo/desktop",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@getpaseo/cli": "*",
@@ -40206,7 +40206,7 @@
},
"packages/expo-two-way-audio": {
"name": "@getpaseo/expo-two-way-audio",
"version": "0.17.4",
"version": "0.17.3",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.14",
@@ -40252,7 +40252,7 @@
},
"packages/highlight": {
"name": "@getpaseo/highlight",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@codemirror/language": "6.12.4",
@@ -40282,7 +40282,7 @@
},
"packages/plugin": {
"name": "@getpaseo/plugin",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@agentclientprotocol/sdk": "^1.4.0",
@@ -40290,8 +40290,8 @@
"use-sync-external-store": "^1.6.0"
},
"devDependencies": {
"@getpaseo/client": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"@types/node": "^20.9.0",
"@types/react": "~19.2.0",
"react": "19.2.3",
@@ -40301,8 +40301,8 @@
"zod": "^4.4.3"
},
"peerDependencies": {
"@getpaseo/client": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"react": ">=19.1.0 <20",
"react-native": ">=0.81.5",
"zod": "^4.4.3"
@@ -40324,7 +40324,7 @@
},
"packages/protocol": {
"name": "@getpaseo/protocol",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"semver": "^7.8.5",
@@ -40351,7 +40351,7 @@
}
},
"packages/react-native-enriched-markdown": {
"version": "0.17.4",
"version": "0.17.1",
"hasInstallScript": true,
"license": "MIT",
"peerDependencies": {
@@ -40367,7 +40367,7 @@
},
"packages/relay": {
"name": "@getpaseo/relay",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@noble/ciphers": "^2.4.0",
@@ -40589,17 +40589,17 @@
},
"packages/server": {
"name": "@getpaseo/server",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"dependencies": {
"@agentclientprotocol/sdk": "^0.17.1",
"@anthropic-ai/claude-agent-sdk": "0.3.326",
"@anthropic-ai/sdk": "^0.104.2",
"@getpaseo/client": "0.17.4",
"@getpaseo/highlight": "0.17.4",
"@getpaseo/plugin": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/relay": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/highlight": "0.17.3",
"@getpaseo/plugin": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"@getpaseo/relay": "0.17.3",
"@isaacs/ttlcache": "^2.1.4",
"@modelcontextprotocol/node": "2.1.2",
"@modelcontextprotocol/sdk": "1.29.0",
@@ -41549,7 +41549,7 @@
},
"packages/website": {
"name": "@getpaseo/website",
"version": "0.17.4",
"version": "0.17.3",
"dependencies": {
"@cloudflare/vite-plugin": "^1.29.1",
"@cloudflare/workers-types": "^4.20260317.1",
@@ -43160,7 +43160,7 @@
},
"plugins": {
"name": "@getpaseo/builtin-plugins",
"version": "0.17.4",
"version": "0.17.3",
"dependencies": {
"@getpaseo/plugin": "*",
"zod": "^4.4.3"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "paseo",
"version": "0.17.4",
"version": "0.17.3",
"private": true,
"description": "Paseo: voice-controlled development environment for local AI coding agents",
"keywords": [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/app",
"version": "0.17.4",
"version": "0.17.3",
"private": true,
"main": "index.ts",
"scripts": {
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/cli",
"version": "0.17.4",
"version": "0.17.3",
"description": "Paseo CLI - control your AI coding agents from the command line",
"license": "Apache-2.0",
"bin": {
@@ -29,9 +29,9 @@
},
"dependencies": {
"@clack/prompts": "^1.0.0",
"@getpaseo/client": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/server": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"@getpaseo/server": "0.17.3",
"chalk": "^5.3.0",
"commander": "^12.0.0",
"mime-types": "^2.1.35",
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/client",
"version": "0.17.4",
"version": "0.17.3",
"description": "Paseo client SDK package",
"license": "Apache-2.0",
"files": [
@@ -49,8 +49,8 @@
"measure:diff-materialization": "tsx scripts/measure-diff-materialization.ts"
},
"dependencies": {
"@getpaseo/protocol": "0.17.4",
"@getpaseo/relay": "0.17.4",
"@getpaseo/protocol": "0.17.3",
"@getpaseo/relay": "0.17.3",
"ws": "^8.20.0",
"zod": "^4.4.3"
},
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/desktop",
"version": "0.17.4",
"version": "0.17.3",
"private": true,
"description": "Paseo desktop app (Electron wrapper)",
"homepage": "https://paseo.sh",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/expo-two-way-audio",
"version": "0.17.4",
"version": "0.17.3",
"description": "Native module for two way audio streaming",
"keywords": [
"ExpoTwoWayAudio",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/highlight",
"version": "0.17.4",
"version": "0.17.3",
"license": "Apache-2.0",
"files": [
"dist",
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/plugin",
"version": "0.17.4",
"version": "0.17.3",
"description": "Paseo plugin SDK package",
"license": "Apache-2.0",
"files": [
@@ -78,8 +78,8 @@
"use-sync-external-store": "^1.6.0"
},
"devDependencies": {
"@getpaseo/client": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"@types/node": "^20.9.0",
"@types/react": "~19.2.0",
"react": "19.2.3",
@@ -89,8 +89,8 @@
"zod": "^4.4.3"
},
"peerDependencies": {
"@getpaseo/client": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"react": ">=19.1.0 <20",
"react-native": ">=0.81.5",
"zod": "^4.4.3"
@@ -291,7 +291,6 @@ async function listSessions(
input: Extract<ProviderInput, { type: "sessions" }>,
state: AcpConnectionState,
): Promise<void> {
const extraScanDeadline = performance.now() + EXTRA_SESSION_SCAN_BUDGET_MS;
const runtime = await AcpRuntime.start({
options: state.options,
launch: state.launch,
@@ -300,11 +299,7 @@ async function listSessions(
emit: state.emit,
});
try {
const selected = await runtime.listSessions({
cwd: input.cwd,
limit: input.limit,
extraScanDeadline,
});
const selected = await runtime.listSessions({ cwd: input.cwd, limit: input.limit });
state.emit({
type: "sessions",
requestId: input.requestId,
@@ -320,10 +315,6 @@ async function listSessions(
}
}
function sessionUpdatedAt(session: SessionInfo): number {
return Date.parse(session.updatedAt ?? "") || 0;
}
function retireSession(state: AcpConnectionState, sessionId: string): void {
if (state.sessions.delete(sessionId)) {
state.emit({ type: "session.closed", sessionId });
@@ -420,7 +411,6 @@ interface ActivePrompt {
const DEFAULT_DEFERRED_SETTLE_DELAY_MS = 500;
const SESSION_SCAN_LIMIT = 500;
const EXTRA_SESSION_SCAN_BUDGET_MS = 2_000;
// COMPAT(acpAutoAccept): added in v0.17.4, remove after 2027-05-23. The generic ACP adapter saves
// its Auto Accept toggle as this setting on agents that later moved to a bundled ACP provider.
const LEGACY_AUTO_ACCEPT_SETTING = "auto_accept";
@@ -928,38 +918,17 @@ class AcpRuntime {
return true;
}
/** Selects the most recent sessions from a bounded scan of the provider's pages. */
async listSessions({
cwd,
limit,
extraScanDeadline,
}: {
cwd?: string;
limit?: number;
extraScanDeadline: number;
}): Promise<SessionInfo[]> {
/** Follows `nextCursor` until `limit` sessions, the last page, or the scan cap. */
async listSessions({ cwd, limit }: { cwd?: string; limit?: number }): Promise<SessionInfo[]> {
const wanted = Math.min(limit ?? SESSION_SCAN_LIMIT, SESSION_SCAN_LIMIT);
const sessions: SessionInfo[] = [];
let cursor: string | undefined;
// ACP does not guarantee that sessions arrive in recency order.
for (let pages = 0; pages < SESSION_SCAN_LIMIT; pages += 1) {
// Once we have enough rows, pages can improve the order only within the original budget.
const remainingMs =
cursor && sessions.length >= wanted ? extraScanDeadline - performance.now() : undefined;
if (remainingMs !== undefined && remainingMs <= 0) break;
const request = this.call(this.connection.listSessions({ cwd, cursor }));
const page =
remainingMs === undefined
? await request
: await withTimeout(request, remainingMs, "ACP listing scan budget expired").catch(
() => undefined,
);
if (!page) break;
sessions.push(...page.sessions.slice(0, SESSION_SCAN_LIMIT - sessions.length));
do {
const page = await this.call(this.connection.listSessions({ cwd, cursor }));
sessions.push(...page.sessions);
cursor = page.nextCursor ?? undefined;
if (!cursor || sessions.length === SESSION_SCAN_LIMIT) break;
}
return sessions.sort((a, b) => sessionUpdatedAt(b) - sessionUpdatedAt(a)).slice(0, wanted);
} while (cursor && sessions.length < wanted);
return sessions.slice(0, wanted);
}
async drainNotifications(): Promise<void> {
-36
View File
@@ -7038,42 +7038,6 @@ describe("ACP tool call rows", () => {
}
});
it("returns enough sessions and closes the connection when another page stalls", async () => {
const harness = connectorHarness({
capabilities: { sessionCapabilities: { list: {} } },
handleRequest(runtime, request) {
if (request.method !== "session/list") return false;
const { cursor } = request.params as { cursor?: string };
if (!cursor) {
runtime.respond(request, {
sessions: [{ sessionId: "s1", cwd: "/repo", title: "First page" }],
nextCursor: "stalled",
});
}
return true;
},
});
const connection = await runAcpProvider({
id: "stalled-listing",
label: "Stalled listing",
connector: harness.connector,
}).connect({ versions: [1], capabilities: ["prompt.message", "session.list"] });
const events: ProviderEvent[] = [];
connection.onEvent((event) => events.push(event));
try {
await connection.send({ type: "sessions", requestId: "list", limit: 1 });
await expect.poll(() => countRequests(harness.instances[1], "session/list")).toBe(2);
const listed = await waitForEvent(events, (event) => event.type === "sessions");
expect(listed).toMatchObject({ sessions: [{ title: "First page" }] });
await expect.poll(() => harness.instances[1].readsCanceled).toBe(true);
expect(harness.instances[1].writesClosed).toBe(true);
} finally {
const listing = harness.instances[1];
if (listing && !listing.readsCanceled) listing.closeFromAgent();
await connection.close();
}
});
it("resumes the generic ACP adapter's saved Auto Accept toggle in the unattended mode", async () => {
const harness = connectorHarness({
configOptions: [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/protocol",
"version": "0.17.4",
"version": "0.17.3",
"description": "Paseo shared protocol schemas and wire types",
"license": "Apache-2.0",
"files": [
@@ -1,6 +1,6 @@
{
"name": "react-native-enriched-markdown",
"version": "0.17.4",
"version": "0.17.1",
"private": true,
"description": "Markdown-based Rich Text solution for React Native",
"main": "./lib/module/index",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/relay",
"version": "0.17.4",
"version": "0.17.3",
"description": "Paseo relay for bridging daemon and client connections",
"license": "Apache-2.0",
"files": [
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/server",
"version": "0.17.4",
"version": "0.17.3",
"description": "Paseo backend server",
"license": "Apache-2.0",
"files": [
@@ -109,11 +109,11 @@
"@agentclientprotocol/sdk": "^0.17.1",
"@anthropic-ai/claude-agent-sdk": "0.3.326",
"@anthropic-ai/sdk": "^0.104.2",
"@getpaseo/client": "0.17.4",
"@getpaseo/highlight": "0.17.4",
"@getpaseo/plugin": "0.17.4",
"@getpaseo/protocol": "0.17.4",
"@getpaseo/relay": "0.17.4",
"@getpaseo/client": "0.17.3",
"@getpaseo/highlight": "0.17.3",
"@getpaseo/plugin": "0.17.3",
"@getpaseo/protocol": "0.17.3",
"@getpaseo/relay": "0.17.3",
"@isaacs/ttlcache": "^2.1.4",
"@modelcontextprotocol/node": "2.1.2",
"@modelcontextprotocol/sdk": "1.29.0",
@@ -1,68 +0,0 @@
// An ACP peer that returns sessions in storage order, with an optional page boundary.
const readline = require("node:readline");
const { existsSync, renameSync, writeFileSync } = require("node:fs");
const path = require("node:path");
const stalledListing = process.argv.indexOf("--stall-after-first-page");
const controlDir = stalledListing === -1 ? null : process.argv[stalledListing + 1];
if (process.argv.includes("--version")) {
process.stdout.write("1.5.13\n");
process.exit(0);
}
const sessions = Array.from({ length: 317 }, (_, index) => ({
sessionId: `session-${index}`,
cwd: process.cwd(),
title: `September session ${index}`,
updatedAt: "2026-09-08T11:36:19Z",
}));
sessions[42] = {
...sessions[42],
title: "Latest November session",
updatedAt: "2026-11-23T04:07:46Z",
};
readline.createInterface({ input: process.stdin }).on("line", (line) => {
const { id, method, params } = JSON.parse(line);
if (id === undefined) return;
let response;
if (method === "initialize") {
response = {
result: { protocolVersion: 1, agentCapabilities: { sessionCapabilities: { list: {} } } },
};
} else if (method === "session/list") {
if (controlDir) {
if (params.cursor) {
writeFileSync(path.join(controlDir, "second-page"), "");
return;
}
const marker = path.join(controlDir, "first-page");
writeFileSync(marker + ".tmp", String(process.pid));
renameSync(marker + ".tmp", marker);
const gate = setInterval(() => {
if (!existsSync(path.join(controlDir, "release-first-page"))) return;
clearInterval(gate);
process.stdout.write(
JSON.stringify({
jsonrpc: "2.0",
id,
result: { sessions: sessions.slice(0, 42), nextCursor: "next" },
}) + "\n",
);
}, 10);
return;
}
const pageSize = process.argv.includes("--paginated") ? 42 : sessions.length;
response = {
result: params.cursor
? { sessions: sessions.slice(pageSize) }
: {
sessions: sessions.slice(0, pageSize),
nextCursor: pageSize < sessions.length ? "next" : null,
},
};
} else {
response = { error: { code: -32601, message: `Unsupported method ${method}` } };
}
process.stdout.write(JSON.stringify({ jsonrpc: "2.0", id, ...response }) + "\n");
});
@@ -314,8 +314,6 @@ test("streams whole-file batches and answers a same-socket ping before the revis
).join("\n") + "\n";
writeFileSync(join(cwd, `${file}.ts`), content);
}
// Stage the fixture so Git reads the added files in bulk. They are still new relative to HEAD.
git(cwd, "add", ".");
expect(ctx.client.getLastServerInfoMessage()).toMatchObject({
features: { diffSubscription: true },
});
@@ -1,7 +1,5 @@
import { describe, test, expect, vi } from "vitest";
import { describe, test, expect } from "vitest";
import { mkdtemp, rm, readFile, writeFile } from "node:fs/promises";
import { existsSync } from "node:fs";
import { setTimeout as delay } from "node:timers/promises";
import os from "node:os";
import path from "node:path";
import { loadConfig } from "../config.js";
@@ -167,122 +165,6 @@ test("Antigravity creates an agent and answers a prompt with real agy", async ({
}
}, 120000);
test.each(["one page", "two pages"])(
"Antigravity lists the latest importable sessions from %s in storage order",
async (pages) => {
const command = [
process.execPath,
path.resolve(import.meta.dirname, "antigravity-session-list-fixture.cjs"),
];
if (pages === "two pages") command.push("--paginated");
const daemon = await createTestPaseoDaemon({
agentClients: {},
mcpEnabled: false,
builtinPlugins: new BuiltinPluginLoader(undefined, ["antigravity-provider"]),
providerOverrides: { antigravity: { command, paseoTools: { enabled: false } } },
});
const client = new DaemonClient({
url: `ws://127.0.0.1:${daemon.port}/ws`,
appVersion: "0.17.3",
});
const providers = ["antigravity"];
try {
await client.connect();
await client.refreshProvidersSnapshot({ cwd: daemon.paseoHome, providers });
const search = await client.fetchRecentProviderSessions({
providers,
limit: 5,
query: "November",
});
expect(search.entries.map((session) => session.title)).toEqual(["Latest November session"]);
const wide = await client.fetchRecentProviderSessions({ providers, limit: 100 });
expect(wide.entries[0]?.title).toBe("Latest November session");
const recent = await client.fetchRecentProviderSessions({ providers });
expect(recent.entries).toHaveLength(20);
expect(recent.entries[0]?.title).toBe("Latest November session");
} finally {
await client.close();
await daemon.close();
}
},
30_000,
);
test("Antigravity returns a late full page before Import Session times out", async () => {
const controlDir = await mkdtemp(path.join(os.tmpdir(), "paseo-antigravity-listing-"));
const command = [
process.execPath,
path.resolve(import.meta.dirname, "antigravity-session-list-fixture.cjs"),
"--stall-after-first-page",
controlDir,
];
const daemon = await createTestPaseoDaemon({
agentClients: {},
mcpEnabled: false,
builtinPlugins: new BuiltinPluginLoader(undefined, ["antigravity-provider"]),
providerOverrides: { antigravity: { command, paseoTools: { enabled: false } } },
});
const client = new DaemonClient({
url: `ws://127.0.0.1:${daemon.port}/ws`,
appVersion: "0.17.3",
});
const providers = ["antigravity"];
try {
await client.connect();
await client.refreshProvidersSnapshot({ cwd: daemon.paseoHome, providers });
vi.useFakeTimers({ toFake: ["performance", "setTimeout", "clearTimeout"] });
const result = client.fetchRecentProviderSessions({ providers });
let returned = false;
const markReturned = () => {
returned = true;
};
void result.then(markReturned, markReturned);
const firstPage = path.join(controlDir, "first-page");
await waitForFixture(() => existsSync(firstPage), "first page requested");
const pid = Number(await readFile(firstPage, "utf8"));
await vi.advanceTimersByTimeAsync(59_000);
await writeFile(path.join(controlDir, "release-first-page"), "");
// Let real I/O deliver the page before advancing to the client deadline.
// The provider signals a second request but never answers it.
const secondPage = path.join(controlDir, "second-page");
await waitForFixture(() => returned || existsSync(secondPage), "result or second page request");
await vi.advanceTimersByTimeAsync(1_000);
const recent = await result;
expect(recent.entries.map((session) => session.title)).toEqual(
Array.from({ length: 20 }, (_, index) => `September session ${index}`),
);
await waitForFixture(() => {
try {
process.kill(pid, 0);
return false;
} catch (error) {
if ((error as NodeJS.ErrnoException).code === "ESRCH") return true;
throw error;
}
}, "listing process exited");
} finally {
if (vi.isFakeTimers()) {
await vi.advanceTimersByTimeAsync(2_000);
vi.useRealTimers();
}
await client.close();
await daemon.close();
await rm(controlDir, { recursive: true, force: true });
}
});
async function waitForFixture(condition: () => boolean, description: string): Promise<void> {
// Use real timers for subprocess I/O while the RPC clock is paused.
const deadline = Date.now() + 10_000;
while (!condition()) {
if (Date.now() >= deadline) throw new Error(`Timed out waiting for ${description}`);
await delay(10);
}
}
test("bundled fx requires a config entry and lists models instead of its providers", async () => {
const root = await mkdtemp(path.join(os.tmpdir(), "paseo-fx-optin-"));
const record = path.join(root, "launches.txt");
@@ -2,6 +2,8 @@ import { describe, test, expect, beforeEach, afterEach } from "vitest";
import { mkdtempSync, rmSync } from "fs";
import { tmpdir } from "os";
import path from "path";
import { WebSocket } from "ws";
import { DaemonClient } from "@getpaseo/client/internal/daemon-client";
import { createDaemonTestContext, type DaemonTestContext } from "../test-utils/index.js";
let ctx: DaemonTestContext;
@@ -56,3 +58,49 @@ describe("a message larger than the daemon accepts", () => {
expect(statuses).toEqual(["connected"]);
}, 30000);
});
test("a direct client receives progress before its large timeline page completes", async () => {
const agent = await ctx.client.createAgent({ provider: "claude", cwd, title: "Large timeline" });
const text = "Timeline entry ".repeat(8 * 1024);
for (let row = 0; row < 8; row++) {
await ctx.daemon.daemon.agentManager.appendTimelineItem(agent.id, {
type: "user_message",
text,
});
}
const receivedMessageSizes: number[] = [];
const client = new DaemonClient({
url: `ws://127.0.0.1:${ctx.daemon.port}/ws`,
clientId: "timeline-wire-progress",
clientType: "browser",
webSocketFactory: (url) => {
const ws = new WebSocket(url);
ws.addEventListener("message", (event) => {
receivedMessageSizes.push(
typeof event.data === "string" ? Buffer.byteLength(event.data) : event.data.byteLength,
);
});
return ws;
},
});
try {
await client.connect();
receivedMessageSizes.length = 0;
const timeline = await client.fetchAgentTimeline(agent.id, {
direction: "tail",
limit: 40,
wholeTurns: true,
});
expect(timeline.entries).toHaveLength(8);
for (const { item } of timeline.entries) {
expect(item.type === "user_message" && item.text === text).toBe(true);
}
// The client can only observe liveness when a whole WebSocket message arrives.
// A single message carrying the entire page hides progress on slow links.
expect(Math.max(...receivedMessageSizes)).toBeLessThanOrEqual(512 * 1024);
} finally {
await client.close();
}
});
@@ -194,14 +194,12 @@ test("classifies a removed file as deleted", async () => {
const root = await createRoot();
const target = join(root, "removed.txt");
await writeFile(target, "before");
const canary = createWatcherLivenessCanary(root);
const events: FileChange[] = [];
const subscription = await subscribeToFileChanges(root, (error, batch) => {
expect(error).toBeNull();
events.push(...canary.filterEvents(batch));
events.push(...batch);
});
await canary.verify();
await rm(target);
// macOS FSEvents can replay the write above as a create after the subscription starts,
// so the delete is the latest event for the path, not the first. Native recursive delivery
@@ -149,6 +149,8 @@ import {
} from "./websocket/physical-socket.js";
const WS_CLOSE_DAEMON_AUTH_FAILED = 4401;
// Give clients intermediate messages that count as progress during large transfers.
const DIRECT_WEBSOCKET_FRAME_BYTES = 512 * 1024;
export interface ExternalSocketMetadata {
transport: "relay" | "hub";
@@ -948,7 +950,8 @@ export class VoiceAssistantWebSocketServer {
},
});
wss.on("connection", (ws, request) => {
void this.attachAuthenticatedSocket(ws, request, password);
const socket = Object.assign(ws, { maxFrameBytes: DIRECT_WEBSOCKET_FRAME_BYTES });
void this.attachAuthenticatedSocket(socket, request, password);
});
return wss;
}
+2 -17
View File
@@ -177,7 +177,7 @@ test("filters by search and clears to all plugins", async ({ page }) => {
test("keeps the directory's ranking window when searching", async ({ page }) => {
await page.goto("/plugins?window=month");
await submitSearch(page, "graphite");
await expectDirectorySearch(page, "graphite", "month");
await expect(page).toHaveURL(/\/plugins\/all\?q=graphite&window=month$/);
await expect(page.getByRole("link", { name: "This month" })).toHaveAttribute(
"aria-current",
"true",
@@ -358,16 +358,10 @@ test.describe("search engine visits without JavaScript", () => {
});
test("renders search results and submits the search form", async ({ page }) => {
await page.goto("/plugins?window=month");
await submitSearch(page, "graphite");
await expectDirectorySearch(page, "graphite", "month");
await page.goto("/plugins/all?q=graphite");
await expect(
page.getByRole("heading", { level: 1, name: /^Results for “graphite”/ }),
).toBeVisible();
await expect(page.getByRole("link", { name: "This month" })).toHaveAttribute(
"aria-current",
"true",
);
await expect(page.getByRole("main").getByRole("link", { name: /Graphite/ })).toBeVisible();
await expect(page.getByRole("link", { name: /Dracula/ })).toHaveCount(0);
@@ -465,15 +459,6 @@ async function submitSearch(page: Page, term: string) {
await page.keyboard.press("Enter");
}
async function expectDirectorySearch(page: Page, term: string, window: string) {
await expect(page).toHaveURL(
(url) =>
url.pathname === "/plugins/all" &&
url.searchParams.get("q") === term &&
url.searchParams.get("window") === window,
);
}
async function typeSearch(page: Page, term: string) {
await page.getByRole("searchbox", { name: "Search plugins" }).pressSequentially(term);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/website",
"version": "0.17.4",
"version": "0.17.3",
"private": true,
"type": "module",
"scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@getpaseo/builtin-plugins",
"version": "0.17.4",
"version": "0.17.3",
"private": true,
"type": "module",
"scripts": {