File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments