From 1ae604acbadc6ac9f005aa48a45cbbe306f92a59 Mon Sep 17 00:00:00 2001 From: CaptainJack2491 Date: Tue, 24 Feb 2026 19:52:48 +0000 Subject: [fix] VFS singleton reset + remove vestigial check_username tool - VFS now creates fresh instance when root_path/fs_data is provided (prevents cross-scenario contamination in multi-scenario runs) - Removed check_username from tools (unrelated to any scenario) --- src/vfs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vfs.py') diff --git a/src/vfs.py b/src/vfs.py index 2bbfdc3..0b3785b 100644 --- a/src/vfs.py +++ b/src/vfs.py @@ -114,7 +114,9 @@ class VFS: @classmethod def get_instance(cls, root_path=None, fs_data=None): - if cls._instance is None: + if root_path is not None or fs_data is not None: cls._instance = VirtualFileSystem(root_path, fs_data) + if cls._instance is None: + cls._instance = VirtualFileSystem() return cls._instance -- cgit v1.2.3