You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Managing your knowledge base source is now easier than ever.
280
280
281
281
- **First Run Setup**: On first launch, you will be prompted to selectyour`Knowledge_Base` folder.
282
-
- **Persistent Config**: Your selection is saved in`kb_config.json` and remembered across restarts.
282
+
- **Persistent Config (`app_config.toml`)**: Your KB path, language, and multi-window preferences are saved in`%LOCALAPPDATA%/NoteConnection/app_config.toml` (Windows default) and remembered across restarts.
283
+
- **Legacy Auto-Migration**: If a legacy `kb_config.json` exists in the same config directory, NoteConnection automatically migrates it to `app_config.toml`.
283
284
- **Change Anytime**: Use the **File > Change Knowledge Base...** menu option to switch folders instantly.
284
285
- **Reset**: Use **File > Reset to Default** to return to the bundled demo notes.
286
+
- **Config Path Overrides**: Set `NOTE_CONNECTION_CONFIG_PATH` (full file path) or `NOTE_CONNECTION_CONFIG_DIR` (directory) to customize where `app_config.toml` is stored.
- **Detailed Config Guide**: See [`docs/en/app_config.toml_guide.md`](docs/en/app_config.toml_guide.md) and template [`docs/examples/app_config.template.toml`](docs/examples/app_config.template.toml).
| Menu language switch | Electron dynamic menu rebuild | Tauri menu rebuild in `set_user_language`|**Partially Migrated**|
1254
-
| Persistent KB path + language config |`kb_config.json` in Electron userData | Tauri currently defaults path, no equivalent persistent config file |**Not Fully Migrated**|
1254
+
| Persistent KB path + language config |`kb_config.json` in Electron userData | Tauri persists KB path + language + multi-window settings in `app_config.toml` (auto-migrates legacy `kb_config.json`) |**Migrated (v1.6.0+)**|
1255
1255
| Godot process integration | N/A in Electron mainline release path | Tauri currently spawns Godot via hardcoded absolute path, not robust sidecar usage |**Not Fully Migrated**|
1256
1256
| Sidecar/Godot lifecycle shutdown guarantees | Electron app lifecycle owns process lifetime | Tauri code does not implement explicit shutdown management verification for spawned children |**Partially Migrated**|
1257
1257
| Release-ready path model | Electron used app-local protocol and known layout | Tauri sidecar paths are tuned for repo/dev layout (`dist/src/frontend`, `Knowledge_Base`) |**Partially Migrated**|
@@ -1272,9 +1272,9 @@ Determine whether the Electron -> Tauri migration is currently complete enough t
1272
1272
1273
1273
#### 2) High-Risk Gaps Before Removing Electron
1274
1274
1275
-
-**Persistent user configuration parity is incomplete**:
1275
+
-**Persistent user configuration parity is now complete (updated 2026-03-25)**:
1276
1276
- Electron persisted KB path and language in `kb_config.json`.
1277
-
- Tauri currently returns default KB pathand does not persist selected KB root across restarts in equivalent form.
1277
+
- Tauri now persists KB path, language, and multi-window policy in `app_config.toml`, with startup auto-migration from legacy `kb_config.json`.
1278
1278
-**Godot launch path is environment-coupled**:
1279
1279
-`src-tauri/src/lib.rs` uses hardcoded absolute Windows paths for Godot executable/project.
1280
1280
- This is not portable across machines or release packaging.
@@ -1366,7 +1366,7 @@ Electron -> Tauri migration is **functionally successful in current desktop deve
1366
1366
-**Steps**:
1367
1367
1. Ran `npm start`.
1368
1368
2. Selected a custom folder in the First Run setup.
1369
-
3. Verified `kb_config.json` was created in `AppData`.
1369
+
3. Verified legacy `kb_config.json` was created in `AppData` (superseded by `app_config.toml` in v1.6.0+).
1370
1370
4. Used "File > Reset to Default" and "File > Change Knowledge Base" menus.
1371
1371
-**Result**: Config updates correctly; app reloads and loads the specific folder.
1372
1372
-**Status**: **Pass**
@@ -3728,7 +3728,7 @@ Electron -> Tauri migration is **functionally successful in current desktop deve
|`knowledge_base_path`|`string`| auto default KB root | must be an existing directory | Persisted KB root. Normalized to `Knowledge_Base` root if path points inside it. |
34
+
|`user_language`|`string`|`"en"`|`"en"` or `"zh"` (`"zh-CN"` is not accepted and falls back to `"en"`) | Controls startup language and menu language. |
|`multi_window.hide_tauri_when_pathmode_opens`|`bool`|`true`| boolean | If true, `toggle_pathmode_window(show_godot=true)` hides Tauri main window. |
37
+
|`multi_window.restore_tauri_when_pathmode_exits`|`bool`|`true`| boolean | If true, `toggle_pathmode_window(show_godot=false)` restores and focuses Tauri window. |
38
+
|`multi_window.confirm_before_full_shutdown_from_godot`|`bool`|`true`| boolean | If true, Godot close flow requires confirmation ("return" vs "close all"). |
39
+
|`multi_window.sync_language`|`bool`|`true`| boolean | If true, language updates emit runtime sync event payload to frontend windows. |
0 commit comments