fix: attach to tmux session instead of detaching
This commit is contained in:
@@ -107,25 +107,24 @@ LOOP_CMD=".loop/loop.sh"
|
|||||||
# Add --max N if specified
|
# Add --max N if specified
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Launch in tmux:
|
6. Tell the user what's about to happen:
|
||||||
|
|
||||||
```bash
|
> **Launching loop in tmux...**
|
||||||
tmux new-session -d -s agent-loop -c <project_root> "$LOOP_CMD"
|
|
||||||
```
|
|
||||||
|
|
||||||
7. Report to the user:
|
|
||||||
|
|
||||||
> **Loop launched in tmux session `agent-loop`**
|
|
||||||
> - Stories: {total} to complete
|
> - Stories: {total} to complete
|
||||||
> - Mode: {mode}
|
> - Mode: {mode}
|
||||||
>
|
>
|
||||||
> **Monitor:**
|
> The tmux session will open now. You'll see the loop running live.
|
||||||
> - Watch live: `tmux attach -t agent-loop`
|
> - **Detach** (return to Claude Code): `Ctrl+B` then `D`
|
||||||
> - Check progress: read `.loop/progress.md`
|
> - **Stop the loop**: `Ctrl+C` in the tmux session
|
||||||
> - Check status: read `.loop/prd.json`
|
> - **Reattach later**: `tmux attach -t agent-loop`
|
||||||
> - Stop the loop: `tmux kill-session -t agent-loop`
|
|
||||||
>
|
7. Launch tmux **attached** so the user sees it immediately:
|
||||||
> I can also check on progress for you — just ask "how's it going?"
|
|
||||||
|
```bash
|
||||||
|
tmux new-session -s agent-loop -c <project_root> "$LOOP_CMD"
|
||||||
|
```
|
||||||
|
|
||||||
|
**IMPORTANT:** Do NOT use the `-d` flag. The session must attach so the user can watch it live. The bash command will block until the user detaches (`Ctrl+B D`) or the loop finishes.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user