Skip to content

Commit 05095ca

Browse files
committed
docs: update launch sequence timing and add remove-worktree scoping gotcha
1 parent 98c106a commit 05095ca

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CLAUDE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ curl -sS "https://api.trello.com/1/cards/CARD_ID/customFieldItems?key=$KEY&token
6969
2. Re-add worktrees with tier: `POST /api/workspaces/add-mixed-worktree` (include `startTier`)
7070
3. Start agent: send launch command + `\r`
7171
4. Wait 3 seconds
72-
5. Send FULL prompt (title + ENTIRE description + workflow)
73-
6. Send `\r` to submit
72+
5. **Accept the `--dangerously-skip-permissions` prompt**: Claude now shows a confirmation prompt on launch — send `1` + `\r` to accept it, then wait 2 seconds for Claude to fully initialize
73+
6. Send FULL prompt (title + ENTIRE description + workflow)
74+
7. Send `\r` to submit
7475
7. Move Trello card to Doing list
7576

7677
**Add worktree with tier:**
@@ -169,6 +170,7 @@ curl -sS -X POST "http://localhost:$PORT/api/commander/send-to-session" \
169170
- Two-request pattern: text first, then `\r` separately
170171
- 3s sleep for Codex init (it initializes in ~2-3s, not 15)
171172
- Use `\u0015` (Ctrl+U) before Codex command to clear line
173+
- **Claude `--dangerously-skip-permissions` acceptance**: After launching Claude, send `1` + `\r` to accept the confirmation prompt, then wait 2s before sending the task prompt
172174

173175
## Codex CLI Reference
174176

@@ -703,6 +705,7 @@ SERVICES: Modular service architecture with clear interfaces
703705
15. **XTerm rendering race**: Wrap fitTerminal() in requestAnimationFrame() to allow renderer initialization
704706
16. **Repository name extraction**: For mixed-repo workspaces, use workspace config's terminal.repository.name, not session ID parsing
705707
17. **ALWAYS check active workspace first**: Before adding worktrees or launching agents, call `GET /api/workspaces/active` to find which workspace the user currently has open. Add worktrees to THAT workspace — never guess or pick a workspace by name
708+
18. **`remove-worktree` nukes ALL repos with matching worktreeId**: `POST /api/workspaces/remove-worktree` with just `worktreeId: "work1"` removes EVERY repo's work1 in the workspace. **ALWAYS scope with `repositoryName`** to remove only the intended repo's worktree
706709
707710
## Development Setup - Two Isolated Instances
708711

0 commit comments

Comments
 (0)