Skip to content

Keep SSH relay alive and add reset control - #2274

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/bug-ssh-terminal-state-lost-after-5min-orca-disc
May 18, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/bug-ssh-terminal-state-lost-after-5min-orca-disc

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Increase the default SSH relay grace period to 3 hours and allow 0 as an unlimited grace period.
  • Add an explicit SSH target reset action that force-stops the remote relay and removes its socket when needed.
  • Serialize relay reset and connect flows so reset cannot race active or newly-started connections.
  • Add focused tests for relay grace timing, reset cleanup, connection/reset races, and UI action state.

Fixes #2248.

Verification

  • pnpm test
  • pnpm run typecheck
  • pnpm run build:relay
  • pnpm exec oxfmt --check ...
  • pnpm exec oxlint ...
  • Focused SSH/relay vitest suite
  • Manual SSH e2e against openclaw 2: confirmed 10800-second relay grace, disconnect preserved the remote relay, and reset removed the remote relay socket/process.
  • Ran 3 auto-review-fix passes; final pass had no unresolved findings.

@Jinwoo-H
Jinwoo-H merged commit c3bfc79 into main May 18, 2026
2 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/bug-ssh-terminal-state-lost-after-5min-orca-disc branch May 18, 2026 22:19
AmethystLiang pushed a commit that referenced this pull request May 19, 2026
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
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.

[Bug]: ssh terminal state lost after >5min Orca disconnect

1 participant