Repository navigation
fix(github): recover oversized issue creation - #8217
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: f42e0d8a-3871-4bb2-b7e1-586c4a6ba52d
📥 Commits
Reviewing files that changed from the base of the PR and between 4df9457 and 508398f1db050fbaabcf6e2387d69ba28f4e3f61.
📒 Files selected for processing (2)
src/main/github/issues.test.tssrc/main/github/issues.ts
508398f to
fc93030
Compare
|
Thanks @rodboev — I pushed a maintainer follow-up that:
Verification: 17 focused tests, full typecheck, targeted lint/format, and the max-lines ratchet pass. Full repo lint reaches localization verification and is blocked by four unrelated missing keys in ai-vault-session-log-open.ts already present on main. Electron disclosure: an isolation attempt unexpectedly routed mutation calls through the long-lived runtime and created blank issues #8232 and #8233; both were immediately closed as not planned. Per explicit owner direction, I stopped further Electron attempts and proceeded with automated coverage and CI despite that golden-path validation gap. |
AmethystLiang
left a comment
There was a problem hiding this comment.
Approved after the maintainer follow-up. The structured-error recovery, partial-success UX, timeout, draft preservation, and regression coverage are in place; the Electron validation exception is documented in the PR comment.
* fix(github): recover oversized issue creation (stablyai#7704) * fix(github): preserve partial issue creation --------- Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Summary
Closes #7704.
Screenshots
No visual change
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused validation run in this session:
pnpm exec vitest run --config config/vitest.config.ts src/main/github/issues.test.ts- passed; 14 tests passed, including oversized-body recovery, placeholder-create failure, unrelated-validation negative space, field preservation, and partial-success reporting.pnpm run typecheck:node- passed.pnpm exec oxlint src/main/github/issues.ts src/main/github/issues.test.ts- passed.pnpm exec oxfmt --check src/main/github/issues.ts src/main/github/issues.test.ts- passed.AI Review Report
The fallback is confined to GitHub's
body is too long (maximum is 65536 characters)validation response. Tests cover the reporter-shapeddata:imagebody, placeholder-create failure, ordinary creation, metadata preservation, unrelated failures, and partial-success reporting. Repository routing and WSL execution options remain unchanged.Security Audit
Argument-array execution through
ghExecFileAsyncis preserved, with no shell interpolation or new credentials, dependencies, IPC permissions, or filesystem paths. Unrelated errors do not create placeholder issues, and a failed patch reports the created issue identity without claiming the body was saved.Notes
The change is confined to GitHub issue creation and focused backend tests. Existing issue editing, GitLab, Jira, Linear, renderer draft reconciliation, release metadata, and localization remain unchanged.