Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

improvement: add session reconnection warning dialog for AI refinement#410

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
improvement/session-status-indicatorbreaking-brake/cc-wf-studio:improvement/session-status-indicatorCopy head branch name to clipboard
Jan 9, 2026
Merged

improvement: add session reconnection warning dialog for AI refinement#410
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
improvement/session-status-indicatorbreaking-brake/cc-wf-studio:improvement/session-status-indicatorCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

When users load a workflow shared by others or when the Claude Code CLI session expires, the AI editing session cannot be continued. However, users were not informed about this situation, leading to confusion about why AI might not remember previous context.

Current Behavior

  1. User loads a shared workflow or session expires
  2. ❌ AI silently starts a new session without notification
  3. ❌ User doesn't understand why AI lost context

Expected Behavior

  1. User loads a shared workflow or session expires
  2. ✅ Warning dialog explains the situation clearly
  3. ✅ User understands AI can only reference conversation history

Solution

Add session reconnection detection and warning dialog to inform users when a new conversation session is started.

Changes

Session Reconnection Detection

  • Added error pattern matching in refinement-service.ts for:
    • 'no conversation found with session id'
    • 'not a valid uuid'

Warning Dialog (AlertDialog Component)

  • New AlertDialog.tsx component for simple OK-only dialogs
  • Shows warning when session status changes to 'reconnected'
  • Clear explanation of what happened and what context may be lost

i18n Support

  • Added translations for 5 languages (en, ja, ko, zh-CN, zh-TW)
  • Warning dialog title: "AI Editing Session Reconnected"
  • Message explains reasons (shared workflow, session expiration) and impact

Removed SessionStatusBadge UI

  • Replaced persistent badge with one-time warning dialog
  • Cleaner UX - users only see notification when relevant

Impact

  • Improved UX for session reconnection scenarios
  • No breaking changes
  • Users are now informed when AI context may be lost

Testing

  • Manual E2E testing completed
  • Build verification passed
  • Code quality checks passed (format, lint, check)

- Add session reconnection detection with error pattern matching
- Add warning dialog when session is reconnected (AlertDialog component)
- Remove SessionStatusBadge UI (replaced by warning dialog)
- Add i18n translations for 5 languages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit c19aa3c into main Jan 9, 2026
3 checks passed
@breaking-brake breaking-brake deleted the improvement/session-status-indicator branch January 9, 2026 17:43
@breaking-brake breaking-brake mentioned this pull request Jan 9, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Jan 9, 2026
## [3.13.1](v3.13.0...v3.13.1) (2026-01-09)

### Improvements

* add session reconnection warning dialog for AI refinement ([#410](#410)) ([c19aa3c](c19aa3c))
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.13.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.