Skip to content

fix: wire document editor so RTE appears when assistant opens it#4502

Merged
marinatrajk merged 1 commit into
mainfrom
marinatrajkovska/fix-rte-document-editor-wiring
Feb 18, 2026
Merged

fix: wire document editor so RTE appears when assistant opens it#4502
marinatrajk merged 1 commit into
mainfrom
marinatrajkovska/fix-rte-document-editor-wiring

Conversation

@marinatrajk

@marinatrajk marinatrajk commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Assign onDocumentEditorShow, onDocumentEditorUpdate, onDocumentSaveResponse daemon callbacks in AppDelegate.setupDaemonClient() — previously these were defined but never wired, so messages were silently dropped
  • Add DocumentManager to MainWindow and handler methods that call createDocument/updateDocument/handleSaveResponse and toggle the new .documentEditor panel
  • Add .documentEditor case to SidePanelType and render DocumentEditorPanelView as a VSplitView side panel in MainWindowView
  • Create DocumentEditorPanelView with a header toolbar (title, save, close) wrapping DocumentEditorView

🤖 Generated with Claude Code


Open with Devin

…eate

Co-Authored-By: Claude <noreply@anthropic.com>
@marinatrajk marinatrajk merged commit cce78f3 into main Feb 18, 2026
@marinatrajk marinatrajk deleted the marinatrajkovska/fix-rte-document-editor-wiring branch February 18, 2026 15:12

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 4 additional findings in Devin Review.

Open in Devin Review

Comment thread clients/macos/vellum-assistant/Features/MainWindow/MainWindow.swift

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e34fa26ffc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread clients/macos/vellum-assistant/Features/MainWindow/MainWindow.swift
marinatrajk added a commit that referenced this pull request Feb 18, 2026
…ment on panel dismiss

Address review feedback on PR #4502:
- Replace togglePanel(.documentEditor) with direct selection assignment to avoid
  accidentally closing the panel when a second document_editor_show message arrives
  while the panel is already open
- Call documentManager.closeDocument() when closing the document editor panel to
  reset stale editorCoordinator state

Co-Authored-By: Claude <noreply@anthropic.com>
marinatrajk added a commit that referenced this pull request Feb 18, 2026
…ment on panel dismiss (#4578)

Address review feedback on PR #4502:
- Replace togglePanel(.documentEditor) with direct selection assignment to avoid
  accidentally closing the panel when a second document_editor_show message arrives
  while the panel is already open
- Call documentManager.closeDocument() when closing the document editor panel to
  reset stale editorCoordinator state

Co-authored-by: Claude <noreply@anthropic.com>
@marinatrajk

Copy link
Copy Markdown
Contributor Author

Addressed in #4578

marinatrajk pushed a commit that referenced this pull request Feb 19, 2026
…ment on panel dismiss

Address review feedback on PR #4502:
- Replace togglePanel(.documentEditor) with direct selection assignment to avoid
  accidentally closing the panel when a second document_editor_show or
  document_load_response message arrives while the panel is already open
- Call documentManager.closeDocument() when closing the document editor panel to
  reset stale editorCoordinator state, ensuring reopened documents load correctly

Co-Authored-By: Claude <noreply@anthropic.com>
marinatrajk added a commit that referenced this pull request Feb 19, 2026
…ment on panel dismiss (#4821)

Address review feedback on PR #4502:
- Replace togglePanel(.documentEditor) with direct selection assignment to avoid
  accidentally closing the panel when a second document_editor_show or
  document_load_response message arrives while the panel is already open
- Call documentManager.closeDocument() when closing the document editor panel to
  reset stale editorCoordinator state, ensuring reopened documents load correctly

Co-authored-by: marinatrajk <marina@odyseek.com>
Co-authored-by: Claude <noreply@anthropic.com>
@marinatrajk

Copy link
Copy Markdown
Contributor Author

Addressed in #4821

marinatrajk added a commit that referenced this pull request Feb 19, 2026
…ment on panel dismiss (#4822)

Address review feedback on PR #4502:
- Replace togglePanel(.documentEditor) with direct selection assignment to avoid
  accidentally closing the panel when a second document_editor_show or
  document_load_response message arrives while the panel is already open
- Call documentManager.closeDocument() when closing the document editor panel to
  reset stale editorCoordinator state, ensuring reopened documents load correctly

Co-authored-by: marinatrajk <marina@odyseek.com>
Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants