- Remove %->%% escaping in shellEscapeWindowsSetValue: the doubling only
works in batch files, not interactive cmd.exe sessions that terminal.write
targets. Single % is correct for interactive mode.
- Extract shared persistProjectScripts helper in ChatView.tsx to eliminate
~40 lines of duplicated server persistence, keybinding upsert, query cache
update, and rollback logic between saveProjectScript and updateProjectScript.
- Move normalizeProjectScripts (dedup by ID + enforce single runOnWorktreeCreate)
into @t3tools/contracts so both store.ts and projectRegistry.ts share a
single implementation instead of maintaining separate copies.