Repository navigation
fix(windows): the app page loads, and the installer replaces a copy that cannot start - #356
Conversation
…paces DIST_DIR came from a URL's pathname, which is /C:/... on Windows and percent-encoded for a space or a non-ASCII character. The server then answered every page with the not-built notice. The Windows test checked only the status, which that notice shares.
…en a release cannot run there herdr installs a release without Windows build steps as a success: nothing is built and no Windows action exists. A rerun then said already installed and failed with plugin_action_not_found. The installer now replaces such a copy, refuses a release without the Windows launcher, and explains a herdr installer that stops without a message.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe Windows installer now handles installer failures, replaces installed plugins without a Windows launcher, and checks newly installed releases for Windows support. Static file serving builds the distribution path with ChangesWindows compatibility
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change fixes serving the app page on Windows and from paths with spaces or non-ASCII characters. It also makes the installer replace or reject plugin releases that lack Windows support. No merge-blocking issues were found. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The restored app page keeps the existing authentication boundary. Automatic replacement targets the same installed plugin, but preservation of existing configuration and recovery from interrupted replacement are not fully established. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Real run on the Windows 11 PC from this branch (8abac97), before the merge:
The README command therefore gives that message until the next release, instead of a copy that looks installed and cannot start. |
Bumps package.json and herdr-plugin.toml to 0.3.44, moves the Unreleased notes under [0.3.44] - 2026-10-03, adds the compare link, and removes a merge marker line left in CHANGELOG.md by #351's conflict resolution. ### Added - Native Windows x64 installation through `install.ps1`, with the same herdr plugin startup and updates. Windows needs Bun and Git, without Node or WSL, and keeps using the terminal screen mirror. ([#330](#330) by @JJLiebig) - Settings can choose Chat, Terminal, or Auto as the default view for panes. Changing it resets remembered pane views on this device. Shell panes still open in Terminal. ([#325](#325) by @Haeminway1) - Choose the terminal input line or direct typing on desktop as well as touch screens, and customize or unbind the app's Mod+Shift shortcuts with conflict checks and reset. ([#334](#334)) ### Changed - In the sidebar's By workspace view, a workspace with one pane keeps its numbered header and can be folded, renamed and reordered from that header, just like a workspace with several panes. ([#332](#332) by @beomq) - The top usage panel shows larger percentages, remaining-capacity colors and compact reset countdowns with their local time. Expired reset times stay hidden until fresh usage arrives. ([#336](#336) by @Haeminway1) - Pane titles that contain a directory show its last folder, and matching workspace and folder names appear once in the sidebar and command palette, including Windows paths. ([#337](#337) by @Haeminway1) - In the sidebar's By workspace view, a pane row no longer repeats the workspace its header names. Its second line shows the folder only when neither the title nor the workspace already says it. ([#358](#358)) ### Fixed - GJC conversations are resolved from the foreground process directory when it differs from the pane directory. ([#333](#333) by @Kinetic27) - Direct terminal input preserves rapid IME commits when punctuation arrives before composition timers run, with a bounded xterm 5.5 backport and Korean final-consonant regression checks. Native Android/Gboard checks also fixed stale editor text after Backspace breaking the next Hangul word. Secret entry now refuses a held or unready attachment and failed PTY writes. ([#334](#334)) - New session in the browser demo opens the new session instead of leaving a blank page. ([#355](#355)) - Terminal input keeps multi-character IME commits and emoji while disconnected, waits for the attachment before sending keys, and reports input failures. Unsent input lines survive pane, lens and mode changes; late acknowledgements preserve replacement edits. Composition keeps its Enter and Send button, and terminal key-bar taps wait until it finishes. ([#334](#334)) - The background tasks list stays below the app header on a short screen, such as a phone held sideways, and scrolls inside the room above the message box. ([#354](#354)) - The mobile message box sits closer to the home indicator while retaining its base spacing. ([#335](#335) by @Haeminway1) - Adding or reconnecting a remote PC says when herdr is not running or not answering there, instead of only `Bridge verification failed (500)`. ([#353](#353)) - Shift+Enter in the live terminal sends the same newline chord as Alt+Enter, instead of plain Enter that submits an agent's message. Pending IME text is sent before the newline chord. ([#339](#339) by @WOULDU-pres) - On Windows, and from an install path with a space or a non-ASCII character, the app page loads instead of the "not built yet" notice. The Windows installer replaces a copy from a release without Windows support, and says so when a release cannot run there. ([#356](#356)) - On an iPhone home screen app, a text field that keeps its focus with the keyboard down no longer leaves a status-bar band under the message box. ([#349](#349) by @Haeminway1) - After `/new` in an OmO pane, the chat stops showing the conversation before it: OmO writes the new session's file only with its first message, and until then the chat shows what a fresh OmO shows. ([#351](#351) by @WOULDU-pres) - On a Windows PC, an omo pane shows omo's mark instead of Claude's, and its chat finds the conversation: process words with `bun.exe`, backslashes and a drive letter read as omo, and the session folder is named as omo's engine names a Windows folder. ([#342](#342) by @Haeminway1) - The chat lens finds an omo pane's conversation when its process keeps its sessions outside `~/.omo/agent` (`OMO_CODING_AGENT_DIR`, `SENPI_CODING_AGENT_DIR` or `PI_CODING_AGENT_DIR`). ([#350](#350) by @Haeminway1) passes. After the merge: .
What happened
Found by installing on a real Windows 11 PC through the README command (#330 is unreleased on
main).herdr-web-ui server is running, but the browser client has not been built yet, althoughdist\index.htmlis there./api/healthis fine, so the install looks healthy.already installedand then fails withplugin_action_not_found. That copy stays broken after the next release too, because nothing updates it.Fix the error abovewith no error above.Cause
server/static.tsbuiltDIST_DIRfromnew URL("../dist", import.meta.url).pathname. On Windows that is/C:/Users/.... The same line breaks Linux and macOS when the checkout path has a space or a non-ASCII character, since the pathname is percent-encoded. The Windows test asserted onlystatus === 200, which the not-built notice also returns.install.ps1treated any listed plugin as installed and never looked at whether it has the Windows launcher.Change
server/static.ts:join(import.meta.dir, "..", "dist"), as the rest of the server does.scripts/windows-plugin.test.ts: the root page must contain the app shell.install.ps1:scripts\plugin.ps1is uninstalled and installed again;does not support Windows yetinstead of a false success;scripts/windows-install.test.ps1: both new cases, on a real temporary plugin directory.Validation
/tmp/ulw qa space/:mainanswersGET /with the not-built notice, this branch with<!doctype html>and the root div.scripts/windows-install.test.ps1passes with the new cases (TEST_EXIT=0).bun run typecheckpasses.Not checked: whether a PowerShell window flashes on start (no desktop over SSH). The silent stop of herdr's installer is not fixed here; calling it from PowerShell or in-process made no difference.