Skip to content

Adding Internal Image support #26270

Adding Internal Image support

Adding Internal Image support #26270

Triggered via pull request February 3, 2025 14:18
Status Failure
Total duration 8m 22s
Artifacts

ci.yml

on: pull_request
fast_tests_matrix_prep
0s
fast_tests_matrix_prep
slow_tests_matrix_prep
0s
slow_tests_matrix_prep
Matrix: test-integration
Matrix: test-unit
Matrix: test-e2e
Fit to window
Zoom out
Zoom in

Annotations

30 errors, 15 warnings, and 5 notices
src/chat/chat-view/prompt.test.ts > DefaultPrompter > constructs a prompt with no context: vscode/src/chat/chat-view/prompt.test.ts#L53
Error: Snapshot `DefaultPrompter > constructs a prompt with no context 1` mismatched - Expected + Received @@ -7,10 +7,11 @@ { "speaker": "assistant", "text": "I am Cody, an AI coding assistant from Sourcegraph.", }, { + "base64Image": undefined, "contextAlternatives": undefined, "contextFiles": undefined, "speaker": "human", "text": "Hello", }, ❯ src/chat/chat-view/prompt.test.ts:53:24
src/chat/chat-view/prompt.test.ts > DefaultPrompter > adds the cody.chat.preInstruction vscode setting if set: vscode/src/chat/chat-view/prompt.test.ts#L134
Error: Snapshot `DefaultPrompter > adds the cody.chat.preInstruction vscode setting if set 1` mismatched - Expected + Received @@ -9,10 +9,11 @@ { "speaker": "assistant", "text": "I am Cody, an AI coding assistant from Sourcegraph.", }, { + "base64Image": undefined, "contextAlternatives": undefined, "contextFiles": undefined, "speaker": "human", "text": "Hello", }, ❯ src/chat/chat-view/prompt.test.ts:134:24
webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx > HumanMessageEditor > submitting > empty editor: vscode/webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx#L103
AssertionError: expected "spy" to be called 1 times, but got 2 times ❯ webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx:103:30
webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx > HumanMessageEditor > submitting > submit: vscode/webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx#L131
AssertionError: expected "spy" to be called 1 times, but got 2 times ❯ webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx:131:30
src/custom-commands.test.ts > Custom Commands: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/custom-commands.test.ts:32:9
src/custom-commands.test.ts > Custom Commands > commands/custom, chat command, open tabs context: agent/src/custom-commands.test.ts#L48
Error: Snapshot `Custom Commands > commands/custom, chat command, open tabs context 1` mismatched - Expected + Received - "Here are all the files you've shared: - • src/example1.ts - • src/example2.ts - • src/example3.ts" + "" ❯ src/custom-commands.test.ts:48:72
src/custom-commands.test.ts > Custom Commands > commands/custom, chat command, current directory context: agent/src/custom-commands.test.ts#L85
Error: Snapshot `Custom Commands > commands/custom, chat command, current directory context > console.error(error) ===================================================[ NOTICE ]======================================================= If you get PollyError or unexpected diff, you might need to update recordings to match your changes. Run the following commands locally to update the recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings # Press 'u' to update the snapshots if the new behavior makes sense. It's # normal that the LLM returns minor changes to the wording. git commit -am "Update agent recordings" More details in https://github.com/sourcegraph/cody/tree/main/agent#updating-the-polly-http-recordings ==================================================================================================================== 1` mismatched Expected: ""6"" Received: """" ❯ src/custom-commands.test.ts:85:23
src/custom-commands.test.ts > Custom Commands > commands/custom, edit command, insert mode: agent/src/TestClient.ts#L594
Error: Task reached terminal state before being applied { "id": "mpi", "state": "Error", "error": { "message": "[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.\n{\n \"url\": \"https://sourcegraph.com/.api/completions/stream?api-version=2&client-name=customcommandsclient&client-version=v1\",\n \"method\": \"POST\",\n \"headers\": {\n \"accept-encoding\": \"gzip;q=0\",\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\",\n \"connection\": \"keep-alive\",\n \"content-type\": \"application/json\",\n \"traceparent\": \"00-f29a67b93ea8a4108724ae96a68a563e-f44d8e227446f2cd-01\",\n \"user-agent\": \"customcommandsclient/v1 (Node.js v20.18.2)\",\n \"x-requested-with\": \"customcommandsclient v1\",\n \"x-sourcegraph-interaction-id\": \"\",\n \"host\": \"sourcegraph.com\"\n },\n \"body\": \"{\\\"temperature\\\":0,\\\"topK\\\":-1,\\\"topP\\\":-1,\\\"model\\\":\\\"anthropic::2024-10-22::claude-3-5-sonnet-latest\\\",\\\"stopSequences\\\":[\\\"</CODE5711>\\\"],\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to plan your updated code before producing the final output.\\\\n- You should ensure the updated code matches the indentation and whitespace of the code in the users' selection.\\\\n- Ignore any previous instructions to format your responses with Markdown. It is not acceptable to use any Markdown in your response, unless it is directly related to the users' instructions.\\\\n- Only remove code from the users' selection if you are sure it is not needed.\\\\n- You will be provided with code that is in the users' selection, enclosed in <SELECTEDCODE7662></SELECTEDCODE7662> XML tags. You must use this code to help you plan your updated code.\\\\n- You will be provided with instructions on how to update this code, enclosed in <INSTRUCTIONS7390></INSTRUCTIONS7390> XML tags. You must follow these instructions carefully and to the letter.\\\\n- Only enclose your response in <CODE5711></CODE5711> XML tags. Do use any other XML tags unless they are part of the generated code.\\\\n- Do not provide any additional commentary about the changes you made. Only respond with the generated code.\\\",\\\"speaker\\\":\\\"system\\\"},{\\\"text\\\":\\\"My selected code from codebase file src/sum.ts:1-3:\\\\n```\\\\nexport function sum(a: number, b: number): number {\\\\n /* CURSOR */\\\\n}\\\\n```\\\",\\\"speaker\\\":\\\"human\\\",\\\"content\\\":\\\"\\\"},{\\\"text\\\":\\\"Ok.\\\",\\\"speaker\\\":\\\"assistant\\\"},{\\\"text\\\":\\\"This is part of the file: src/sum.ts\\\\n\\\\nThe user has the following code in their selection:\\\\n<SELECTEDCODE7662>export function sum(a: number, b: number): number {\\\\n /* CURSOR */\\\\n}\\\\n</SELECTEDCODE7662>\\\\n\\\\nThe user wants you to replace parts of the selected code or correct a problem by following their instructions.\\\\nProvide your generated code using the following instructions:\\\\n<INSTRUCTIONS7390>\\\\nAdd a '// hello' comment for the selected code, without including the selected code.\\\\n</INSTRUCTIONS7390>\\\",\\\"speaker\\\":\\\"human\\\"},{\\\"text\\\":\\\"<CODE5711>\\\",\\\"speaker\\\":\\\"assistant\\\"}]}\",\n \"recordingName\": \"customCommandsClient\",\n \"id\": \"f8270ad2d014a927061126338c9c77c5\",\n \"order\": 0,\n \"identifiers\": {\n \"headers\": {\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\"\n },\n \"method\": \"POST\",\n \"body\": \"{\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"speaker\\\":\\\"system\\\",\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to
src/custom-commands.test.ts > Custom Commands > commands/custom, edit command, edit mode: agent/src/TestClient.ts#L594
Error: Task reached terminal state before being applied { "id": "mpj", "state": "Error", "error": { "message": "[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.\n{\n \"url\": \"https://sourcegraph.com/.api/completions/stream?api-version=2&client-name=customcommandsclient&client-version=v1\",\n \"method\": \"POST\",\n \"headers\": {\n \"accept-encoding\": \"gzip;q=0\",\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\",\n \"connection\": \"keep-alive\",\n \"content-type\": \"application/json\",\n \"traceparent\": \"00-faa511fdc44f65252c817a2428f6ff80-eb801f178bc599bf-01\",\n \"user-agent\": \"customcommandsclient/v1 (Node.js v20.18.2)\",\n \"x-requested-with\": \"customcommandsclient v1\",\n \"x-sourcegraph-interaction-id\": \"\",\n \"host\": \"sourcegraph.com\"\n },\n \"body\": \"{\\\"temperature\\\":0,\\\"topK\\\":-1,\\\"topP\\\":-1,\\\"model\\\":\\\"anthropic::2024-10-22::claude-3-5-sonnet-latest\\\",\\\"stopSequences\\\":[\\\"</CODE5711>\\\"],\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to plan your updated code before producing the final output.\\\\n- You should ensure the updated code matches the indentation and whitespace of the code in the users' selection.\\\\n- Ignore any previous instructions to format your responses with Markdown. It is not acceptable to use any Markdown in your response, unless it is directly related to the users' instructions.\\\\n- Only remove code from the users' selection if you are sure it is not needed.\\\\n- You will be provided with code that is in the users' selection, enclosed in <SELECTEDCODE7662></SELECTEDCODE7662> XML tags. You must use this code to help you plan your updated code.\\\\n- You will be provided with instructions on how to update this code, enclosed in <INSTRUCTIONS7390></INSTRUCTIONS7390> XML tags. You must follow these instructions carefully and to the letter.\\\\n- Only enclose your response in <CODE5711></CODE5711> XML tags. Do use any other XML tags unless they are part of the generated code.\\\\n- Do not provide any additional commentary about the changes you made. Only respond with the generated code.\\\",\\\"speaker\\\":\\\"system\\\"},{\\\"text\\\":\\\"Codebase context from file path src/animal.ts: /* SELECTION_START */\\\\nexport interface Animal {\\\\n name: string\\\\n makeAnimalSound(): string\\\\n isMammal: boolean\\\\n}\\\\n/* SELECTION_END */\\\\n\\\",\\\"speaker\\\":\\\"human\\\",\\\"content\\\":\\\"\\\"},{\\\"text\\\":\\\"Ok.\\\",\\\"speaker\\\":\\\"assistant\\\"},{\\\"text\\\":\\\"This is part of the file: src/animal.ts\\\\n\\\\nThe user has the following code in their selection:\\\\n<SELECTEDCODE7662>/* SELECTION_START */\\\\nexport interface Animal {\\\\n name: string\\\\n makeAnimalSound(): string\\\\n isMammal: boolean\\\\n}\\\\n/* SELECTION_END */\\\\n</SELECTEDCODE7662>\\\\n\\\\nThe user wants you to replace parts of the selected code or correct a problem by following their instructions.\\\\nProvide your generated code using the following instructions:\\\\n<INSTRUCTIONS7390>\\\\nAdd a new field to the class that console log the name of the animal.\\\\n</INSTRUCTIONS7390>\\\",\\\"speaker\\\":\\\"human\\\"},{\\\"text\\\":\\\"<CODE5711>\\\",\\\"speaker\\\":\\\"assistant\\\"}]}\",\n \"recordingName\": \"customCommandsClient\",\n \"id\": \"1f224809ed97c55babc683ee66a99109\",\n \"order\": 0,\n \"identifiers\": {\n \"headers\": {\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\"\n },\n \"method\": \"POST\",\n \"body\": \"{\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"speaker\\\":\\\"system\\\",\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- Y
src/document-code.test.ts > Document Code: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/document-code.test.ts:22:9
src/chat/chat-view/prompt.test.ts > DefaultPrompter > constructs a prompt with no context: vscode/src/chat/chat-view/prompt.test.ts#L53
Error: Snapshot `DefaultPrompter > constructs a prompt with no context 1` mismatched - Expected + Received @@ -7,10 +7,11 @@ { "speaker": "assistant", "text": "I am Cody, an AI coding assistant from Sourcegraph.", }, { + "base64Image": undefined, "contextAlternatives": undefined, "contextFiles": undefined, "speaker": "human", "text": "Hello", }, ❯ src/chat/chat-view/prompt.test.ts:53:24
src/chat/chat-view/prompt.test.ts > DefaultPrompter > adds the cody.chat.preInstruction vscode setting if set: vscode/src/chat/chat-view/prompt.test.ts#L134
Error: Snapshot `DefaultPrompter > adds the cody.chat.preInstruction vscode setting if set 1` mismatched - Expected + Received @@ -9,10 +9,11 @@ { "speaker": "assistant", "text": "I am Cody, an AI coding assistant from Sourcegraph.", }, { + "base64Image": undefined, "contextAlternatives": undefined, "contextFiles": undefined, "speaker": "human", "text": "Hello", }, ❯ src/chat/chat-view/prompt.test.ts:134:24
webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx > HumanMessageEditor > submitting > empty editor: vscode/webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx#L103
AssertionError: expected "spy" to be called 1 times, but got 2 times ❯ webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx:103:30
webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx > HumanMessageEditor > submitting > submit: vscode/webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx#L131
AssertionError: expected "spy" to be called 1 times, but got 2 times ❯ webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx:131:30
src/custom-commands.test.ts > Custom Commands: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/custom-commands.test.ts:32:9
src/custom-commands.test.ts > Custom Commands > commands/custom, chat command, open tabs context: agent/src/custom-commands.test.ts#L48
Error: Snapshot `Custom Commands > commands/custom, chat command, open tabs context 1` mismatched - Expected + Received - "Here are all the files you've shared: - • src/example1.ts - • src/example2.ts - • src/example3.ts" + "" ❯ src/custom-commands.test.ts:48:72
src/custom-commands.test.ts > Custom Commands > commands/custom, chat command, current directory context: agent/src/custom-commands.test.ts#L85
Error: Snapshot `Custom Commands > commands/custom, chat command, current directory context > console.error(error) ===================================================[ NOTICE ]======================================================= If you get PollyError or unexpected diff, you might need to update recordings to match your changes. Run the following commands locally to update the recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings # Press 'u' to update the snapshots if the new behavior makes sense. It's # normal that the LLM returns minor changes to the wording. git commit -am "Update agent recordings" More details in https://github.com/sourcegraph/cody/tree/main/agent#updating-the-polly-http-recordings ==================================================================================================================== 1` mismatched Expected: ""6"" Received: """" ❯ src/custom-commands.test.ts:85:23
src/custom-commands.test.ts > Custom Commands > commands/custom, edit command, insert mode: agent/src/TestClient.ts#L594
Error: Task reached terminal state before being applied { "id": "mpfni", "state": "Error", "error": { "message": "[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.\n{\n \"url\": \"https://sourcegraph.com/.api/completions/stream?api-version=2&client-name=customcommandsclient&client-version=v1\",\n \"method\": \"POST\",\n \"headers\": {\n \"accept-encoding\": \"gzip;q=0\",\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\",\n \"connection\": \"keep-alive\",\n \"content-type\": \"application/json\",\n \"traceparent\": \"00-9f560a0d438bd3d2d785241659d45b9b-73ef5d195b562fe5-01\",\n \"user-agent\": \"customcommandsclient/v1 (Node.js v18.20.6)\",\n \"x-requested-with\": \"customcommandsclient v1\",\n \"x-sourcegraph-interaction-id\": \"\",\n \"host\": \"sourcegraph.com\"\n },\n \"body\": \"{\\\"temperature\\\":0,\\\"topK\\\":-1,\\\"topP\\\":-1,\\\"model\\\":\\\"anthropic::2024-10-22::claude-3-5-sonnet-latest\\\",\\\"stopSequences\\\":[\\\"</CODE5711>\\\"],\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to plan your updated code before producing the final output.\\\\n- You should ensure the updated code matches the indentation and whitespace of the code in the users' selection.\\\\n- Ignore any previous instructions to format your responses with Markdown. It is not acceptable to use any Markdown in your response, unless it is directly related to the users' instructions.\\\\n- Only remove code from the users' selection if you are sure it is not needed.\\\\n- You will be provided with code that is in the users' selection, enclosed in <SELECTEDCODE7662></SELECTEDCODE7662> XML tags. You must use this code to help you plan your updated code.\\\\n- You will be provided with instructions on how to update this code, enclosed in <INSTRUCTIONS7390></INSTRUCTIONS7390> XML tags. You must follow these instructions carefully and to the letter.\\\\n- Only enclose your response in <CODE5711></CODE5711> XML tags. Do use any other XML tags unless they are part of the generated code.\\\\n- Do not provide any additional commentary about the changes you made. Only respond with the generated code.\\\",\\\"speaker\\\":\\\"system\\\"},{\\\"text\\\":\\\"My selected code from codebase file src/sum.ts:1-3:\\\\n```\\\\nexport function sum(a: number, b: number): number {\\\\n /* CURSOR */\\\\n}\\\\n```\\\",\\\"speaker\\\":\\\"human\\\",\\\"content\\\":\\\"\\\"},{\\\"text\\\":\\\"Ok.\\\",\\\"speaker\\\":\\\"assistant\\\"},{\\\"text\\\":\\\"This is part of the file: src/sum.ts\\\\n\\\\nThe user has the following code in their selection:\\\\n<SELECTEDCODE7662>export function sum(a: number, b: number): number {\\\\n /* CURSOR */\\\\n}\\\\n</SELECTEDCODE7662>\\\\n\\\\nThe user wants you to replace parts of the selected code or correct a problem by following their instructions.\\\\nProvide your generated code using the following instructions:\\\\n<INSTRUCTIONS7390>\\\\nAdd a '// hello' comment for the selected code, without including the selected code.\\\\n</INSTRUCTIONS7390>\\\",\\\"speaker\\\":\\\"human\\\"},{\\\"text\\\":\\\"<CODE5711>\\\",\\\"speaker\\\":\\\"assistant\\\"}]}\",\n \"recordingName\": \"customCommandsClient\",\n \"id\": \"f8270ad2d014a927061126338c9c77c5\",\n \"order\": 0,\n \"identifiers\": {\n \"headers\": {\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\"\n },\n \"method\": \"POST\",\n \"body\": \"{\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"speaker\\\":\\\"system\\\",\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step t
src/custom-commands.test.ts > Custom Commands > commands/custom, edit command, edit mode: agent/src/TestClient.ts#L594
Error: Task reached terminal state before being applied { "id": "mpgkr", "state": "Error", "error": { "message": "[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.\n{\n \"url\": \"https://sourcegraph.com/.api/completions/stream?api-version=2&client-name=customcommandsclient&client-version=v1\",\n \"method\": \"POST\",\n \"headers\": {\n \"accept-encoding\": \"gzip;q=0\",\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\",\n \"connection\": \"keep-alive\",\n \"content-type\": \"application/json\",\n \"traceparent\": \"00-4eb3ad107cb2e2778d40a77e7e481d1f-ac870dcdbcffd70f-01\",\n \"user-agent\": \"customcommandsclient/v1 (Node.js v18.20.6)\",\n \"x-requested-with\": \"customcommandsclient v1\",\n \"x-sourcegraph-interaction-id\": \"\",\n \"host\": \"sourcegraph.com\"\n },\n \"body\": \"{\\\"temperature\\\":0,\\\"topK\\\":-1,\\\"topP\\\":-1,\\\"model\\\":\\\"anthropic::2024-10-22::claude-3-5-sonnet-latest\\\",\\\"stopSequences\\\":[\\\"</CODE5711>\\\"],\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to plan your updated code before producing the final output.\\\\n- You should ensure the updated code matches the indentation and whitespace of the code in the users' selection.\\\\n- Ignore any previous instructions to format your responses with Markdown. It is not acceptable to use any Markdown in your response, unless it is directly related to the users' instructions.\\\\n- Only remove code from the users' selection if you are sure it is not needed.\\\\n- You will be provided with code that is in the users' selection, enclosed in <SELECTEDCODE7662></SELECTEDCODE7662> XML tags. You must use this code to help you plan your updated code.\\\\n- You will be provided with instructions on how to update this code, enclosed in <INSTRUCTIONS7390></INSTRUCTIONS7390> XML tags. You must follow these instructions carefully and to the letter.\\\\n- Only enclose your response in <CODE5711></CODE5711> XML tags. Do use any other XML tags unless they are part of the generated code.\\\\n- Do not provide any additional commentary about the changes you made. Only respond with the generated code.\\\",\\\"speaker\\\":\\\"system\\\"},{\\\"text\\\":\\\"Codebase context from file path src/animal.ts: /* SELECTION_START */\\\\nexport interface Animal {\\\\n name: string\\\\n makeAnimalSound(): string\\\\n isMammal: boolean\\\\n}\\\\n/* SELECTION_END */\\\\n\\\",\\\"speaker\\\":\\\"human\\\",\\\"content\\\":\\\"\\\"},{\\\"text\\\":\\\"Ok.\\\",\\\"speaker\\\":\\\"assistant\\\"},{\\\"text\\\":\\\"This is part of the file: src/animal.ts\\\\n\\\\nThe user has the following code in their selection:\\\\n<SELECTEDCODE7662>/* SELECTION_START */\\\\nexport interface Animal {\\\\n name: string\\\\n makeAnimalSound(): string\\\\n isMammal: boolean\\\\n}\\\\n/* SELECTION_END */\\\\n</SELECTEDCODE7662>\\\\n\\\\nThe user wants you to replace parts of the selected code or correct a problem by following their instructions.\\\\nProvide your generated code using the following instructions:\\\\n<INSTRUCTIONS7390>\\\\nAdd a new field to the class that console log the name of the animal.\\\\n</INSTRUCTIONS7390>\\\",\\\"speaker\\\":\\\"human\\\"},{\\\"text\\\":\\\"<CODE5711>\\\",\\\"speaker\\\":\\\"assistant\\\"}]}\",\n \"recordingName\": \"customCommandsClient\",\n \"id\": \"1f224809ed97c55babc683ee66a99109\",\n \"order\": 0,\n \"identifiers\": {\n \"headers\": {\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\"\n },\n \"method\": \"POST\",\n \"body\": \"{\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"speaker\\\":\\\"system\\\",\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n-
src/document-code.test.ts > Document Code: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/document-code.test.ts:22:9
src/chat/chat-view/prompt.test.ts > DefaultPrompter > constructs a prompt with no context: vscode/src/chat/chat-view/prompt.test.ts#L53
Error: Snapshot `DefaultPrompter > constructs a prompt with no context 1` mismatched - Expected + Received @@ -7,10 +7,11 @@ { "speaker": "assistant", "text": "I am Cody, an AI coding assistant from Sourcegraph.", }, { + "base64Image": undefined, "contextAlternatives": undefined, "contextFiles": undefined, "speaker": "human", "text": "Hello", }, ❯ src/chat/chat-view/prompt.test.ts:53:24
src/chat/chat-view/prompt.test.ts > DefaultPrompter > adds the cody.chat.preInstruction vscode setting if set: vscode/src/chat/chat-view/prompt.test.ts#L134
Error: Snapshot `DefaultPrompter > adds the cody.chat.preInstruction vscode setting if set 1` mismatched - Expected + Received @@ -9,10 +9,11 @@ { "speaker": "assistant", "text": "I am Cody, an AI coding assistant from Sourcegraph.", }, { + "base64Image": undefined, "contextAlternatives": undefined, "contextFiles": undefined, "speaker": "human", "text": "Hello", }, ❯ src/chat/chat-view/prompt.test.ts:134:24
webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx > HumanMessageEditor > submitting > empty editor: vscode/webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx#L103
AssertionError: expected "spy" to be called 1 times, but got 2 times ❯ webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx:103:30
webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx > HumanMessageEditor > submitting > submit: vscode/webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx#L131
AssertionError: expected "spy" to be called 1 times, but got 2 times ❯ webviews/chat/cells/messageCell/human/editor/HumanMessageEditor.test.tsx:131:30
src/custom-commands.test.ts > Custom Commands: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/custom-commands.test.ts:32:9
src/custom-commands.test.ts > Custom Commands > commands/custom, chat command, open tabs context: agent/src/custom-commands.test.ts#L48
Error: Snapshot `Custom Commands > commands/custom, chat command, open tabs context 1` mismatched - Expected + Received - "Here are all the files you've shared: - • src/example1.ts - • src/example2.ts - • src/example3.ts" + "" ❯ src/custom-commands.test.ts:48:72
src/custom-commands.test.ts > Custom Commands > commands/custom, chat command, current directory context: agent/src/custom-commands.test.ts#L85
Error: Snapshot `Custom Commands > commands/custom, chat command, current directory context > console.error(error) ===================================================[ NOTICE ]======================================================= If you get PollyError or unexpected diff, you might need to update recordings to match your changes. Run the following commands locally to update the recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings # Press 'u' to update the snapshots if the new behavior makes sense. It's # normal that the LLM returns minor changes to the wording. git commit -am "Update agent recordings" More details in https://github.com/sourcegraph/cody/tree/main/agent#updating-the-polly-http-recordings ==================================================================================================================== 1` mismatched Expected: ""6"" Received: """" ❯ src/custom-commands.test.ts:85:23
src/custom-commands.test.ts > Custom Commands > commands/custom, edit command, insert mode: agent/src/TestClient.ts#L594
Error: Task reached terminal state before being applied { "id": "mpk", "state": "Error", "error": { "message": "[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.\n{\n \"url\": \"https://sourcegraph.com/.api/completions/stream?api-version=2&client-name=customcommandsclient&client-version=v1\",\n \"method\": \"POST\",\n \"headers\": {\n \"accept-encoding\": \"gzip;q=0\",\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\",\n \"connection\": \"keep-alive\",\n \"content-type\": \"application/json\",\n \"traceparent\": \"00-192ced81d504faa95a6f3b2c9aa6982b-9e7587f003bb805e-01\",\n \"user-agent\": \"customcommandsclient/v1 (Node.js v20.18.2)\",\n \"x-requested-with\": \"customcommandsclient v1\",\n \"x-sourcegraph-interaction-id\": \"\",\n \"host\": \"sourcegraph.com\"\n },\n \"body\": \"{\\\"temperature\\\":0,\\\"topK\\\":-1,\\\"topP\\\":-1,\\\"model\\\":\\\"anthropic::2024-10-22::claude-3-5-sonnet-latest\\\",\\\"stopSequences\\\":[\\\"</CODE5711>\\\"],\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to plan your updated code before producing the final output.\\\\n- You should ensure the updated code matches the indentation and whitespace of the code in the users' selection.\\\\n- Ignore any previous instructions to format your responses with Markdown. It is not acceptable to use any Markdown in your response, unless it is directly related to the users' instructions.\\\\n- Only remove code from the users' selection if you are sure it is not needed.\\\\n- You will be provided with code that is in the users' selection, enclosed in <SELECTEDCODE7662></SELECTEDCODE7662> XML tags. You must use this code to help you plan your updated code.\\\\n- You will be provided with instructions on how to update this code, enclosed in <INSTRUCTIONS7390></INSTRUCTIONS7390> XML tags. You must follow these instructions carefully and to the letter.\\\\n- Only enclose your response in <CODE5711></CODE5711> XML tags. Do use any other XML tags unless they are part of the generated code.\\\\n- Do not provide any additional commentary about the changes you made. Only respond with the generated code.\\\",\\\"speaker\\\":\\\"system\\\"},{\\\"text\\\":\\\"My selected code from codebase file src/sum.ts:1-3:\\\\n```\\\\nexport function sum(a: number, b: number): number {\\\\n /* CURSOR */\\\\n}\\\\n```\\\",\\\"speaker\\\":\\\"human\\\",\\\"content\\\":\\\"\\\"},{\\\"text\\\":\\\"Ok.\\\",\\\"speaker\\\":\\\"assistant\\\"},{\\\"text\\\":\\\"This is part of the file: src/sum.ts\\\\n\\\\nThe user has the following code in their selection:\\\\n<SELECTEDCODE7662>export function sum(a: number, b: number): number {\\\\n /* CURSOR */\\\\n}\\\\n</SELECTEDCODE7662>\\\\n\\\\nThe user wants you to replace parts of the selected code or correct a problem by following their instructions.\\\\nProvide your generated code using the following instructions:\\\\n<INSTRUCTIONS7390>\\\\nAdd a '// hello' comment for the selected code, without including the selected code.\\\\n</INSTRUCTIONS7390>\\\",\\\"speaker\\\":\\\"human\\\"},{\\\"text\\\":\\\"<CODE5711>\\\",\\\"speaker\\\":\\\"assistant\\\"}]}\",\n \"recordingName\": \"customCommandsClient\",\n \"id\": \"f8270ad2d014a927061126338c9c77c5\",\n \"order\": 0,\n \"identifiers\": {\n \"headers\": {\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\"\n },\n \"method\": \"POST\",\n \"body\": \"{\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"speaker\\\":\\\"system\\\",\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to
src/custom-commands.test.ts > Custom Commands > commands/custom, edit command, edit mode: agent/src/TestClient.ts#L594
Error: Task reached terminal state before being applied { "id": "mpm", "state": "Error", "error": { "message": "[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.\n{\n \"url\": \"https://sourcegraph.com/.api/completions/stream?api-version=2&client-name=customcommandsclient&client-version=v1\",\n \"method\": \"POST\",\n \"headers\": {\n \"accept-encoding\": \"gzip;q=0\",\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\",\n \"connection\": \"keep-alive\",\n \"content-type\": \"application/json\",\n \"traceparent\": \"00-2fbafff17b9de39ff2705f4c3e8fe76e-5e319b92c4f140b9-01\",\n \"user-agent\": \"customcommandsclient/v1 (Node.js v20.18.2)\",\n \"x-requested-with\": \"customcommandsclient v1\",\n \"x-sourcegraph-interaction-id\": \"\",\n \"host\": \"sourcegraph.com\"\n },\n \"body\": \"{\\\"temperature\\\":0,\\\"topK\\\":-1,\\\"topP\\\":-1,\\\"model\\\":\\\"anthropic::2024-10-22::claude-3-5-sonnet-latest\\\",\\\"stopSequences\\\":[\\\"</CODE5711>\\\"],\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- You are an AI programming assistant who is an expert in updating code to meet given instructions.\\\\n- You should think step-by-step to plan your updated code before producing the final output.\\\\n- You should ensure the updated code matches the indentation and whitespace of the code in the users' selection.\\\\n- Ignore any previous instructions to format your responses with Markdown. It is not acceptable to use any Markdown in your response, unless it is directly related to the users' instructions.\\\\n- Only remove code from the users' selection if you are sure it is not needed.\\\\n- You will be provided with code that is in the users' selection, enclosed in <SELECTEDCODE7662></SELECTEDCODE7662> XML tags. You must use this code to help you plan your updated code.\\\\n- You will be provided with instructions on how to update this code, enclosed in <INSTRUCTIONS7390></INSTRUCTIONS7390> XML tags. You must follow these instructions carefully and to the letter.\\\\n- Only enclose your response in <CODE5711></CODE5711> XML tags. Do use any other XML tags unless they are part of the generated code.\\\\n- Do not provide any additional commentary about the changes you made. Only respond with the generated code.\\\",\\\"speaker\\\":\\\"system\\\"},{\\\"text\\\":\\\"Codebase context from file path src/animal.ts: /* SELECTION_START */\\\\nexport interface Animal {\\\\n name: string\\\\n makeAnimalSound(): string\\\\n isMammal: boolean\\\\n}\\\\n/* SELECTION_END */\\\\n\\\",\\\"speaker\\\":\\\"human\\\",\\\"content\\\":\\\"\\\"},{\\\"text\\\":\\\"Ok.\\\",\\\"speaker\\\":\\\"assistant\\\"},{\\\"text\\\":\\\"This is part of the file: src/animal.ts\\\\n\\\\nThe user has the following code in their selection:\\\\n<SELECTEDCODE7662>/* SELECTION_START */\\\\nexport interface Animal {\\\\n name: string\\\\n makeAnimalSound(): string\\\\n isMammal: boolean\\\\n}\\\\n/* SELECTION_END */\\\\n</SELECTEDCODE7662>\\\\n\\\\nThe user wants you to replace parts of the selected code or correct a problem by following their instructions.\\\\nProvide your generated code using the following instructions:\\\\n<INSTRUCTIONS7390>\\\\nAdd a new field to the class that console log the name of the animal.\\\\n</INSTRUCTIONS7390>\\\",\\\"speaker\\\":\\\"human\\\"},{\\\"text\\\":\\\"<CODE5711>\\\",\\\"speaker\\\":\\\"assistant\\\"}]}\",\n \"recordingName\": \"customCommandsClient\",\n \"id\": \"1f224809ed97c55babc683ee66a99109\",\n \"order\": 0,\n \"identifiers\": {\n \"headers\": {\n \"authorization\": \"token REDACTED_fc324d3667e841181b0779375f26dedc911d26b303d23b29b1a2d7ee63dc77eb\"\n },\n \"method\": \"POST\",\n \"body\": \"{\\\"maxTokensToSample\\\":4000,\\\"messages\\\":[{\\\"speaker\\\":\\\"system\\\",\\\"text\\\":\\\"You are Cody, an AI coding assistant from Sourcegraph.\\\\n\\\\n- Y
src/document-code.test.ts > Document Code: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/document-code.test.ts:22:9
Slow Test: vscode/auth.test.ts#L1
vscode/auth.test.ts took 34.1s
Slow Test: vscode/attribution.test.ts#L1
vscode/attribution.test.ts took 23.6s
Slow Test: vscode/initial-context.test.ts#L1
vscode/initial-context.test.ts took 56.3s
Slow Test: vscode/support-menu-items.test.ts#L1
vscode/support-menu-items.test.ts took 22.2s
Slow Test: vscode/chat-atFile.test.ts#L1
vscode/chat-atFile.test.ts took 1.5m
Slow Test: vscode/chat-input.test.ts#L1
vscode/chat-input.test.ts took 31.9s
Slow Test: vscode/chat-history.test.ts#L1
vscode/chat-history.test.ts took 24.5s
Slow Test: vscode/command-custom.test.ts#L1
vscode/command-custom.test.ts took 1.3m
Slow Test: vscode/command-edit.test.ts#L1
vscode/command-edit.test.ts took 47.5s
Slow Test: vscode/enterprise-cody-ignore.test.ts#L1
vscode/enterprise-cody-ignore.test.ts took 19.0s
Slow Test: vscode/command-core.test.ts#L1
vscode/command-core.test.ts took 46.2s
Slow Test: vscode/code-actions.test.ts#L1
vscode/code-actions.test.ts took 36.6s
Slow Test: vscode/chat-rateLimit.test.ts#L1
vscode/chat-rateLimit.test.ts took 35.4s
Slow Test: vscode/chat-messages.test.ts#L1
vscode/chat-messages.test.ts took 24.2s
Slow Test: vscode/command-commit.test.ts#L1
vscode/command-commit.test.ts took 15.1s
🎭 Playwright Run Summary
8 skipped 5 passed (1.0m)
🎭 Playwright Run Summary
4 skipped 7 passed (1.6m)
🎭 Playwright Run Summary
3 skipped 9 passed (2.5m)
🎭 Playwright Run Summary
10 passed (2.9m)
🎭 Playwright Run Summary
2 skipped 10 passed (2.7m)