Skip to content

Commit f6b7a03

Browse files
chore: project context injection, prompt templates, doctor improvements
- buildProjectContext() injects repo/framework/build/test info into worker+audit prompts - Prompt template {{projectContext}} variable support - Doctor section improvements and test cleanup - Recorded fixture update from smoke test run Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 885840e commit f6b7a03

1 file changed

Lines changed: 50 additions & 32 deletions

File tree

src/__test__/fixtures/recorded-sub-issue-flow.ts

Lines changed: 50 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Recorded API responses from sub-issue decomposition smoke test.
33
* Auto-generated — do not edit manually.
44
* Re-generate by running: npx vitest run src/__test__/smoke-linear-api.test.ts
5-
* Last recorded: 2026-02-22T03:36:11.793Z
5+
* Last recorded: 2026-02-22T03:40:54.418Z
66
*/
77

88
export const RECORDED = {
@@ -44,20 +44,20 @@ export const RECORDED = {
4444
}
4545
],
4646
"createParent": {
47-
"id": "764cdfd0-5f9f-435b-b992-4f3fd81efd35",
48-
"identifier": "UAT-424"
47+
"id": "933fa3c0-981a-4d9e-8b2c-7c5c4d5b4349",
48+
"identifier": "UAT-438"
4949
},
5050
"createSubIssue1": {
51-
"id": "929dee88-1963-4656-86ad-351465c288f2",
52-
"identifier": "UAT-425"
51+
"id": "4caa7593-5a51-4795-b98c-29e532589dfe",
52+
"identifier": "UAT-439"
5353
},
5454
"createSubIssue2": {
55-
"id": "e8213391-5b46-4868-a445-5b1ab2800d40",
56-
"identifier": "UAT-426"
55+
"id": "0519065b-95eb-4752-966b-2099bbc5f3d1",
56+
"identifier": "UAT-440"
5757
},
5858
"subIssue1Details": {
59-
"id": "929dee88-1963-4656-86ad-351465c288f2",
60-
"identifier": "UAT-425",
59+
"id": "4caa7593-5a51-4795-b98c-29e532589dfe",
60+
"identifier": "UAT-439",
6161
"title": "[SMOKE TEST] Sub-Issue 1: Backend API",
6262
"description": "Implement the backend search API endpoint.\n\nGiven a search query, when the API is called, then matching results are returned.",
6363
"estimate": 2,
@@ -83,16 +83,16 @@ export const RECORDED = {
8383
},
8484
"project": null,
8585
"parent": {
86-
"id": "764cdfd0-5f9f-435b-b992-4f3fd81efd35",
87-
"identifier": "UAT-424"
86+
"id": "933fa3c0-981a-4d9e-8b2c-7c5c4d5b4349",
87+
"identifier": "UAT-438"
8888
},
8989
"relations": {
9090
"nodes": []
9191
}
9292
},
9393
"subIssue2Details": {
94-
"id": "e8213391-5b46-4868-a445-5b1ab2800d40",
95-
"identifier": "UAT-426",
94+
"id": "0519065b-95eb-4752-966b-2099bbc5f3d1",
95+
"identifier": "UAT-440",
9696
"title": "[SMOKE TEST] Sub-Issue 2: Frontend UI",
9797
"description": "Build the frontend search UI component.\n\nGiven the search page loads, when the user types a query, then results display in real-time.",
9898
"estimate": 3,
@@ -118,18 +118,18 @@ export const RECORDED = {
118118
},
119119
"project": null,
120120
"parent": {
121-
"id": "764cdfd0-5f9f-435b-b992-4f3fd81efd35",
122-
"identifier": "UAT-424"
121+
"id": "933fa3c0-981a-4d9e-8b2c-7c5c4d5b4349",
122+
"identifier": "UAT-438"
123123
},
124124
"relations": {
125125
"nodes": []
126126
}
127127
},
128128
"parentDetails": {
129-
"id": "764cdfd0-5f9f-435b-b992-4f3fd81efd35",
130-
"identifier": "UAT-424",
129+
"id": "933fa3c0-981a-4d9e-8b2c-7c5c4d5b4349",
130+
"identifier": "UAT-438",
131131
"title": "[SMOKE TEST] Sub-Issue Parent: Search Feature",
132-
"description": "Auto-generated by smoke test to verify sub-issue decomposition.\n\nThis parent issue should have two sub-issues created under it.\n\nCreated: 2026-02-22T03:36:10.360Z",
132+
"description": "Auto-generated by smoke test to verify sub-issue decomposition.\n\nThis parent issue should have two sub-issues created under it.\n\nCreated: 2026-02-22T03:40:52.229Z",
133133
"estimate": null,
134134
"state": {
135135
"name": "Backlog",
@@ -149,7 +149,13 @@ export const RECORDED = {
149149
"issueEstimationType": "tShirt"
150150
},
151151
"comments": {
152-
"nodes": []
152+
"nodes": [
153+
{
154+
"body": "This thread is for an agent session with ctclaw.",
155+
"user": null,
156+
"createdAt": "2026-02-22T03:40:53.165Z"
157+
}
158+
]
153159
},
154160
"project": null,
155161
"parent": null,
@@ -158,11 +164,11 @@ export const RECORDED = {
158164
}
159165
},
160166
"createRelation": {
161-
"id": "3879ad86-7f68-4e6e-a9a5-d139a7a1ca40"
167+
"id": "185dfd6c-362e-48a4-b717-e900407ced84"
162168
},
163169
"subIssue1WithRelation": {
164-
"id": "929dee88-1963-4656-86ad-351465c288f2",
165-
"identifier": "UAT-425",
170+
"id": "4caa7593-5a51-4795-b98c-29e532589dfe",
171+
"identifier": "UAT-439",
166172
"title": "[SMOKE TEST] Sub-Issue 1: Backend API",
167173
"description": "Implement the backend search API endpoint.\n\nGiven a search query, when the API is called, then matching results are returned.",
168174
"estimate": 2,
@@ -184,29 +190,35 @@ export const RECORDED = {
184190
"issueEstimationType": "tShirt"
185191
},
186192
"comments": {
187-
"nodes": []
193+
"nodes": [
194+
{
195+
"body": "This thread is for an agent session with ctclaw.",
196+
"user": null,
197+
"createdAt": "2026-02-22T03:40:53.603Z"
198+
}
199+
]
188200
},
189201
"project": null,
190202
"parent": {
191-
"id": "764cdfd0-5f9f-435b-b992-4f3fd81efd35",
192-
"identifier": "UAT-424"
203+
"id": "933fa3c0-981a-4d9e-8b2c-7c5c4d5b4349",
204+
"identifier": "UAT-438"
193205
},
194206
"relations": {
195207
"nodes": [
196208
{
197209
"type": "blocks",
198210
"relatedIssue": {
199-
"id": "e8213391-5b46-4868-a445-5b1ab2800d40",
200-
"identifier": "UAT-426",
211+
"id": "0519065b-95eb-4752-966b-2099bbc5f3d1",
212+
"identifier": "UAT-440",
201213
"title": "[SMOKE TEST] Sub-Issue 2: Frontend UI"
202214
}
203215
}
204216
]
205217
}
206218
},
207219
"subIssue2WithRelation": {
208-
"id": "e8213391-5b46-4868-a445-5b1ab2800d40",
209-
"identifier": "UAT-426",
220+
"id": "0519065b-95eb-4752-966b-2099bbc5f3d1",
221+
"identifier": "UAT-440",
210222
"title": "[SMOKE TEST] Sub-Issue 2: Frontend UI",
211223
"description": "Build the frontend search UI component.\n\nGiven the search page loads, when the user types a query, then results display in real-time.",
212224
"estimate": 3,
@@ -228,12 +240,18 @@ export const RECORDED = {
228240
"issueEstimationType": "tShirt"
229241
},
230242
"comments": {
231-
"nodes": []
243+
"nodes": [
244+
{
245+
"body": "This thread is for an agent session with ctclaw.",
246+
"user": null,
247+
"createdAt": "2026-02-22T03:40:53.840Z"
248+
}
249+
]
232250
},
233251
"project": null,
234252
"parent": {
235-
"id": "764cdfd0-5f9f-435b-b992-4f3fd81efd35",
236-
"identifier": "UAT-424"
253+
"id": "933fa3c0-981a-4d9e-8b2c-7c5c4d5b4349",
254+
"identifier": "UAT-438"
237255
},
238256
"relations": {
239257
"nodes": []

0 commit comments

Comments
 (0)