Skip to content

fix(web): keep a side chat's first question if the panel closes during send - #315

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
fix/side-chat-send-survives-close
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
fix/side-chat-send-survives-close

Conversation

@cursor

@cursor cursor Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

What Changed

A side chat's first send is noted when the user commits it, before the title, settings, and attachment round trips. Closing the panel during those round trips archives it instead of deleting it.

Why

thread.delete with onlyIfUnused removes a side chat that has no message or turn yet. The client was supposed to note a send before it went out, but the note lived inside startThreadTurn, after those awaits. Closing the panel in that window deleted the thread. The turn then failed, and Reopen closed chat does not list a deleted panel, so the question was gone.

The note now happens when the send is committed, including a plan follow-up whose settings are saved before the turn. The turn call still notes the send, which covers the attachment replay.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • No UI chrome change, so no screenshots
Open in Web View Automation 

…g send

The unused-delete guard was noted only inside startThreadTurn, after the
title, settings, and attachment round trips. Closing the panel in that
window deleted the side chat before the turn was submitted, so the
question could not be reopened. Note the send when it is committed.

Co-Authored-By: mubeda <1380447+mubeda@users.noreply.github.com>
@github-actions github-actions Bot added size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Nov 6, 2026
@mubeda
mubeda force-pushed the fix/side-chat-send-survives-close branch from b8ac9d8 to efe222a Compare November 8, 2026 23:41
@mubeda

mubeda commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Closed at the maintainer's request after the v0.15.3 release.

@mubeda mubeda closed this Nov 9, 2026
@mubeda
mubeda deleted the fix/side-chat-send-survives-close branch November 9, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants