feat(protocol): preserve media attachment names #10041
Triggered via pull request
September 4, 2026 10:28
Status
Failure
Total duration
16m 48s
Artifacts
–
ci.yml
on: pull_request
build
3m 59s
test-pi-tui
5m 0s
test-vscode-legacy
7m 56s
test-windows
0s
lint
1m 6s
typecheck
9m 16s
Matrix: test
Annotations
7 errors and 20 warnings
|
test (3)
Process completed with exit code 1.
|
|
[kap-server] test/prompts.test.ts > server-v2 /api/v1 prompts > keeps the upload-backed reference when the session media dir is not writable:
packages/kap-server/test/prompts.test.ts#L900
AssertionError: expected [ { type: 'image_url', …(1) } ] to deep equally contain { type: 'image_url', …(1) }
- Expected:
{
"imageUrl": {
"url": "kimi-file://f_32b055fe-9acd-4194-82ff-abbb435defc7",
},
"type": "image_url",
}
+ Received:
[
{
"imageUrl": {
"id": undefined,
"name": "small.png",
"url": "kimi-file://f_32b055fe-9acd-4194-82ff-abbb435defc7",
},
"type": "image_url",
},
]
❯ test/prompts.test.ts:900:34
|
|
[kap-server] test/prompts.test.ts > server-v2 /api/v1 prompts > carries an uncompressed uploaded image into the prompt as an internal kimi-file reference:
packages/kap-server/test/prompts.test.ts#L816
AssertionError: expected [ { type: 'image', …(2) } ] to deeply equal [ { type: 'image', source: { …(2) } } ]
- Expected
+ Received
@@ -1,7 +1,8 @@
[
{
+ "name": "small.png",
"source": {
"file_id": "f_5fdb85bb-9c84-4ef9-a80e-5921cc26ab63",
"kind": "session_media",
},
"type": "image",
❯ test/prompts.test.ts:816:21
|
|
[kap-server] test/prompts.test.ts > server-v2 /api/v1 prompts > carries an uploaded video into the prompt as an internal kimi-file reference:
packages/kap-server/test/prompts.test.ts#L700
AssertionError: expected { type: 'video', …(2) } to deeply equal { type: 'video', source: { …(2) } }
- Expected
+ Received
@@ -1,6 +1,7 @@
{
+ "name": "clip.mp4",
"source": {
"file_id": "f_8ddc3e5f-eba5-4fb7-a331-0aa21d3f71ee",
"kind": "session_media",
},
"type": "video",
❯ test/prompts.test.ts:700:24
|
|
test (2)
Process completed with exit code 1.
|
|
[agent-core-v2] test/state/stateManifest.test.ts > state manifest > docs/state-manifest.d.ts is up to date:
packages/agent-core-v2/test/state/stateManifest.test.ts#L12
AssertionError: expected '// App, Workspace, Session & Agent St…' to be '// App, Workspace, Session & Agent St…' // Object.is equality
- Expected
+ Received
@@ -1057,11 +1057,10 @@
} | /* ImageURLPart — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'image_url';
imageUrl: {
url: string;
id?: string;
- name?: string;
};
} | /* AudioURLPart — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'audio_url';
audioUrl: {
url: string;
@@ -1070,11 +1069,10 @@
} | /* VideoURLPart — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'video_url';
videoUrl: {
url: string;
id?: string;
- name?: string;
};
})[];
readonly toolCalls: /* ToolCall — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'function';
id: string;
@@ -1274,11 +1272,10 @@
} | /* ImageURLPart — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'image_url';
imageUrl: {
url: string;
id?: string;
- name?: string;
};
} | /* AudioURLPart — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'audio_url';
audioUrl: {
url: string;
@@ -1287,11 +1284,10 @@
} | /* VideoURLPart — packages/agent-core-v2/src/kosong/contract/message.ts */ {
type: 'video_url';
videoUrl: {
url: string;
id?: string;
- name?: string;
};
}>;
// src/agent/media/mediaToolsRegistrar.ts
'media.registeredKey': string | undefined;
// src/agent/permissionMode/injection/permissionModeInjection.ts
❯ test/state/stateManifest.test.ts:12:20
|
|
test (5)
Process completed with exit code 1.
|
|
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(no-console):
packages/agent-core-v2/src/_base/errors/unexpectedError.ts#L21
Unexpected console statement.
|
|
eslint(no-console):
packages/agent-core-v2/src/_base/errors/unexpectedError.ts#L4
Unexpected console statement.
|
|
eslint-plugin-import(first):
packages/agent-core-v2/src/_base/di/test.ts#L12
Import statements must come first
|
|
eslint-plugin-import(first):
packages/agent-core-v2/src/_base/di/test.ts#L11
Import statements must come first
|
|
eslint-plugin-unicorn(no-array-sort):
packages/agent-core-v2/src/_base/di/cascadeEngine.ts#L327
Use `Array#toSorted()` instead of `Array#sort()`.
|
|
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-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(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 (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/
|
|
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/
|
|
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 (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/
|
|
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-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/
|
|
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 (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/
|