Skip to content

fix: pr-bug-scan validated finding from #2274 - #2296

Merged
AmethystLiang merged 1 commit into
mainfrom
bot/pr-bug-scan-2274-1779160029
May 19, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
bot/pr-bug-scan-2274-1779160029

Conversation

@buf0-bot

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

Copy link
Copy Markdown
Contributor

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

Fixer status: FIXED_WITH_CODE_PROOF
Summary: Delete credentialRequestedForTarget entry in doResetRelay finally so a later doConnect without a prompt doesn't persist stale lastRequiredPassphrase=true.
Blocked proof link: src/main/ipc/ssh.ts:692-732 doResetRelay try/finally now deletes from credentialRequestedForTarget, mirroring peers at 364-365, 631-634, 854-859.
Typecheck: skipped

Proof (from validator)

  • C1 — proof_type: code_analysis
    • trigger: User clicks Reset Relay on a disconnected target whose key requires a passphrase prompt; later issues ssh:connect against the same target via a path that does not prompt (e.g., ssh-agent now has the key, or auth uses a different cached credential).
    • observable: lastRequiredPassphrase is persisted as true even though the most recent ssh:connect did not actually trigger a credential prompt; subsequent app startups defer this target to tab focus rather than reconnecting eagerly.
    • path:
      • src/main/ipc/ssh.ts:746 ipcMain.handle('ssh:resetRelay', ...) → doResetRelay
      • src/main/ipc/ssh.ts:712 doResetRelay calls connectionManager!.connect(target) when no existing connection
      • src/main/ipc/ssh.ts:285-287 onCredentialRequest callback unconditionally does credentialRequestedForTarget.add(targetId)
      • src/main/ipc/ssh.ts:692-732 doResetRelay's try/finally never deletes from credentialRequestedForTarget (contrast with doConnect at 631-634 success path and 364-365 error path, and testConnection finally at 854-859)
      • src/main/ipc/ssh.ts:629-635 next ssh:connect → doConnect computes const requiredPassphrase = credentialRequestedForTarget.has(targetId) → reads stale true, sshStore.updateTarget({ lastRequiredPassphrase: true })

Generated by pr-bug-scan (proof-machine architecture). Human approval required before merge.

Delete credentialRequestedForTarget entry in doResetRelay finally so a later doConnect without a prompt doesn't persist stale lastRequiredPassphrase=true.
@AmethystLiang
AmethystLiang merged commit fd2b782 into main May 19, 2026
2 checks passed
@AmethystLiang
AmethystLiang deleted the bot/pr-bug-scan-2274-1779160029 branch May 19, 2026 18:09
AmethystLiang pushed a commit that referenced this pull request May 19, 2026
AmethystLiang added a commit that referenced this pull request May 19, 2026
* Squashed commits

- WIP: uncommitted changes before rebase

- ci

- Show inline PR check details in task drawer

- Add a Checks tab that opens from the PR checks cell and expands runs inline
- Fetch check output, annotations, and workflow job steps through IPC/RPC
- Improve markdown/comment wrapping so long PR content stays within the drawer

* Use app-styled confirmations for PR actions (#2324)

Co-authored-by: Orca <[email protected]>

* fix: pr-bug-scan validated finding from #2274 (#2296)

Co-authored-by: orca-bug-scan-bot <[email protected]>

---------

Co-authored-by: Jinwoo Hong <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
Co-authored-by: orca-bug-scan-bot <[email protected]>
AmethystLiang added a commit that referenced this pull request May 19, 2026
* Squashed commits

- WIP: uncommitted changes before rebase

- ci

- Show inline PR check details in task drawer

- Add a Checks tab that opens from the PR checks cell and expands runs inline
- Fetch check output, annotations, and workflow job steps through IPC/RPC
- Improve markdown/comment wrapping so long PR content stays within the drawer

* Use app-styled confirmations for PR actions (#2324)

Co-authored-by: Orca <[email protected]>

* fix: pr-bug-scan validated finding from #2274 (#2296)

Co-authored-by: orca-bug-scan-bot <[email protected]>

* fix: avoid optional git locks during status checks

---------

Co-authored-by: Jinwoo Hong <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
Co-authored-by: orca-bug-scan-bot <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Squashed commits

- WIP: uncommitted changes before rebase

- ci

- Show inline PR check details in task drawer

- Add a Checks tab that opens from the PR checks cell and expands runs inline
- Fetch check output, annotations, and workflow job steps through IPC/RPC
- Improve markdown/comment wrapping so long PR content stays within the drawer

* Use app-styled confirmations for PR actions (stablyai#2324)

Co-authored-by: Orca <[email protected]>

* fix: pr-bug-scan validated finding from stablyai#2274 (stablyai#2296)

Co-authored-by: orca-bug-scan-bot <[email protected]>

---------

Co-authored-by: Jinwoo Hong <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
Co-authored-by: orca-bug-scan-bot <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Squashed commits

- WIP: uncommitted changes before rebase

- ci

- Show inline PR check details in task drawer

- Add a Checks tab that opens from the PR checks cell and expands runs inline
- Fetch check output, annotations, and workflow job steps through IPC/RPC
- Improve markdown/comment wrapping so long PR content stays within the drawer

* Use app-styled confirmations for PR actions (stablyai#2324)

Co-authored-by: Orca <[email protected]>

* fix: pr-bug-scan validated finding from stablyai#2274 (stablyai#2296)

Co-authored-by: orca-bug-scan-bot <[email protected]>

* fix: avoid optional git locks during status checks

---------

Co-authored-by: Jinwoo Hong <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
Co-authored-by: orca-bug-scan-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