| 4227 | ], | 4227 | ], |
| 4228 | callback: (args, value) => { | 4228 | callback: (args, value) => { |
| 4229 | const force = isTrueBoolean(String(args?.force ?? false)); | 4229 | const force = isTrueBoolean(String(args?.force ?? false)); |
| 4230 | value = String(value ?? '').trim(); | | |
| 4231 | | 4230 | |
| 4232 | // Skip processing if no value and not forced | 4231 | // Skip processing if no value and not forced |
| 4233 | if (!force && !value) { | 4232 | if (!force && !value) { |
| 4234 | return power_user.user_prompt_bias; | 4233 | return power_user.user_prompt_bias; |
| 4235 | } | 4234 | } |
| 4236 | | 4235 | |
| 4237 | power_user.user_prompt_bias = value; | 4236 | power_user.user_prompt_bias = String(value ?? ''); |
| 4238 | $('#start_reply_with').val(power_user.user_prompt_bias); | 4237 | $('#start_reply_with').val(power_user.user_prompt_bias); |
| 4239 | saveSettingsDebounced(); | 4238 | saveSettingsDebounced(); |
| 4240 | | 4239 | |