Fix Obsidian deep links and DeepLore drawer icon#30
Conversation
|
Found a slight bug in this PR when I tested this that should probably be noted. If your Obsidian vault is not the same name as the name in DeepLore, it fails to open the entry. Both the name in Obsidian and DeepLore need to match for the entry to open. |
Could've swore that was a vanilla deep lore bug🤣. Since if you don't name it in the vanilla ext nsion correctly it will not open. My PR tested it WITH that fixes in the settings |
|
Heello @DJLegends1011 :D I did a static pass on this before reproducing live, and the Obsidian-link half of the PR holds up well. Confirmed four spots in One small framing nitpick: I don't think this is actually a regression introduced by v2.0.2. That commit ( Two things I want to clear up before merging though, both about the drawer-icon half:
If you want both fixes in this PR: re-cherry-pick the mount-guard commit and tell me what made you pull it back, so I can spot the same thing in review. If you'd rather keep this PR focused on Obsidian links: update the description to drop the drawer-icon claim, and open the mount-guard as its own PR. Your diagnosis (async Either path is fine, your call. Once that's sorted I'll merge. |
IGHT, keeping the PR focused on Obsidian links is the right call Pixel. The drawer-icon guard was reverted because after testing, the Obsidian direct-link navigation turned out to be the real cause of the UI disappearing in this repro. I didn’t want to ship the MutationObserver mount guard as part of this PR without a separate confirmed drawer-icon-only repro. I’ll first update the PR description to remove the drawer-icon claim and frame this as a long-standing direct obsidian:// anchor issue rather than a v2.0.2 regression. The drawer icon issue can be tracked separately if we can reproduce it independent of Obsidian link navigation. |
85b1e45 to
0cd9b27
Compare
|
commit has been dropped! |
Edit:
Summary
Open in Obsidianno longer navigates the SillyTavern browser tab away from the UI.obsidian://URIs through a hidden iframe instead of direct anchor navigation.Notes
This is scoped to the long-standing direct
obsidian://anchor issue. The earlier drawer-icon guard was intentionally left out after testing showed the Obsidian navigation was the confirmed repro path.Test plan
npm run test:regressionnpm run test:importsnpm run test:all🤖 found the issue by the help of codex, made pr with the help of claude.