Skip to content

Recover startup session lease retries / 恢复启动会话锁重试#6134

Merged
SivanCola merged 1 commit into
esengine:main-v2from
SivanCola:fix/retry-startup-lease-recovery
Jul 7, 2026
Merged

Recover startup session lease retries / 恢复启动会话锁重试#6134
SivanCola merged 1 commit into
esengine:main-v2from
SivanCola:fix/retry-startup-lease-recovery

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Retry desktop tab startup when a saved session lease is still held by another Reasonix process and later becomes available.
  • Reuse the deferred rebuild loop for startup lease recovery and kick it when the app window is shown again.
  • Retry synchronously before tab actions so send and terminal paths can recover instead of leaving a stale startup error banner.

Tests

  • cd desktop && go test -run 'TestBuildTabControllerBlocksWhenSessionLeaseHeld|TestDeferredStartupRetryBuildsAfterLeaseRelease|TestTabAndCtrlByIDRecoversStartupLeaseBeforeAction|TestDeferredRebuildRetryAppliesAfterLeaseRelease|TestDeferredRebuildWaitsForTabToBecomeActive|TestConfigChangeLeaseHeldPersistsAndDefersRefresh|LeaseHeld|RecoveryFailed' .\n- cd desktop && go test -short .\n- go test ./internal/agent\n- git diff --check\n- cd desktop && wails build

@SivanCola SivanCola requested a review from esengine as a code owner July 7, 2026 03:01
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jul 7, 2026
@SivanCola SivanCola merged commit 96f8504 into esengine:main-v2 Jul 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant