Fix "Done" affordance not going away after inline chat exit without changes

Co-authored-by: jrieken <1794099+jrieken@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-28 18:05:04 +00:00
parent 3d17932be8
commit db70877d18

View File

@@ -330,7 +330,9 @@ export class InlineChatController implements IEditorContribution {
const lastRequest = session.chatModel.lastRequestObs.read(r);
const isInProgress = lastRequest?.response?.isInProgress.read(r);
const entry = session.editingSession.readEntry(session.uri, r);
const isNotSettled = !entry || entry.state.read(r) === ModifiedFileEntryState.Modified;
// When there's no entry (no changes made) and the response is complete, the widget should be hidden.
// When there's an entry in Modified state, it needs to be settled (accepted/rejected).
const isNotSettled = entry ? entry.state.read(r) === ModifiedFileEntryState.Modified : false;
if (isInProgress || isNotSettled) {
sessionOverlayWidget.show(session);
} else {