Skip to content

Commit 7b9d87d

Browse files
peyton-altclaude
andcommitted
fix: add debug logging + remove unrelated files
- Add debug logging to hasActiveSessionInWorktree error paths - Remove unrelated files (greetings.md, agent configs) from PR Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0fac13a commit 7b9d87d

File tree

7 files changed

+48
-305
lines changed

7 files changed

+48
-305
lines changed

.cursor/hooks.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

.entire/settings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"enabled": true,
33
"local_dev": true,
4+
"strategy": "manual-commit",
45
"strategy_options": {
56
"checkpoint_remote": {
67
"provider": "github",
78
"repo": "entireio/cli-checkpoints"
89
}
9-
},
10-
"telemetry": true,
11-
"commit_linking": "always",
12-
"external_agents": true,
13-
"strategy": "manual-commit"
10+
}
1411
}

.factory/settings.json

Lines changed: 0 additions & 90 deletions
This file was deleted.

.gemini/settings.json

Lines changed: 39 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,37 @@
11
{
22
"context": {
3-
"fileName": [
4-
"AGENTS.md"
5-
]
3+
"fileName": ["AGENTS.md"]
64
},
75
"hooks": {
8-
"AfterAgent": [
6+
"SessionStart": [
97
{
108
"hooks": [
119
{
12-
"name": "entire-after-agent",
13-
"type": "command",
14-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-agent"
15-
},
16-
{
17-
"name": "entire-after-agent",
10+
"name": "entire-session-start",
1811
"type": "command",
19-
"command": "entire hooks gemini after-agent"
12+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-start"
2013
}
2114
]
2215
}
2316
],
24-
"AfterModel": [
17+
"SessionEnd": [
2518
{
19+
"matcher": "exit",
2620
"hooks": [
2721
{
28-
"name": "entire-after-model",
29-
"type": "command",
30-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-model"
31-
},
32-
{
33-
"name": "entire-after-model",
22+
"name": "entire-session-end-exit",
3423
"type": "command",
35-
"command": "entire hooks gemini after-model"
24+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-end"
3625
}
3726
]
38-
}
39-
],
40-
"AfterTool": [
27+
},
4128
{
42-
"matcher": "*",
29+
"matcher": "logout",
4330
"hooks": [
4431
{
45-
"name": "entire-after-tool",
46-
"type": "command",
47-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-tool"
48-
},
49-
{
50-
"name": "entire-after-tool",
32+
"name": "entire-session-end-logout",
5133
"type": "command",
52-
"command": "entire hooks gemini after-tool"
34+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-end"
5335
}
5436
]
5537
}
@@ -61,11 +43,17 @@
6143
"name": "entire-before-agent",
6244
"type": "command",
6345
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-agent"
64-
},
46+
}
47+
]
48+
}
49+
],
50+
"AfterAgent": [
51+
{
52+
"hooks": [
6553
{
66-
"name": "entire-before-agent",
54+
"name": "entire-after-agent",
6755
"type": "command",
68-
"command": "entire hooks gemini before-agent"
56+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-agent"
6957
}
7058
]
7159
}
@@ -77,28 +65,17 @@
7765
"name": "entire-before-model",
7866
"type": "command",
7967
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-model"
80-
},
81-
{
82-
"name": "entire-before-model",
83-
"type": "command",
84-
"command": "entire hooks gemini before-model"
8568
}
8669
]
8770
}
8871
],
89-
"BeforeTool": [
72+
"AfterModel": [
9073
{
91-
"matcher": "*",
9274
"hooks": [
9375
{
94-
"name": "entire-before-tool",
95-
"type": "command",
96-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-tool"
97-
},
98-
{
99-
"name": "entire-before-tool",
76+
"name": "entire-after-model",
10077
"type": "command",
101-
"command": "entire hooks gemini before-tool"
78+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-model"
10279
}
10380
]
10481
}
@@ -110,100 +87,58 @@
11087
"name": "entire-before-tool-selection",
11188
"type": "command",
11289
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-tool-selection"
113-
},
114-
{
115-
"name": "entire-before-tool-selection",
116-
"type": "command",
117-
"command": "entire hooks gemini before-tool-selection"
11890
}
11991
]
12092
}
12193
],
122-
"Notification": [
94+
"BeforeTool": [
12395
{
96+
"matcher": "*",
12497
"hooks": [
12598
{
126-
"name": "entire-notification",
127-
"type": "command",
128-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini notification"
129-
},
130-
{
131-
"name": "entire-notification",
99+
"name": "entire-before-tool",
132100
"type": "command",
133-
"command": "entire hooks gemini notification"
101+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-tool"
134102
}
135103
]
136104
}
137105
],
138-
"PreCompress": [
106+
"AfterTool": [
139107
{
108+
"matcher": "*",
140109
"hooks": [
141110
{
142-
"name": "entire-pre-compress",
143-
"type": "command",
144-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini pre-compress"
145-
},
146-
{
147-
"name": "entire-pre-compress",
111+
"name": "entire-after-tool",
148112
"type": "command",
149-
"command": "entire hooks gemini pre-compress"
113+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-tool"
150114
}
151115
]
152116
}
153117
],
154-
"SessionEnd": [
155-
{
156-
"matcher": "exit",
157-
"hooks": [
158-
{
159-
"name": "entire-session-end-exit",
160-
"type": "command",
161-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-end"
162-
},
163-
{
164-
"name": "entire-session-end-exit",
165-
"type": "command",
166-
"command": "entire hooks gemini session-end"
167-
}
168-
]
169-
},
118+
"PreCompress": [
170119
{
171-
"matcher": "logout",
172120
"hooks": [
173121
{
174-
"name": "entire-session-end-logout",
175-
"type": "command",
176-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-end"
177-
},
178-
{
179-
"name": "entire-session-end-logout",
122+
"name": "entire-pre-compress",
180123
"type": "command",
181-
"command": "entire hooks gemini session-end"
124+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini pre-compress"
182125
}
183126
]
184127
}
185128
],
186-
"SessionStart": [
129+
"Notification": [
187130
{
188131
"hooks": [
189132
{
190-
"name": "entire-session-start",
191-
"type": "command",
192-
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-start"
193-
},
194-
{
195-
"name": "entire-session-start",
133+
"name": "entire-notification",
196134
"type": "command",
197-
"command": "entire hooks gemini session-start"
135+
"command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini notification"
198136
}
199137
]
200138
}
201139
]
202140
},
203-
"hooksConfig": {
204-
"enabled": true
205-
},
206141
"tools": {
207142
"enableHooks": true
208143
}
209-
}
144+
}

0 commit comments

Comments
 (0)