Skip to content

fix(mcp): recover orphaned sessions and preserve multimodal results - #124

Draft
xiyuren5-beep wants to merge 14 commits into
0xsline:mainfrom
xiyuren5-beep:codex/openchatcut-session-recovery
Draft

fix(mcp): recover orphaned sessions and preserve multimodal results#124
xiyuren5-beep wants to merge 14 commits into
0xsline:mainfrom
xiyuren5-beep:codex/openchatcut-session-recovery

Conversation

@xiyuren5-beep

@xiyuren5-beep xiyuren5-beep commented Aug 29, 2026

Copy link
Copy Markdown

Summary

  • add project-level list_edit_sessions and recover_edit_session tools
  • preserve disconnected drafts as recoverable orphans instead of silently discarding them
  • keep strict revision checks and prevent active-owner takeover
  • return structured active-session conflicts without leaking private session IDs
  • expose explicit real-tool confirmation IDs and pending status in the UI
  • preserve MCP ImageContent before artifact sanitization

Safety

  • resume is allowed only when the orphan checkpoint matches the current project revision
  • revision-mismatched drafts can only be discarded
  • competing live transports cannot claim another owner's session
  • parameter-bound one-shot confirmations remain unchanged

Verification

  • TypeScript project build
  • Vite production build
  • Electron main-process build
  • external edit-session runtime verification
  • external draft persistence and reload verification
  • MCP structured image-content verification
  • broker binding and cancellation verification

@xiyuren5-beep
xiyuren5-beep marked this pull request as draft August 29, 2026 08:45
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