From 7d2de170bb1cde7bb3e0dab594c652003a81d298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Emre=20Kabakc=C4=B1?= Date: Tue, 19 May 2026 05:11:46 +0100 Subject: [PATCH] chore: task-setup `task-start` doc + bump owletto for per-context runner - `scripts/task-setup.sh` header: document the parameterized `task-start` zsh function (cmd defaults to claude; `task-start foo codex` works too) instead of the old claude-only shape. The function itself lives in the user's ~/.zshrc; this is just the in-tree reference for new operators. - Bump `packages/owletto` to pick up the per-context port + cwd runner fix (owletto#?) so the menubar's Start button actually spawns the right server for `lobu context add ... --port N --cwd --lifecycle managed` entries (i.e. task-setup-registered worktrees). --- packages/owletto | 2 +- scripts/task-setup.sh | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/owletto b/packages/owletto index 2b74ac24c..f611c1dd4 160000 --- a/packages/owletto +++ b/packages/owletto @@ -1 +1 @@ -Subproject commit 2b74ac24ca3a98ac5193cfd0b7f106e6fcded0ce +Subproject commit f611c1dd497daf4464878dd70f62a59795b8b501 diff --git a/scripts/task-setup.sh b/scripts/task-setup.sh index 92e691529..5901369a0 100755 --- a/scripts/task-setup.sh +++ b/scripts/task-setup.sh @@ -25,20 +25,25 @@ # # Optional shell-function sugar — `make task-setup` does the setup, then you # still have to `cd && claude` by hand. If you want one command that -# also moves your shell and launches claude, add this to ~/.zshrc: +# also moves your shell and launches a tool, add this to ~/.zshrc: # # task-start() { -# local name="$1"; local repo="$HOME/Code/lobu" +# local name="$1"; shift +# local repo="$HOME/Code/lobu" # "$repo/scripts/task-setup.sh" "$name" || return $? -# cd "$repo/.claude/worktrees/$name" && exec claude +# cd "$repo/.claude/worktrees/$name" && exec "${@:-claude}" # } # task-resume() { -# local name="$1"; local repo="$HOME/Code/lobu" +# local name="$1"; shift +# local repo="$HOME/Code/lobu" # [[ -d "$repo/.claude/worktrees/$name" ]] \ # || { echo "no such worktree: $name"; return 1; } -# cd "$repo/.claude/worktrees/$name" && exec claude +# cd "$repo/.claude/worktrees/$name" && exec "${@:-claude}" # } # +# Usage: `task-start fix-sse-leak` (defaults to claude), or +# `task-start fix-sse-leak codex` / `task-start fix-sse-leak zsh`. +# # The cd + exec must live in the shell function (not a Makefile target or this # script) so that the parent terminal actually moves and Warp/iTerm detect the # new working directory.