| @@ -211,8 +211,14 @@ | ||
| 211 | 211 | } |
| 212 | 212 | if ( isset( $draft['abilities'] ) && is_array( $draft['abilities'] ) ) { |
| 213 | 213 | $cast['abilities'] = array_values( array_map( 'strval', $draft['abilities'] ) ); |
| 214 | 214 | } |
| 215 | + // The rewrite goes back into the brief: Describe's textarea is the | |
| 216 | + // system prompt, so walking back to it shows the drafted | |
| 217 | + // instructions, editable, rather than the sentence they grew from. | |
| 218 | + if ( '' !== (string) ( $cast['instructions'] ?? '' ) ) { | |
| 219 | + $cast['brief'] = (string) $cast['instructions']; | |
| 220 | + } | |
| 215 | 221 | // Filled in, Meet is a review. |
| 216 | 222 | $state->set( 'cast', $cast )->set( 'wstep', 1 )->set( 'briefError', '' ); |
| 217 | 223 | } |
| 218 | 224 | |