Obsidian 1.6.0: Files Explorer doesn’t seem to remember its previous state after re-launching

Hi there :blush: !

So, it seems that this previously reported and solved bug re-appeared with Obsidian 1.6.0 for some unknown reasons :innocent: :


Steps to reproduce

  1. Create a brand new vault (leave all the settings as they are by default)

  2. Create one or more folders in the vault and underneath these, add one or more notes.

  3. Leave one of these new folder(s) (or all) in an expanded/unfolded state

  4. Quit and re-launch Obsidian

    → Once relaunched the previously expanded/unfolded folder(s) in the File Explorer/Tree is now collapsed/folded :woman_shrugging:


Did you follow the troubleshooting guide? [Y/N]

Yes :blush: !


Expected result

I wish the Files Explorer/Tree would remember in which state I left my folders (expanded/unfolded or collapsed/folded) before re-launching Obsidian, if possible :smile:


Actual result

This is what the Files Explorer/Tree looks like in the brand new vault I created before quitting Obsidian:
(As shown, I’ve unfolded/expanded all the folders)

And this is what I get once I re-launch Obsidian…
(All my previously expanded/unfolded folders are collapsed/folded…)


Environment

Mac OS Big Sur 11.7.10

SYSTEM INFO:
	Obsidian version: v1.6.0
	Installer version: v1.5.12
	Operating system: Darwin Kernel Version 20.6.0: Thu Jul  6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
	Login status: logged in
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none


Additional information

Other than saying that all my vaults are stored on and sync through iCloud (including the brand new one I’ve used to test this :blush: ) and the fact that it seems like the very same bug I’ve reported with one the Catalyst release of Obsidian 1.5+, I don’t see anything I could add :blush: .

thanks

1 Like

This should be fixed in 1.6.1

2 Likes

Awesome :raised_hands: ! Thank you :grin: !

I think it might have been forgotten :sweat_smile: … I can still repro the issue with 1.6.1 :innocent:

(I know it’s not a very important bug though :blush: … Just slightly annoying :smile: )

I can’t reproce anymore.

Well, I’m not sure I’m able to repro either now :sweat_smile: … Sorry :blush: !

I could have been encountered a glitch earlier, on my side :innocent:.

I can reproduce it on mobile (iPad). I didn’t test the desktop version.

On my side to reproduce it, I have to enable some plugins in order to overcome a threshold of 400ms of plugin loading time (as reported by Obsidian enabling the debug option).

If my plugins load believe this threshold no issue, if I enable a lot of plugin at each restart the file explorer lost its state and all folder are collapsed.

I didn’t encounter that on mobile (iPad) :thinking: … even in vaults opening with a loading time above 400ms.

But I can still repro on Desktop (Obsidian 1.6.1) though :woman_shrugging: … (I was wrong before, it’s still happening for me :no_mouth:, sorry :grimacing: )

The issue doesn’t occur if I delete the workspace.json from the hidden .obsidian folder in iCloud and then re-launch Obsidian… But if I re-launch Obsidian once more, the issue reappears :pensive:.

(Maybe I also should have added that I open multiple vaults at the same time when I launch Obsidian)

can you post a screen recording of this happening in the sandbox vault or a new local vault?

Here’s a screen-recording of the Sandbox :blush:

I don’t do anything other than unfolding/expanding some folders and then quit and relaunch Obsidian.

Folder state - Obsidian 1.6.1

where is the vault stored? what’s your obsidian version exactly?

This is very strange.

Can you turn restricted mode on in all your vaults. Close obsidian an try again?

All my vaults are generally stored in iCloud (in the dedicated Obsidian folder), which I know could be the cause (or at least, part of the problem :innocent: ) but I’m 99% sure that didn’t encounter that with Obsidian 1.5.12… it all started with 1.6.0 :woman_shrugging:

I’ve just created 4 brand new vaults (didn’t touch the settings so restricted mode is On), locally this time, following these paths:

/Users/myNameHere/Documents/Testing Folder 6  
/Users/myNameHere/Downloads/Testing Folder 5
/Users/myNameHere/Testing Folder 4
/Users/myNameHere/Desktop/Testing Folder 3

… and they all open with the folders folded/collapsed, regardless of how I left them before re-launching Obsidian (like in the screen-recording I shared previously).
(I re-launched Obsidian with only these locally stored vaults opened… Not the vaults stored on iCloud I usually open)

Here’s the debug info of one of the locally stored vault, just in case :blush: :

SYSTEM INFO:
	Obsidian version: v1.6.1
	Installer version: v1.5.12
	Operating system: Darwin Kernel Version 20.6.0: Thu Jul  6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
	Login status: logged in
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

I’ll find some time tomorrow to try and revert back to Obsidian 1.5.12 just to see if I can still repro this or not under that version and then re-update to 1.6.1.

It is not the same but I tried to switch back to 1.5.12 after updating to 1.6.1 and the issue is solved (on iPhone/iPad).

My vaults are locally stored (no iCloud) synced/backed up using GIT.

As I said removing all plugin works but re-enabling some of them, slowing down the startup, re-enable it (on 1.6.1) while, with the same configuration, everything works on 1.5.12.

I don’t believe that this is a timing issue. I think that there is sometime specific in your systems that causes this.

I can’t reproduce it. Another person in the team can’t reproduce it.

@Azmonial can you use divide et impera plugin and see which combination of plugin this happens?

Anyway, we believe you. we’ll look more into this.

I have 52 plugin installed and about 30 actives so it is a time consuming activity.
Anyway, I re-try and I’ll report some of the combinations that create thee issue.

For instance, the first time I inactivated plugins in alphabetical order and the one that reenabled the right folder management in File Explorer was Dataview but, since it doesn’t make any sense to me, I tried to leave Dataview active deactivating something else, like Excalidraw, and everything works again.

I’ll check tomorrow.

P.S. Could help you if I provide my plugin configuration?

For instance this configuration reproduce the issue in a deterministic way on my iPhone.

Custom File Extensions Plugin seems to be on elf the candidate in stimulating the issue.

Anyway, I will try to find a restrict set of plugin that reproduce it.

SYSTEM INFO:
Operating system: ios 17.5.1 (Apple iPhone16,2)
Obsidian version: 1.6.1 (137)
API version: v1.6.1
Login status: logged in
Catalyst license: insider
Live preview: on
Base theme: adapt to system
Community theme: Things v2.1.20
Snippets enabled: 3
Restricted mode: off
Plugins installed: 52
Plugins enabled: 22
1: Style Settings v1.0.8
2: Novel word count v3.9.0
3: Easy Typing v5.3.3
4: File Color v1.1.0
5: Smart Typography v1.0.18
6: File Diff v1.1.1
7: Tag Wrangler v0.6.1
8: Dataview v0.5.66
9: Global Search and Replace v0.3.0
10: Version History Diff v2.2.1
11: Typewriter Scroll v0.2.2
12: Footnote Shortcut v0.1.3
13: Timelines (Revamped) v2.1.9
14: Extract url content v0.12.1
15: Wikipedia Search v2.4.4
16: Git v2.24.2
17: Custom File Explorer sorting v2.1.9
18: DataLoom v8.16.0
19: DB Folder v3.5.1
20: Projects v1.17.3
21: Custom File Extensions Plugin v1.2.1
22: Broken Links v1.2.2

Another round of sets of plugin, this time with Excalidraw enabled.

Set 1:

   1: Style Settings v1.0.8
   2: Novel word count v3.9.0
   3: File Color v1.1.0
   4: Tag Wrangler v0.6.1
   5: Custom File Explorer sorting v2.1.9
   6: Footnote Shortcut v0.1.3
   7: Excalidraw v2.2.3
   8: Dataview v0.5.66

Set 2:

   1: Style Settings v1.0.8
  2: Novel word count v3.9.0
  3: File Color v1.1.0
  4: Tag Wrangler v0.6.1
  5: Footnote Shortcut v0.1.3
  6: Excalidraw v2.2.3
  7: Dataview v0.5.66
  8: DB Folder v3.5.1

Set 3:

   1: Style Settings v1.0.8
  2: Novel word count v3.9.0
  3: Tag Wrangler v0.6.1
  4: Excalidraw v2.2.3
  5: Dataview v0.5.66
  6: DB Folder v3.5.1
  7: Easy Typing v5.3.3
  8: Folder notes v1.7.22

Set 4:

   1: Style Settings v1.0.8
  2: Tag Wrangler v0.6.1
  3: Excalidraw v2.2.3
  4: DB Folder v3.5.1
  5: Easy Typing v5.3.3
  6: Folder notes v1.7.22
  7: Dataview v0.5.66
  8: DataLoom v8.16.0

ok, we think we have an idea what is causing this.
Let me know if you still have this problem when you get 1.6.2.

1 Like

Ok. :+1:

I’ll check as soon as 1.6.2 is available.