Skip to content

fix: Send select_vault on each WebSocket connection#383

Merged
rjroy merged 1 commit intomainfrom
fix/busted
Jan 21, 2026
Merged

fix: Send select_vault on each WebSocket connection#383
rjroy merged 1 commit intomainfrom
fix/busted

Conversation

@rjroy
Copy link
Copy Markdown
Owner

@rjroy rjroy commented Jan 21, 2026

Summary

  • Fix capture tab being completely broken (VAULT_NOT_FOUND error)
  • Fix meeting mode not updating frontend state after starting
  • Fix MoveDialog and HealthPanel potentially having same issue

Root Cause

Each component calling useWebSocket() creates a separate WebSocket connection with independent server-side state. The previous refactor (#378) moved vault selection logic from NoteCapture to MainContent, assuming it would handle all components. But components with their own WebSocket connections still need to send select_vault on their connection before sending vault-specific messages.

Changes

  • NoteCapture: Restore select_vault on connect, also update session context with meeting state directly (since this connection receives the meeting_started response)
  • MoveDialog: Add select_vault on connect for list_directory calls
  • HealthPanel: Add select_vault on connect for dismiss_health_issue calls

Test plan

  • Capture tab works (note saves without VAULT_NOT_FOUND error)
  • Start Meeting updates UI to show meeting mode
  • Stop Meeting works and transitions to Discussion
  • Move dialog can browse directories
  • Health panel can dismiss issues

🤖 Generated with Claude Code

Components using useWebSocket() each create separate connections with
independent server-side state. The previous refactor (d590f39) moved
vault selection to MainContent, but NoteCapture/MoveDialog/HealthPanel
still have their own connections that need vault context.

- NoteCapture: Add select_vault on connect, update meeting state locally
- MoveDialog: Add select_vault on connect for list_directory calls
- HealthPanel: Add select_vault on connect for dismiss_health_issue calls

Fixes capture and meeting mode being broken after #378.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 81.25000% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
frontend/src/components/NoteCapture.tsx 73.07% 7 Missing ⚠️
frontend/src/components/MoveDialog.tsx 78.94% 4 Missing ⚠️
frontend/src/components/HealthPanel.tsx 94.73% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rjroy rjroy merged commit 69b9e64 into main Jan 21, 2026
2 of 3 checks passed
@rjroy rjroy deleted the fix/busted branch January 21, 2026 16:15
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