Repository navigation
feat(search-mcp): chat continues a conversation by chatId - #10438
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; no actionable issues remain. SummaryAdds optional
No new actionable issues were found. The earlier lock-expiry finding is addressed by starting the heartbeat and stopping it during cleanup.
|
222b231 to
5544a30
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
chattakes an optionalchatId(from an earlier chat answer) and asks the follow-up in that conversation; the worker rehydrates the conversation's history from the chat ID, so the second answer builds on the firstmothershiptype, not deleted, and in Assistant mode; anything else (another member's chat, another org, Agent/Plan chats, malformed IDs) is the same not-found before any work or billingacquirePendingChatStream, no wait) inside the turn's try/finally, so a follow-up sent while the conversation is answering fails cleanly withconflict, and the lock is always releasedchatIdis returned even if this turn's transcript save failedchatIdfor follow-ups;chatIdhas no uuid pattern in tools/list (validated server-side) to keep the schema smallType of Change
Testing
chat.integration.ts(real Postgres + Redis): follow-up reuses the chat and appends to its transcript; another member's / other org's / deleted / Agent / malformed chat IDs are not found without running; a concurrent follow-up getsconflictand the lock frees after; a failed follow-up keeps an empty resumed chatchat.test.ts,lib/knowledge/mcptests; biome;check:api-validation:strictChecklist
test-auditauthoring gate)