Based on the forensic audit in /home/tejas/Documents/Luatools complete.txt, this plan addresses the critical gaps.
- File:
src/services/protocol_service.rs - Bug: Line 29 tries to parse "silent" as u32
- Fix: Handle "silent" segment before parsing appid
- File:
src/ui/app.rs(lines 1686-1866),src/steam_bridge/preload_loader.rs - Bug: "Restart Steam" launches
luatools-steam-launcher(64-bit LD_PRELOAD) instead ofsteam-sls(LD_AUDIT) - Fix: Modify restart logic to invoke
steam-slswrapper
- File:
src/services/slssteam_service.rs,src/models/config.rs - Bug:
PlayNotOwnedGames: falseby default disables unlocking - Fix: Default to
true, fix unquoted YAML hex keys
- File:
src/services/fixes_service.rs(lines 62-70) - Bug:
is_safe_fix_idrejects ":" characters, breaking all "online-fix:" fixes - Fix: Allow colons in fix IDs
- File:
src/services/donate_keys.rs(line 100) - Bug: Sends JSON instead of
text/plainformat "depotId:hexKey,..." - Fix: Change Content-Type and payload format
- Need: Add
tray-iconcrate, implement minimize-to-tray, context menu - Files: New
src/services/tray_service.rs, modifysrc/main.rs,src/ui/app.rs
- File:
src/services/steam_service.rs - Need: Parse
~/.local/share/Steam/config/config.vdffor "Language" key
- File: New
src/services/depot_cache_migration.rs - Need: Move manifests from
config/depotcachetodepotcache
- File:
src/services/api_client.rs - Need: Implement
fetch_manifest(depot_id, gid)callinghttps://lua.tools/api/givemethemanifestpunk/{depot}/{gid}
- File: New
src/parsers/manifest_binary.rs - Need: Parse magic headers (0x71F617D0, 0x1F4812BE, 0x32C415AB), unwrap ZIP, decode protobuf, validate AES keys
- File: New
src/services/launch_mod_store.rs - Need: Track launchmods.json, detect Steam PICS overwrites, show re-apply toast
- File:
src/ui/dialogs.rs(LaunchOptionsModal) - Need: Auto-stop Steam before saving, restart after
- File: New
src/services/applied_fix_index.rs - Need: Central registry of applied fixes across libraries
- File: New
src/services/download_queue.rs - Need: Centralized worker, concurrency, ETA, cancellation, 100-item ring history
- File:
src/ui/lua_editor.rs,src/ui/views_workbench.rs - Need: Enable
disabled_entriesfield in UI with checkboxes
- File: New
src/ui/diff_modal.rs, integrate inlua_installer.rs - Need: Show unified diff before overwriting .lua files
- File:
src/services/auth_service.rs,src/services/settings_service.rs - Need: Replace plaintext JSON with encrypted storage (libsecret/keyring or age)
- File:
src/services/slssteam_service.rs(line 245) - Fix: Serialize depot keys as quoted strings
- File:
src/services/hot_reload_service.rs,src/services/lua_installer.rs - Fix: Re-sync config.yaml on .lua changes, handle removals
- File:
src/services/manifest_binding_service.rs,src/steam_bridge/manifest_hooks.rs - Fix: Actually read MANIFEST_PINS in bridge, implement hook
- File:
src/services/external_tools.rs(lines 403-428) - Fix: Wait for process, move
.unpacked.exeover original
- File:
src/services/external_tools.rs(lines 255-286) - Fix: Download
emu-win-release.7zfor Proton games
- File:
src/services/play_unowned_service.rs - Fix: Either remove or make it actually call SLSsteam config update
- File: New
src/services/steam_autostart.rs - Need: systemd user service or Steam wrapper script to launch LuaTools on Steam start
src/services/plugin_installer_service.rs(345 LOC) - Remove or wire to LTSPsrc/services/plugin_add_service.rs(265 LOC) - Removesrc/services/plugin_log.rs(196 LOC) - Removesrc/services/doh_resolver.rs(264 LOC) - Remove or wire to ureqsrc/services/analytics_service.rs(123 LOC) - Removesrc/services/mode_migration.rs(189 LOC) - Wire or removesrc/services/steamless_service.rs(355 LOC) - Remove or implementsrc/services/asset_hash.rs(214 LOC) - Wire to downloaderssrc/services/file_hash.rs(183 LOC) - Wire to downloaderssrc/services/github_proxy.rs(297 LOC) - Remove or wiresrc/services/proxied_file_downloader.rs(192 LOC) - Removesrc/steam_bridge/manifest_hooks.rs(357 LOC) - Implement or removesrc/steam_bridge/denuvo_auth.rs(442 LOC) - Removesrc/steam_bridge/token_bridge.rs(247 LOC) - Removesrc/steam_bridge/cloud_redirect.rs(395 LOC) - Removesrc/steam_bridge/interop/*.rs(2,714 LOC) - Remove (32-bit only)src/steam_bridge/netpacket/*.rs(1,766 LOC) - Remove (32-bit only)src/steam_bridge/credentials/*.rs(1,054 LOC) - Removesrc/steam_bridge/ost_platform/*.rs(6,625 LOC) - Remove
- Week 1: Priority 1 (5 critical runtime fixes)
- Week 2: Priority 2 items 6-10 (System tray, language detection, depotcache migration, manifest fetch, binary manifest codec)
- Week 3: Priority 2 items 11-17 (LaunchModStore, process coordination, applied fix index, download queue, DLC checkboxes, diff modal, credential encryption)
- Week 4: Priority 3 (Linux-specific fixes)
- Week 5: Priority 4 (Dead code cleanup)
| Task | Status | Notes |
|---|---|---|
| LT-13 Silent install fix | ✅ | Already works - handles "silent" segment in protocol_service.rs |
| LT-18/LNX-04 Steam restart fix | ✅ | Implemented in steam_service.rs relaunch_steam_sls() |
| LNX-01 SLSsteam defaults | ✅ | play_not_owned defaults to true in config.rs |
| LT-74/LT-75 Fix ID colons | ✅ | is_safe_fix_id() allows colons in fixes_service.rs |
| LT-45 DonateKeys wire format | ✅ | Uses text/plain "depotId:hexKey,..." format in donate_keys.rs |
| LT-07 System tray | ⬜ | |
| LT-16 Steam language detection | ✅ | detect_steam_ui_language_code() in steam_service.rs |
| LT-34 DepotCache migration | ✅ | Implemented depot_cache_migration.rs |
| LT-44 Raw manifest fetch | ✅ | fetch_raw_manifest() in api_client.rs (line 191) |
| LT-60/61/62 Binary manifest codec | ✅ | manifest_binary.rs - magic headers, ZIP unwrap, protobuf, AES key validation |
| LT-58/59 LaunchModStore/Drift | ✅ | Implemented launch_mod_store.rs |
| LT-57 Steam process coordination | ✅ | Implemented in dialogs.rs |
| LT-76 AppliedFixIndex | ✅ | Implemented applied_fix_index.rs |
| LT-38 Download queue | ✅ | Implemented download_queue.rs, tests pass |
| LT-31 DLC checkboxes | ✅ | Implemented in views_workbench.rs with Checkbox for each disabled_entry |
| LT-32 Diff modal | ✅ | OverwriteDiffModal in app.rs/dialogs.rs shows unified diff before overwrite |
| LT-40 Credential encryption | ✅ | Implemented credential_encryption.rs with age (x25519/AES-GCM) |
| LNX-01 YAML fixes | ✅ | DepotKeys already serialized as quoted strings in slssteam_service.rs |
| LT-35/LNX-02 Hot reload sync | ⬜ | |
| LNX-09 ManifestBinding fix | ⬜ | |
| LNX-06 StubRemover swap | ✅ | launch_stub_remover() in external_tools.rs waits, backs up, replaces |
| LNX-08 Goldberg Windows DLLs | ✅ | Downloads emu-win-release.7z, extracts to goldberg_root for Proton |
| LNX-03 PlayUnowned fix | ✅ | play_unowned_service.rs syncs with SLSsteam config |
| LT-20 Steam autostart | ⬜ | |
| Dead code cleanup | ⬜ |