Skip to content

Guard Claudian command checks during startup#609

Merged
YishenTu merged 2 commits intomainfrom
bugfix/gh-604-plugin-routing
May 5, 2026
Merged

Guard Claudian command checks during startup#609
YishenTu merged 2 commits intomainfrom
bugfix/gh-604-plugin-routing

Conversation

@YishenTu
Copy link
Copy Markdown
Owner

@YishenTu YishenTu commented May 5, 2026

Summary

  • Adds a guarded Claudian view resolver before tab command callbacks access getTabManager().
  • Keeps tab commands unavailable while Obsidian has restored a Claudian leaf whose view has not initialized yet, instead of throwing during command palette enumeration.
  • Adds integration coverage for new-tab, new-session, and close-current-tab in that startup state.

Fixes #604

Tests

  • npm run test -- tests/integration/main.test.ts --runInBand
  • npm run typecheck

@YishenTu YishenTu merged commit 575f63d into main May 5, 2026
3 checks passed
@YishenTu YishenTu deleted the bugfix/gh-604-plugin-routing branch May 5, 2026 04:51
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.

[BUG]: Conflict with Another quick switcher plugin

1 participant