fix: suppress false incomplete response warnings - #10800
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (13 files)
NotesIncremental review of commit This commit is a clean fork hygiene refactoring — no new issues found.
Shared file call sites — Tests moved from lgtm Reviewed by claude-4.6-sonnet-20260217 · 890,337 tokens Review guidance: REVIEW.md from base branch |
marius-kilocode
left a comment
There was a problem hiding this comment.
Can we remove the Copilot specific changes, they look incorrect.
# Conflicts: # packages/opencode/src/kilocode/worktree-family.ts # packages/opencode/src/session/prompt.ts # packages/opencode/test/kilocode/worktree-family-submodule.test.ts
fix: suppress false incomplete response warnings
Issue
No linked issue; this fixes a false incomplete-response warning regression found during local work.
Context
Completed turns can be misclassified as unexpected or incomplete when the terminal assistant message is not real user-visible assistant output. This can happen when an OpenAI Responses stream ends after producing output without a terminal response event, and when VS Code snapshot initialization status appears as an assistant tail.
While preparing the PR, the pre-push typecheck also exposed stale Kilo-owned
WorktreeFamilysubmodule test code that no longer matched the current Effect/Instance APIs, so this branch includes the minimal fix required for the hook to pass.Implementation
tool-callsand text streams finish asstopinstead ofother.WorktreeFamilysubmodule regression test to the current Effect harness and use the yielded instance context in production code.Screenshots / Video
N/A - no visual changes.
How to Test
Manual/local verification
bun test ./test/kilocode/provider/openai-responses-finish.test.tsfrompackages/opencode/- passed.bun test ./test/kilocode/worktree-family-submodule.test.ts ./test/kilocode/worktree-family.test.ts ./test/kilocode/provider/openai-responses-finish.test.tsfrompackages/opencode/- passed.bun run typecheckfrompackages/opencode/- passed.bun test tests/unit/session-outcome.test.tsfrompackages/kilo-vscode/- passed.bun run typecheckfrompackages/kilo-vscode/- passed.bun run script/check-opencode-annotations.tsfrom the repo root - passed.bun run formatfrompackages/kilo-vscode/- passed.bun turbo typecheck- passed.Reviewer test steps
WorktreeFamilysubmodule regression test to confirm submodule worktrees still resolve to their working tree instead of the internal gitdir.Blocked checks and substitute verification
bun run test:unit -- session-outcomefrompackages/kilo-vscode/, but the script ran the full unit suite and failed in unrelatedtests/unit/worktree-manager.test.tswithExpected: "remote"andReceived: "local-tracking"; substitute verification was the direct targeted session outcome test above.Checklist
Get in Touch
N/A