Skip to content

Commit 91801d7

Browse files
committed
AI: Restart from review step
We should be able to restart the work process at the review step
1 parent 9d90596 commit 91801d7

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

agents.just

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,16 +298,34 @@ ai-work-step-inner:
298298
{{workspace_just}} review-change-inner
299299
300300
# Use this step when starting to work on a new issue
301-
work workspace_id rev="@": (run workspace_id "work" "work-inner" rev)
301+
work workspace_id rev="@" start-from='': (run workspace_id "work" "work-inner" rev start-from)
302302
303303
[script]
304-
work-inner rev:
304+
work-inner rev start-from='':
305305
jj edit {{rev}}
306+
start_from="{{start-from}}"
307+
echo "AAA"
306308
while true; do
307-
{{workspace_just}} questions-for-pm-inner
308-
{{workspace_just}} pick-next-issue-inner
309-
[ -f next-issue.md ] || break
310-
{{workspace_just}} ai-work-step-inner
309+
if [ "$start_from" = '' ] || [ "$start_from" = "questions" ]; then
310+
{{workspace_just}} questions-for-pm-inner
311+
start_from=''
312+
fi
313+
echo "BBB"
314+
if [ "$start_from" = '' ] || [ "$start_from" = "pick" ]; then
315+
{{workspace_just}} pick-next-issue-inner
316+
[ -f next-issue.md ] || break
317+
start_from=''
318+
fi
319+
echo "CCC"
320+
if [ "$start_from" = '' ] || [ "$start_from" = "code" ]; then
321+
{{workspace_just}} next-issue-inner
322+
start_from=''
323+
fi
324+
echo "DDD"
325+
if [ "$start_from" = '' ] || [ "$start_from" = "review" ]; then
326+
{{workspace_just}} review-change-inner
327+
start_from=''
328+
fi
311329
jj split issues.md -m "issues: Update after review"
312330
jj edit @-
313331
#{{workspace_just}} human-work-step-inner

0 commit comments

Comments
 (0)