Skip to content

fix: pr-bug-scan findings from #1454 - #1567

Merged
nwparker merged 1 commit into
mainfrom
bot/pr-bug-scan-1454-1778211203
May 8, 2026
Merged

nwparker merged 1 commit into
mainfrom
bot/pr-bug-scan-1454-1778211203

Conversation

@buf0-bot

@buf0-bot buf0-bot Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

Automated fix-PR from pr-bug-scan for parent #1454.

Fixer summary: Fixed two SIGKILL/wake-routing bugs: setWorkspaceSession now merges prior tab.ptyId/ptyIdsByLeafId when incoming snapshot's binding is empty; DaemonPtyRouter.shutdown skips sessionAdapters.delete under keepHistory so legacy-adapter sessions wake on the right adapter.
Typecheck: skipped

Findings addressed

  • ✅ [medium] src/main/persistence.ts:684 — persistPtyBinding can be clobbered by a concurrent session:set
  • ✅ [medium] src/main/daemon/daemon-pty-router.ts:67 — Router deletes sessionAdapters on sleep, breaking wake routing for legacy adapters

This PR was generated by the pr-bug-scan automation and reviewed by an agent reviewer. Human approval required before merge.

Addresses two SIGKILL/wake-routing bugs:

- setWorkspaceSession now merges prior tab.ptyId / ptyIdsByLeafId
  when the incoming snapshot's binding is empty, closing the second
  half of the SIGKILL race that could clobber persistPtyBinding.
- DaemonPtyRouter.shutdown skips sessionAdapters.delete when
  keepHistory=true so legacy-adapter sessions wake on the right
  adapter on resume.
@buf0-bot
buf0-bot Bot force-pushed the bot/pr-bug-scan-1454-1778211203 branch from c8013e1 to 05cddd5 Compare May 8, 2026 06:04
@nwparker
nwparker merged commit ba034c3 into main May 8, 2026
2 checks passed
@nwparker
nwparker deleted the bot/pr-bug-scan-1454-1778211203 branch May 8, 2026 06:07
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Addresses two SIGKILL/wake-routing bugs:

- setWorkspaceSession now merges prior tab.ptyId / ptyIdsByLeafId
  when the incoming snapshot's binding is empty, closing the second
  half of the SIGKILL race that could clobber persistPtyBinding.
- DaemonPtyRouter.shutdown skips sessionAdapters.delete when
  keepHistory=true so legacy-adapter sessions wake on the right
  adapter on resume.

Co-authored-by: orca-bot <[email protected]>
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.

1 participant