Skip to content

Preserve user questions across daemon reconnects - #2797

Merged
SawyerHood merged 1 commit into
get-bb:mainfrom
vburojevic:fix/preserve-pending-interactions-on-daemon-reconnect
Sep 3, 2026
Merged

SawyerHood merged 1 commit into
get-bb:mainfrom
vburojevic:fix/preserve-pending-interactions-on-daemon-reconnect

Conversation

@vburojevic

Copy link
Copy Markdown
Contributor

What was wrong

A transient same-process host-daemon reconnect interrupted every pending provider interaction in the server database. The daemon intentionally keeps its in-memory provider waiter across that reconnect, so the server hid the question while the provider continued waiting forever. The thread then looked active with no command and no pending interaction.

This was reproduced after Connect tunnel outages returned heartbeat timeouts and upstream 502/503/504 responses without restarting the local daemon.

What changed

Same-daemon replacement sessions now preserve pending interactions. A genuinely new daemon instance still interrupts them and performs the existing terminal cleanup. The ordinary disconnect grace still interrupts when no daemon returns.

Verification

  • Regression test: red before the policy change, green after
  • Focused pending-interaction suite: 30 passed
  • Server typecheck: passed
  • Full server suite: 2081 passed; one unrelated install-script timeout passed immediately when rerun in isolation (17 passed)
  • Changed-file format check and git diff check: passed

@SawyerHood
SawyerHood merged commit d0d417e into get-bb:main Sep 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants