Skip to content

fix(runtime): preserve the workbench across reconnects#892

Closed
luoye520ww wants to merge 1 commit into
KunAgent:developfrom
luoye520ww:codex/fix-885-runtime-reconnect-ui
Closed

fix(runtime): preserve the workbench across reconnects#892
luoye520ww wants to merge 1 commit into
KunAgent:developfrom
luoye520ww:codex/fix-885-runtime-reconnect-ui

Conversation

@luoye520ww

Copy link
Copy Markdown
Collaborator

Summary

  • surface an explicit degraded state while health checks are failing without treating it as a crash loop
  • keep the workbench, thread history, and composer draft mounted through restarting/offline/failed runtime states
  • add a reconnect action for terminal runtime connection states
  • coalesce concurrent active-turn recovery requests so a reconnect cannot replay the same turn twice
  • only consume composer text and attachments after the runtime accepts the turn

Validation

  • npm.cmd exec -- vitest run src/main/kun-runtime-supervisor.test.ts src/renderer/src/components/RuntimeStatusBanner.test.ts src/renderer/src/lib/runtime-banner-visibility.test.ts src/renderer/src/store/chat-store-thread-actions.test.ts src/renderer/src/components/workbench/useWorkbenchComposerSubmitController.test.ts
  • npm.cmd run lint -- --no-warn-ignored
  • npm.cmd run typecheck
  • npm.cmd run build

The Kun package typecheck was also attempted; this checkout's borrowed dependency tree is missing existing packages (@xmldom/xmldom, yazl, etc.), while the targeted Kun tests pass.

@luoye520ww
luoye520ww force-pushed the codex/fix-885-runtime-reconnect-ui branch from 58cb336 to 8c5618b Compare July 13, 2026 13:45
@luoye520ww

Copy link
Copy Markdown
Collaborator Author

Superseded by consolidated runtime recovery PR #947, which passed Typecheck, Linux, macOS, and Windows packaged checks. Closing this duplicate to keep the review surface focused.

@luoye520ww luoye520ww closed this Jul 14, 2026
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