Skip to content

feat(kap-server): add the WS v2 realtime protocol stack #10020

feat(kap-server): add the WS v2 realtime protocol stack

feat(kap-server): add the WS v2 realtime protocol stack #10020

Triggered via pull request September 4, 2026 08:58
Status Failure
Total duration 10m 53s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 20 warnings
test (1)
Process completed with exit code 1.
[kap-server] test/v2Projection.test.ts > v2Projection × REST 历史冷重建 > background-task REST 历史: packages/kap-server/test/v2Projection.test.ts#L3106
AssertionError: expected { session_id: 's_11', …(3) } to deeply equal { session_id: 's_11', …(3) } - Expected + Received @@ -30,10 +30,11 @@ "session_id": "s_11", "started_at": "2026-09-03T16:00:00.020Z", "state": "completed", "step_id": "t1.0", "timestamp": "2026-09-03T16:00:04.100Z", + "timing": undefined, "turn_id": "t1", "type": "step", "usage": { "input_cache_creation": 0, "input_cache_read": 9200, @@ -44,12 +45,15 @@ { "agent_id": "main", "created_at": "2026-09-03T16:00:00.000Z", "finished_at": "2026-09-03T16:00:04.895Z", "message_id": "t1.u0", + "notification": undefined, + "origin": undefined, "session_id": "s_11", "status": "completed", + "steered_at": undefined, "text": "跑一下完整构建", "timestamp": "2026-09-03T16:00:00.010Z", "turn_id": "t1", "type": "user", }, @@ -75,10 +79,14 @@ "turn_id": "t1", "type": "assistant", }, { "agent_id": "main", + "agent_refs": undefined, + "approval_id": undefined, + "display": undefined, + "error": undefined, "input": { "command": "pnpm build", }, "name": "Bash", "output": { @@ -87,10 +95,11 @@ }, "session_id": "s_11", "state": "done", "step_id": "t1.0", "timestamp": "2026-09-03T16:00:04.010Z", + "todo_id": undefined, "tool_call_id": "call_01", "turn_id": "t1", "type": "tool_call", }, { @@ -101,10 +110,11 @@ "session_id": "s_11", "started_at": "2026-09-03T16:00:04.145Z", "state": "completed", "step_id": "t1.1", "timestamp": "2026-09-03T16:00:04.800Z", + "timing": undefined, "turn_id": "t1", "type": "step", "usage": { "input_cache_creation": 0, "input_cache_read": 10100, @@ -123,22 +133,28 @@ "turn_id": "t1", "type": "assistant", }, { "agent_id": "main", + "child_agent_id": undefined, "description": "pnpm build", "detached": true, "ended_at": "2026-09-03T16:07:58.495Z", + "error": undefined, "kind": "shell", + "model": undefined, "output_tail": "… build finished successfully in 7m 56s …", "result_summary": "构建成功:8 个包全部编译通过", "session_id": "s_11", "started_at": "2026-09-03T16:00:01.500Z", "state": "completed", + "state_reason": undefined, "task_id": "task_01", + "thinking_effort": undefined, "timestamp": "2026-09-03T16:07:58.500Z", "type": "task", + "usage": undefined, }, { "agent_id": "main", "duration_ms": 797, "ended_at": "2026-09-03T16:07:59.395Z", @@ -167,10 +183,11 @@ "session_id": "s_11", "started_at": "2026-09-03T16:07:58.618Z", "state": "completed", "step_id": "t2.0", "timestamp": "2026-09-03T16:07:59.300Z", + "timing": undefined, "turn_id": "t2", "type": "step", "usage": { "input_cache_creation": 0, "input_cache_read": 12000, @@ -182,11 +199,17 @@ "agent_id": "main", "created_at": "2026-09-03T16:07:58.598Z", "finished_at": "2026-09-03T16:07:59.395Z", "message_id": "t2.u0", "notification": { + "agent_id": undefined, "body": "构建成功:8 个包全部编译通过", + "raw": "<notification id=\"task:task_01:completed\" category=\"task\" type=\"task.completed\" source_kind=\"background_task\" source_id=\"task_01\"> + Title: 后台构建完成 + Severity: info + 构建成功:8 个包全部编译通过 + </notification>", "severity": "info", "source_id": "task_01", "source_kind": "background_task", "title": "后台构建完成", "type": "task.completed", @@ -1
typecheck
Process completed with exit code 2.
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L552
Property 'raw' comes from an index signature, so it must be accessed with ['raw'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L551
Property 'sourceAgentId' comes from an index signature, so it must be accessed with ['sourceAgentId'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L549
Property 'sourceKind' comes from an index signature, so it must be accessed with ['sourceKind'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L548
Property 'notificationType' comes from an index signature, so it must be accessed with ['notificationType'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L547
Property 'severity' comes from an index signature, so it must be accessed with ['severity'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L543
Property 'sourceId' comes from an index signature, so it must be accessed with ['sourceId'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L542
Property 'body' comes from an index signature, so it must be accessed with ['body'].
typecheck: packages/kap-server/src/services/v2Projection/agentProjector.ts#L541
Property 'title' comes from an index signature, so it must be accessed with ['title'].
test (1)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
lint
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
eslint-plugin-unicorn(prefer-string-replace-all): packages/agent-core-v2/src/_base/utils/workdir-slug.ts#L18
Prefer `String#replaceAll()` over `String#replace()` when using a regex with the global flag.
eslint(no-console): packages/agent-core-v2/src/_base/di/lifecycle.ts#L640
Unexpected console statement.
eslint(no-console): packages/agent-core-v2/src/_base/di/lifecycle.ts#L558
Unexpected console statement.
eslint-plugin-import(no-duplicates): packages/agent-core-v2/src/_base/di/scope.ts#L3
Module './instantiation' is imported more than once in this file
eslint(no-loop-func): packages/agent-core-v2/src/_base/event.ts#L211
Function declared in a loop contains unsafe references to variable(s)
eslint(no-loop-func): packages/agent-core-v2/src/_base/event.ts#L206
Function declared in a loop contains unsafe references to variable(s)
test (2)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test (3)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test (4)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-vscode-legacy
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
build
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test (5)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
typecheck
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-pi-tui
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/