Repository navigation
Conversation
nc-review: needs work — 1 blocking, 1 important, 2 nits@rishu685 — there is a blocking item below. The PR resolves the resume-on-restart bug described in #1719 by tracking 🔴 blocking · This is a user-facing bug fix in the VS Code extension and needs a 🟠 important · Both new ⚪ nit · If the provider's new ⚪ nit ·
🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
|
Thank you for the review! All review feedback has been addressed in commit d70132d:
|
Fixes #1719
Problem
When the ACP backend process restarts or crashes/reconnects, the webview and client state could diverge from the server session: previously active sessions were not automatically resumed, and if a fresh session was created, the webview could retain stale conversation state without notifying the user.
Solution
lastActiveSessionId: Preserve the active session ID when connection drops, before restarting the ACP process, or when setConnection is called inNanocoderAcpClient._initializeSessionIfReady(), if alastActiveSessionIdexisted, attempt to resume it on the restarted backend.