Skip to content

Fix the sidebar's new-space machine, the stale send box, and WSL helper builds - #34

Merged
munza merged 2 commits into
mainfrom
fix-open-issues
Nov 19, 2026
Merged

munza merged 2 commits into
mainfrom
fix-open-issues

Conversation

@munza

@munza munza commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes three open issues. #25 and #30 were already fixed by #32, so they aren't in this PR.

#29 Better Sidebar: This computer's + made the space on the focused space's machine. space.new with no machine means "the focused space's machine" for clicks.

-run("space.new", m ? { machine: m } : {})
+run("space.new", { machine: m ?? "" })   // "" is this computer

#31 Better Files: the send-to-agent box outlived its agent. The question lives in shared(), which survives restarts.

 syncCompose
+  if the open box's agent is gone (and it isn't a new agent)
+    close it, clear shared, say "That agent is no longer running."
   if a new question is waiting
+    if its agent is gone: clear it, don't open
     open the box
 closeComposer / successful send
+  clear shared("better-files.compose")

#24 Branch PR, Branch Issue: installers built a Linux helper from WSL.

go -C helper run ./install --goos windows --app-home /mnt/c/Users/me/.config/herdr-app
# → GOOS=windows GOARCH=<host> go build -o herdr-pr.exe
# herdr-app check is skipped (it can't run here) and the installer says to run it on Windows

Both installers take --goos and --goarch, which default to the host. The READMEs now explain this.

Evidence

  • Before: the new tests fail on main:

    • sidebar: machineAddButton(null).click → {}, expected { machine: "" }
    • files: agent removed → the box is still open, and shared still holds the question
    • installer: install(app, false, target{"windows","amd64"}) doesn't compile (no target)

    After: better-files 111/111, better-sidebar 53/53, better-config 18/18, site 13/13, go test ./... passes in both helpers, and herdr-app check passes for the changed mods. A real GOOS=windows GOARCH=amd64 build of the helper gives PE32+ executable (console) x86-64, for MS Windows.

#31 was also checked in the running app on macOS. With the box open for a Claude Code tab, closing that tab closed the box, showed "That agent is no longer running." and cleared better-files.compose from shared.json. A saved request for the stopped agent, as at startup, opened no box. Not tested on Windows or with a second machine attached.

Merge Danger

Door: two-way

Blast Radius: small

A send box opened for an agent that has since stopped now closes by itself, which could drop a half-typed prompt. Boxes for new agents are never closed this way. The installers act the same as before when no flags are given.

🤖 Generated with Claude Code

munza and others added 2 commits November 19, 2026 01:59
…er builds

- Better Sidebar: This computer's + and New space there pass machine "" so the
  space is made here, not on the focused space's machine (#29).
- Better Files: the send-to-agent box forgets its question when closed or sent,
  closes when its agent stops, and isn't brought back after a restart (#31).
- Branch PR, Branch Issue: the installers take --goos and --goarch, so running
  them from WSL can build a Windows helper (herdr-pr.exe, herdr-linear.exe) (#24).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant