# Session summary ## Bugs fixed (this session) 1. **webkit2_41 build tag** — binary wouldn't start without it. Added to build instructions. 2. **Sidebar refresh** — `reloadTreePreservingExpanded` patches children in-place so expand/collapse state stays intact. 3. **Context menu off-screen** — changed to `position: fixed` with cursor coordinates. 4. **"Show in explorer" only for folder types** — `OpenFolder` in backend falls back to file record path for `TypeFile` nodes. 5. **Context menu not closing on action** — `handleShowInFolder` calls `closeMenu()`. 6. **Wrong folder when opening file's parent folder** — `OpenFolder` checks `n.FsPath == ""` for TypeFile and uses first file record path. 7. **Tab highlight not updating visually** — was using `class={tabClass(tab.id)}` which didn't trigger reactive class updates in Svelte. Switched to `class="tab" class:active={activeTab === tab.id}`. # Build instructions ## GUI binary (Wails v2) ```bash # From project root: cp -r frontend/dist/* cmd/verstak-gui/frontend-dist/ go build -tags "webkit2_41 desktop production" -ldflags="-s -w" -o build/verstak-gui-linux-amd64 ./cmd/verstak-gui/ ``` ## Server binary ```bash go build -ldflags="-s -w" -o build/verstak-server-linux-amd64 ./cmd/verstak-server/ ```