Skip to content

Commit 450a60f

Browse files
committed
fix(ci): keep router browser coherent with profile (ui always provisions a browser)
1 parent e1b1f05 commit 450a60f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/claude.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,14 @@ jobs:
115115
116116
case "$PROFILE" in ui|code|docs|question|review) ;; *) PROFILE=code ;; esac
117117
case "$BROWSER" in playwright|chrome|none) ;; *) BROWSER=none ;; esac
118-
# Review needs no app or browser; force the lean shape regardless of the browser field.
119-
if [ "$PROFILE" = "review" ]; then BROWSER=none; fi
118+
# Keep browser coherent with profile so the provisioned setup matches the prompt's
119+
# definition-of-done. A ui task must get a browser (default Playwright if the
120+
# classifier omitted it or returned none); every non-ui profile gets none, so it
121+
# never pre-provisions a browser/dev server it won't use.
122+
case "$PROFILE" in
123+
ui) [ "$BROWSER" = "none" ] && BROWSER=playwright || true ;;
124+
*) BROWSER=none ;;
125+
esac
120126
# Dev server is provisioned iff a browser is — you can't verify in a browser
121127
# without the app running, and non-browser tasks don't need it.
122128
if [ "$BROWSER" = "none" ]; then DEVSERVER=false; else DEVSERVER=true; fi

0 commit comments

Comments
 (0)