Repository navigation
project-runner: run in the Herdr app as well as the TUI - #8
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
The Herdr app starts a new tab's program inside the login shell but runs a split's argv bare, so the CLI also gives split_argv: the app's own wrapper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
…s keys on the newest list - the list draws only the rows that fit and scrolls to follow the selection - a launch pressed while a newer query is on its way runs on that answer - the query input takes focus again after the overlay opens and after a click Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The project-runner script picker now works in the Herdr desktop app as well as the TUI. It follows the same pattern as git-glance (#7): the Rust binary does the work and prints JSON, and an app mod draws the result.
What changed
project-runner scripts --cwd <dir> [--query <q>]prints the project (folder, name, package manager) and the scripts, ranked by the TUI's own matcher. Each script includes highlight runs already split into whole letters, plus the command to launch it. Exit codes are 0 for ok, 1 when there's no usablepackage.json, and 2 for bad arguments.project-runner uiis unchanged.plugins/project-runner/gui/project-runner/): a centred popup with the TUI's keys (enternew tab,ctrl-v/ctrl-xsplits,ctrl-p/ctrl-n,ctrl-u,esc/ctrl-c). Clicking selects a script and double-clicking runs it. The list scrolls to keep the selection visible, and launching waits for the newest results.split_argv, the same shell wrapper the app uses for tabs, and a re-test showed the split stays open."cmd-r": "mod.open:project-runner").docs/superpowers/specs/2026-11-02-project-runner-gui-design.md. Plan:docs/superpowers/plans/2026-11-02-project-runner-gui.md.Testing
just cipasses: 40 Rust tests for project-runner (including an end-to-end test of the exit codes), 12 Node tests, fmt and clippy.just gui-checkpasses for all three app mods.Known gaps
$SHELLpath contains a space.🤖 Generated with Claude Code
https://claude.ai/code/session_017SHDkxeudXCfQdJrUungWE