verstak/AGENTS.md

1.3 KiB

Session summary

Bugs fixed (this session)

  1. webkit2_41 build tag — binary wouldn't start without it. Added to build instructions.
  2. Sidebar refreshreloadTreePreservingExpanded 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 typesOpenFolder in backend falls back to file record path for TypeFile nodes.
  5. Context menu not closing on actionhandleShowInFolder calls closeMenu().
  6. Wrong folder when opening file's parent folderOpenFolder 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)

# 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

go build -ldflags="-s -w" -o build/verstak-server-linux-amd64 ./cmd/verstak-server/