feat: context-window overhaul, slash commands, footer ring; fix session-switch flash (closes #142, #143) #144
Annotations
2 errors and 1 warning
|
Run OpenAI Code Review
HttpError: Unprocessable Entity: "Line could not be resolved"
at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:3619:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:34577:18)
{
err: {
type: 'AggregateError',
message: '\n' +
' HttpError: Unprocessable Entity: "Line could not be resolved"\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:34577:18)',
stack: 'AggregateError: \n' +
' HttpError: Unprocessable Entity: "Line could not be resolved"\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:34577:18)\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:12925:19',
aggregateErrors: [
{
type: 'RequestError',
message: 'Unprocessable Entity: "Line could not be resolved"',
stack: 'HttpError: Unprocessable Entity: "Line could not be resolved"\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:34577:18)',
name: 'HttpError',
status: 422,
response: {
url: 'https://api.github.com/repos/deep-copilot/DeepCopilot/pulls/144/reviews',
status: 422,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset, Warning',
connection: 'close',
'content-length': '189',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 24 May 2026 12:37:18 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'pull_requests=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '7028:A7A6C:6F7C0D:1AA0496:6A12F0FE',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4896',
'x-ratelimit-reset': '1779627679',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '104',
'x-xss-protection': '0'
},
data: {
message: 'Unprocessable Entity',
errors: [ 'Line could not be resolved' ],
document
|
|
Run OpenAI Code Review
Unprocessable Entity: "Line could not be resolved"
{
name: 'event',
id: '26361426592',
err: {
type: 'RequestError',
message: 'Unprocessable Entity: "Line could not be resolved"',
stack: 'HttpError: Unprocessable Entity: "Line could not be resolved"\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:3619:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/1e3df152c1b85c12da580b206c91ad343460c584/action/index.cjs:34577:18)',
name: 'HttpError',
status: 422,
response: {
url: 'https://api.github.com/repos/deep-copilot/DeepCopilot/pulls/144/reviews',
status: 422,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset, Warning',
connection: 'close',
'content-length': '189',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 24 May 2026 12:37:18 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'pull_requests=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '7028:A7A6C:6F7C0D:1AA0496:6A12F0FE',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4896',
'x-ratelimit-reset': '1779627679',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '104',
'x-xss-protection': '0'
},
data: {
message: 'Unprocessable Entity',
errors: [ 'Line could not be resolved' ],
documentation_url: 'https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request',
status: '422'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/deep-copilot/DeepCopilot/pulls/144/reviews',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.3.0 octokit-core.js/3.6.0 Node.js/20.20.2 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"Code review by ChatGPT","event":"COMMENT","commit_id":"020bd81b2de65892be078a27867a970695bc09ee","comments":[{"path":"src/chat/agent-loop.js","body":"在此处将 `hrole` 修改为 `role`,虽然这可能是为了符合某种规范,但需要确保所有相关代码都能正确处理这个更改。请检查是否有其他地方依赖于 `hrole`,以避免潜在的空指针异常或未处理的异常。此外,建议在修改后进行全面的单元测试,以确保功能的完整性。","line":60,"side":"RIGHT"},{"path":"src/chat/compact.js","body":"在正则表达式的修改中,虽然增加了对 Windows 驱动器字母的支持,但需要确保在其他操作系统(如 Linux 和 macOS)中不会引入新的问题。建议添加单元测试以验证不同路径格式的处理是否正确。此外,使用 `Set` 进行去重的方式在大数据量时可能会影响性能,建议考虑使用更高效的数据结构或算法。","line":89,"side":"RIGHT"},{"path":"src/chat/compact.js","body":"在构建返回内容时,使用了结构化的占位符标签,这样做是好的,但需要确保在后续处理时不会引入 XSS 漏洞。�
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, anc95/ChatGPT-CodeReview@1e3df152c1b85c12da580b206c91ad343460c584. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
background
wait
wait-all
cancel
Loading