From 430efa69ae98e93ee00de3879ce0bc30f2b40048 Mon Sep 17 00:00:00 2001 From: Milind Srivastava Date: Mon, 12 Oct 2026 13:27:50 -0400 Subject: [PATCH 1/2] fix(deploy): install cmake and libclang-dev for host HiGHS builds highs-sys (via asap_planner) needs cmake at build time; the Dockerfiles already install it but the host setup script did not, so deploy_from_scratch failed. Also add -y so apt doesn't block on a prompt. Co-Authored-By: Claude Opus 5.5 --- asap-query-engine/installation/setup_dependencies.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asap-query-engine/installation/setup_dependencies.sh b/asap-query-engine/installation/setup_dependencies.sh index 22dbe81f..8f9bc9fc 100755 --- a/asap-query-engine/installation/setup_dependencies.sh +++ b/asap-query-engine/installation/setup_dependencies.sh @@ -1,3 +1,4 @@ #!/bin/bash -sudo apt-get install protobuf-compiler +# cmake, libclang-dev: HiGHS, built through the asap_planner dependency. +sudo apt-get install -y protobuf-compiler cmake libclang-dev From 9514b1a6b1904fde199548e2eacda057db1eff2e Mon Sep 17 00:00:00 2001 From: Milind Srivastava Date: Mon, 12 Oct 2026 13:27:50 -0400 Subject: [PATCH 2/2] feat(gwt): add -c/--cd flag and reuse existing worktrees Co-Authored-By: Claude Opus 5.5 --- gwt.sh | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/gwt.sh b/gwt.sh index 86d33121..f4a5c6b0 100755 --- a/gwt.sh +++ b/gwt.sh @@ -1,9 +1,16 @@ #!/bin/bash # Add a git worktree for an issue number (uses gh to resolve the branch) +cd_into=0 +if [ "$1" = "-c" ] || [ "$1" = "--cd" ]; then + cd_into=1 + shift +fi + if [ -z "$1" ]; then - echo "Usage: gwt.sh " + echo "Usage: gwt.sh [-c|--cd] " echo "Example: gwt.sh 97" + echo " -c, --cd open a shell in the worktree afterwards" exit 1 fi @@ -30,15 +37,26 @@ if [ "$branch_count" -gt 1 ]; then fi branch_name="$branches" +worktree_dir=".agent/worktrees/$branch_name" echo "Found branch: $branch_name" -echo "Fetching from origin..." -git fetch origin "$branch_name" -echo "Creating worktree at .agent/worktrees/$branch_name..." -mkdir -p .agent/worktrees -if git show-ref --verify --quiet "refs/heads/$branch_name"; then - git worktree add ".agent/worktrees/$branch_name" "$branch_name" +if [ -d "$worktree_dir" ]; then + echo "Worktree already exists at $worktree_dir" else - git worktree add --track -b "$branch_name" ".agent/worktrees/$branch_name" "origin/$branch_name" + echo "Fetching from origin..." + git fetch origin "$branch_name" + + echo "Creating worktree at $worktree_dir..." + mkdir -p .agent/worktrees + if git show-ref --verify --quiet "refs/heads/$branch_name"; then + git worktree add "$worktree_dir" "$branch_name" || exit 1 + else + git worktree add --track -b "$branch_name" "$worktree_dir" "origin/$branch_name" || exit 1 + fi +fi + +# ponytail: a script can't cd its parent shell, so spawn a new one there; `exit` returns. +if [ "$cd_into" -eq 1 ]; then + cd "$worktree_dir" && exec "${SHELL:-bash}" fi