Conversation
Use just's native `mod` feature to expose ui/goose2 recipes as `just goose2 <recipe>` from the repo root. This also makes goose2 recipes visible in `just --list --list-submodules`. Signed-off-by: Matt Toohey <contact@matttoohey.com>
Derives the vite port using the same hash-based logic as `just dev`, finds the process listening on that port, and kills it with SIGKILL only if the process is `node` (the expected vite dev server). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract the hash-based port computation into a top-level just variable so dev, dev-debug, and kill all share a single definition. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 569869d006
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| set -euo pipefail | ||
|
|
||
| VITE_PORT={{ vite_port }} | ||
| PID=$(lsof -ti :"$VITE_PORT" 2>/dev/null | head -1) || true |
There was a problem hiding this comment.
Select the listening PID on the Vite port
Using lsof -ti :"$VITE_PORT" | head -1 can pick any process that has a socket associated with that port (including clients connected to Vite), not necessarily the Node listener. In that case PROC_NAME is often not node, so the recipe exits with “refusing to kill” even though the dev server is still running. This is most likely when the app/browser is connected to the dev server. Filter for the listening socket (for example with TCP LISTEN constraints) before choosing a PID.
Useful? React with 👍 / 👎.
just goose2 <command> with the addition of just goose2 kill
Replace inlined pnpm/cargo commands with `just goose2 <recipe>` calls, matching how block/goose2's Lefthook config delegated to just. This also fixes the missing pnpm typecheck (now included via `just goose2 check`) and eliminates drift risk between hooks and justfile recipes. Pre-commit now uses targeted re-staging of only ui/goose2/ files instead of `git add -u` which would re-stage all tracked files. Pre-push replaces six inlined command groups with: - just goose2 fmt-check - just goose2 clippy - just goose2 check - just goose2 test - just goose2 build - just goose2 tauri-check Rebased onto origin/main to pick up the `mod goose2 'ui/goose2'` directive added in #8570. Signed-off-by: Matt Toohey <contact@matttoohey.com>
…l-placeholder * origin/main: (64 commits) fix: expand tool calls by default when Response Style is Detailed (aaif-goose#8478) fix: create logs dir before writing llm request log (aaif-goose#8522) fix: enable token usage tracking and configurable stream timeout for Ollama provider (aaif-goose#8493) fix tauri-plugin-dialog version constraint to match other plugins (aaif-goose#8542) call goose serve from tauri frontend via goose-acp client (aaif-goose#8549) failed the script when bundle:default fails and cleanup "alpha" (aaif-goose#8580) pass globally unique conversation identifier as sessionId in databricks api call (aaif-goose#8576) fix: use sqlx chrono decode for thread timestamps instead of manual parsing (aaif-goose#8575) docs: remove stale gemini-acp references (aaif-goose#8572) show individual untracked files in git changes widget (aaif-goose#8574) fix: update publishing flow to include new sdk dir (aaif-goose#8573) fix: remove double border on content in chat (aaif-goose#8545) chore(goose2): `just goose2 <command>` with the addition of `just goose2 kill` (aaif-goose#8570) Lifei/oltp data (aaif-goose#8458) Sidebar polish: search copy, dividers, project reorder, fix DnD (aaif-goose#8568) remove the workflow_dispatch check (aaif-goose#8563) fix: one more rename (aaif-goose#8562) fix(desktop): accept self-signed certs from configured external goosed host (aaif-goose#8400) alexhancock/npm-bumps (aaif-goose#8557) Remove npm publish from release for now (aaif-goose#8558) ...
Summary
just goose2 <subcommand>workskillrecipe to stop the dev server by finding and killing the node process on the derived port based on branchvite_portvariable reused acrossdev,dev-debug, and the newkillrecipe