-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathsettings.html
More file actions
620 lines (600 loc) · 49.2 KB
/
Copy pathsettings.html
File metadata and controls
620 lines (600 loc) · 49.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
<!-- Guided Generations Settings Panel -->
<div class="GuidedGenerations-Extension-settingslist">
<div class="inline-drawer">
<div class="inline-drawer-toggle inline-drawer-header">
<b>Guided Generations Settings</b>
<span id="gg_versionBadge" class="gg-version-badge" title="Installed version (from manifest.json)">v?</span>
<div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
</div>
<div class="inline-drawer-content">
<div class="settings_section">
<h4>Show Action Buttons</h4> <!-- Heading for Impersonate/Action Buttons -->
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showImpersonate1stPerson" name="showImpersonate1stPerson" class="gg-setting-input">
<label for="gg_showImpersonate1stPerson" style="margin-left: 8px;">Show Impersonate (1st Person)</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showImpersonate2ndPerson" name="showImpersonate2ndPerson" class="gg-setting-input">
<label for="gg_showImpersonate2ndPerson" style="margin-left: 8px;">Show Impersonate (2nd Person)</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showImpersonate3rdPerson" name="showImpersonate3rdPerson" class="gg-setting-input">
<label for="gg_showImpersonate3rdPerson" style="margin-left: 8px;">Show Impersonate (3rd Person)</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showGuidedContinue" name="showGuidedContinue" class="gg-setting-input">
<label for="gg_showGuidedContinue" style="margin-left: 8px;">Show Guided Continue</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showGuidedResponse" name="showGuidedResponse" class="gg-setting-input">
<label for="gg_showGuidedResponse" style="margin-left: 8px;">Show Guided Response</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showGuidedSwipe" name="showGuidedSwipe" class="gg-setting-input">
<label for="gg_showGuidedSwipe" style="margin-left: 8px;">Show Guided Swipe</label>
</div>
</div>
<hr>
<h4>Show Tool Buttons</h4>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showSimpleSendButton" name="showSimpleSendButton" class="gg-setting-input">
<label for="gg_showSimpleSendButton" style="margin-left: 8px;">Show Simple Send Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showRecoverInputButton" name="showRecoverInputButton" class="gg-setting-input">
<label for="gg_showRecoverInputButton" style="margin-left: 8px;">Show Recover Input Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showEditIntrosButton" name="showEditIntrosButton" class="gg-setting-input">
<label for="gg_showEditIntrosButton" style="margin-left: 8px;">Show Edit Intros Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showCorrectionsButton" name="showCorrectionsButton" class="gg-setting-input">
<label for="gg_showCorrectionsButton" style="margin-left: 8px;">Show Corrections Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showSeparatedThinkingButton" name="showSeparatedThinkingButton" class="gg-setting-input">
<label for="gg_showSeparatedThinkingButton" style="margin-left: 8px;">Show Separated Thinking Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showSpellcheckerButton" name="showSpellcheckerButton" class="gg-setting-input">
<label for="gg_showSpellcheckerButton" style="margin-left: 8px;">Show Spellchecker Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showClearInputButton" name="showClearInputButton" class="gg-setting-input">
<label for="gg_showClearInputButton" style="margin-left: 8px;">Show Clear Input Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showUndoButton" name="showUndoButton" class="gg-setting-input">
<label for="gg_showUndoButton" style="margin-left: 8px;">Show Undo Last Addition Button</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_showRevertButton" name="showRevertButton" class="gg-setting-input">
<label for="gg_showRevertButton" style="margin-left: 8px;">Show Revert to Original Button</label>
</div>
</div>
<hr>
<h4>UI Preferences</h4>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_integrateQrBar" name="integrateQrBar" class="gg-setting-input">
<label for="gg_integrateQrBar" style="margin-left: 8px;">Integrate QR Bar into GG Button Area</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_debugMode" name="debugMode" class="gg-setting-input">
<label for="gg_debugMode" style="margin-left: 8px;">Enable Debug Logging</label>
</div>
<small class="setting_item_description">
When enabled, shows detailed debug information in the browser console and captures it for mobile access. Useful for troubleshooting but can clutter the console during normal use. Debug messages are automatically captured and can be copied or downloaded.
</small>
<div style="margin-top: 8px; display: flex; gap: 8px;">
<button type="button" id="gg_copyDebugLogs" class="btn btn-secondary" style="font-size: 12px; padding: 4px 8px;">
<i class="fa-solid fa-copy"></i> Copy Debug Logs
</button>
<button type="button" id="gg_downloadDebugLogs" class="btn btn-secondary" style="font-size: 12px; padding: 4px 8px;">
<i class="fa-solid fa-download"></i> Download as TXT
</button>
<button type="button" id="gg_clearDebugLogs" class="btn btn-secondary" style="font-size: 12px; padding: 4px 8px;">
<i class="fa-solid fa-trash"></i> Clear Logs
</button>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_persistentGuidesInChatlog" name="persistentGuidesInChatlog" class="gg-setting-input">
<label for="gg_persistentGuidesInChatlog" style="margin-left: 8px;">Persistent Guides in Chatlog</label>
</div>
<small class="setting_item_description">
When enabled, Persistent Guides will be visible in the Chatlog but will not be sent to the LLM. Only the invisible injections are sent to the LLM.
</small>
</div>
<hr>
<h4>Auto-Triggers (Persistent Guides)</h4> <!-- Heading for Auto-Triggers -->
<small class="setting_item_description">
Auto Triggered Guides automatically run when you use a the vanilla Send command from ST and on Guided Response before the Response is being generated. They do not run on swipes (where it is expected that they have already run on the initial response and are current). Separated Thinking runs after a normal response is generated and creates a corrected swipe.
</small>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_autoTriggerClothes" name="autoTriggerClothes" class="gg-setting-input">
<label for="gg_autoTriggerClothes" style="margin-left: 8px;">Describe Clothes</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_autoTriggerState" name="autoTriggerState" class="gg-setting-input">
<label for="gg_autoTriggerState" style="margin-left: 8px;">Describe State</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_autoTriggerThinking" name="autoTriggerThinking" class="gg-setting-input">
<label for="gg_autoTriggerThinking" style="margin-left: 8px;">Describe Thinking</label>
</div>
</div>
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_autoTriggerSeparatedThinking" name="autoTriggerSeparatedThinking" class="gg-setting-input">
<label for="gg_autoTriggerSeparatedThinking" style="margin-left: 8px;">Separated Thinking</label>
</div>
</div>
<!-- Custom Auto Guide Auto Trigger -->
<div class="setting_item">
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<input type="checkbox" id="gg_enableAutoCustomAutoGuide" name="enableAutoCustomAutoGuide" class="gg-setting-input" title="Trigger this guide automatically before each outgoing message">
<label for="gg_enableAutoCustomAutoGuide" style="margin-left: 8px;">Custom Auto Guide</label>
</div>
</div>
<hr>
<h4>Injection Settings</h4> <!-- New Heading -->
<div class="setting_item"> <!-- Container for the new setting -->
<label for="gg_injectionEndRole" style="margin-bottom: 5px; display: block;">Send Injections as:</label> <!-- Label for the dropdown -->
<select id="gg_injectionEndRole" name="injectionEndRole" class="gg-setting-input text_pole select_compact"> <!-- Dropdown -->
<option value="system">System</option>
<option value="assistant">Assistant</option>
<option value="user">User</option>
</select>
<small class="setting_item_description"> <!-- Description -->
Determines the role assigned to the end of injected content (like Describe State/Clothes) before generation. 'System' is often best for guidance, 'Assistant' continues the flow, 'User' can sometimes be useful depending on the model/prompt structure. Default: System.
</small>
</div>
<hr>
<details class="gg-collapsible-section">
<summary>
<h4>Preset Usage</h4>
<small class="setting_item_description">Assign a profile and preset baseline to each Guided Generation action. The extension now applies selected profile/preset behavior internally per request (without globally switching your active profile). Select <code>GG Internal Helper Preset</code> to use the built-in helper-oriented prompt/tokens override while keeping your current profile context and model settings as baseline. Select <code>None</code> if you want to run with your currently active preset behavior only.</small>
</summary>
<!-- Profile System Controls -->
<div class="setting_item" style="margin-bottom: 20px;">
<button id="refreshProfileDropdowns" type="button" class="btn btn-secondary" style="margin-right: 10px;">
Refresh Profile Dropdowns
</button>
<button id="gg_setDefaultPresets" type="button" class="btn btn-secondary" title="Set GG Internal Helper Preset as the preset for all eligible guides/tools, leaving their profiles untouched.">
Set Defaults
</button>
<span id="profileDebugStatus" style="font-style: italic; color: var(--SmartThemeBodyColor); opacity: 0.6; margin-left: 10px;"></span>
</div>
<div class="setting_item">
<h4>Internal Helper Preset</h4>
<small class="setting_item_description">
Settings for actions using <code>GG Internal Helper Preset</code>.
</small>
<div style="display: flex; align-items: center; gap: 15px; margin-top: 10px;">
<div style="flex: 1; min-width: 0;">
<label for="gg_internalHelperPresetMaxTokens" style="margin-bottom: 5px; display: block; font-weight: bold;">Max Response Tokens:</label>
<input type="number" id="gg_internalHelperPresetMaxTokens" name="internalHelperPresetMaxTokens" class="gg-setting-input text_pole" min="1" max="128000" value="4000" style="width: 100px;">
<small class="setting_item_description">Max tokens the LLM may generate (default: 4000)</small>
</div>
<div style="flex: 1; min-width: 0;">
<label for="gg_internalHelperPresetMaxContext" style="margin-bottom: 5px; display: block; font-weight: bold;">Max Context Tokens:</label>
<input type="number" id="gg_internalHelperPresetMaxContext" name="internalHelperPresetMaxContext" class="gg-setting-input text_pole" min="0" max="128000" value="0" style="width: 100px;">
<small class="setting_item_description">Total context budget (history + prompt). <code>0</code> = use SillyTavern's global Context Size value.</small>
</div>
</div>
</div>
<!-- Preset / Profile assignment per feature.
One shared header row, then one compact 3-column row per feature:
Feature name | Profile dropdown | Preset dropdown. -->
<div class="setting_item">
<!-- Column header row -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--SmartThemeBodyColor); opacity: 0.85;">
<div style="flex: 0 0 160px; min-width: 0; font-weight: bold;">Feature</div>
<div style="flex: 1 1 0; min-width: 0; font-weight: bold;">Profile</div>
<div style="flex: 1 1 0; min-width: 0; font-weight: bold;">Preset</div>
</div>
<!-- Clothes -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Clothes</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileClothes" name="profileClothes" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetClothes" name="presetClothes" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- State -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">State</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileState" name="profileState" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetState" name="presetState" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Thinking -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Thinking</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileThinking" name="profileThinking" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetThinking" name="presetThinking" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Custom Auto -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Custom Auto</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileCustomAuto" name="profileCustomAuto" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetCustomAuto" name="presetCustomAuto" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Situational -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Situational</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileSituational" name="profileSituational" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetSituational" name="presetSituational" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Rules -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Rules</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileRules" name="profileRules" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetRules" name="presetRules" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Custom -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Custom</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileCustom" name="profileCustom" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetCustom" name="presetCustom" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Corrections -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Corrections</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileCorrections" name="profileCorrections" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetCorrections" name="presetCorrections" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Separated Thinking -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Separated Thinking</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileSeparatedThinking" name="profileSeparatedThinking" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetSeparatedThinking" name="presetSeparatedThinking" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Spellchecker -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Spellchecker</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileSpellchecker" name="profileSpellchecker" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetSpellchecker" name="presetSpellchecker" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Edit Intros -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Edit Intros</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileEditIntros" name="profileEditIntros" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetEditIntros" name="presetEditIntros" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Impersonate 1st -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Impersonate 1st</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileImpersonate1st" name="profileImpersonate1st" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetImpersonate1st" name="presetImpersonate1st" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Impersonate 2nd -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Impersonate 2nd</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileImpersonate2nd" name="profileImpersonate2nd" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetImpersonate2nd" name="presetImpersonate2nd" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Impersonate 3rd -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Impersonate 3rd</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileImpersonate3rd" name="profileImpersonate3rd" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetImpersonate3rd" name="presetImpersonate3rd" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Fun Prompts -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Fun Prompts</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileFun" name="profileFun" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetFun" name="presetFun" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Stat Tracker: Determine Changes -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Tracker: Determine</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileTrackerDetermine" name="profileTrackerDetermine" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetTrackerDetermine" name="presetTrackerDetermine" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
<!-- Stat Tracker: Update with Changes -->
<div style="display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px;">
<div style="flex: 0 0 160px; min-width: 0;">Tracker: Update</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="profileTrackerUpdate" name="profileTrackerUpdate" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
<option value="">None</option>
</select>
</div>
<div style="flex: 1 1 0; min-width: 0;">
<select id="presetTrackerUpdate" name="presetTrackerUpdate" class="gg-setting-input text_pole select_compact" style="width: 100%; min-width: 0;">
</select>
</div>
</div>
</div>
</details>
<hr>
<details class="guide-prompt-overrides-section gg-collapsible-section"> <!-- Added wrapper -->
<summary>
<h4>Guide Prompt Overrides</h4>
<small class="setting_item_description">By default prompts are loaded from <code>prompts.json</code> in the extension folder. Each prompt has a "Use prompts.json" checkbox — checked (default) means the file is the source, unchecked means your own saved value is used instead. Editing a prompt here unchecks that box automatically so your edit takes effect. Changes made here are saved in SillyTavern user settings and do not rewrite <code>prompts.json</code>. Use <code>{{input}}</code> where you want the original user text to be inserted (if applicable). Raw and Depth controls are still saved here.</small>
<button type="button" id="ggDownloadDefaultPrompts" class="menu_button" style="margin-top: 8px;">Download default prompts.json from GitHub</button>
</summary>
<!-- Textareas for overriding default guide prompts -->
<div class="setting_item">
<label for="gg_promptClothes" style="margin-left: 8px; min-width:150px; display:block;">Clothes Guide Prompt</label>
<textarea id="gg_promptClothes" name="promptClothes" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptClothes" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptClothes" name="rawPromptClothes" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptClothes" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptClothes" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptClothes" name="depthPromptClothes" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptState" style="margin-left: 8px; min-width:150px; display:block;">State Guide Prompt</label>
<textarea id="gg_promptState" name="promptState" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptState" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptState" name="rawPromptState" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptState" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptState" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptState" name="depthPromptState" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptThinking" style="margin-left: 8px; min-width:150px; display:block;">Thinking Guide Prompt</label>
<textarea id="gg_promptThinking" name="promptThinking" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptThinking" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptThinking" name="rawPromptThinking" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptThinking" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptThinking" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptThinking" name="depthPromptThinking" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_customAutoGuidePrompt" style="margin-left: 8px; min-width:150px; display:block;">Custom Auto Guide Prompt</label>
<textarea id="gg_customAutoGuidePrompt" name="customAutoGuidePrompt" class="gg-setting-input text_pole" rows="3" placeholder="Enter custom prompt here... (leave empty to disable override)" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="customAutoGuidePrompt" style="margin-top:4px;">Default (Empty)</button>
<input type="checkbox" id="gg_rawPromptCustomAuto" name="rawPromptCustomAuto" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptCustomAuto" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptCustomAuto" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptCustomAuto" name="depthPromptCustomAuto" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptSituational" style="margin-left: 8px; min-width:150px; display:block;">Situational Guide Prompt</label>
<textarea id="gg_promptSituational" name="promptSituational" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptSituational" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptSituational" name="rawPromptSituational" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptSituational" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptSituational" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptSituational" name="depthPromptSituational" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptRules" style="margin-left: 8px; min-width:150px; display:block;">Rules Guide Prompt</label>
<textarea id="gg_promptRules" name="promptRules" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptRules" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptRules" name="rawPromptRules" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptRules" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptRules" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptRules" name="depthPromptRules" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptCorrections" style="margin-left: 8px; min-width:150px; display:block;">Corrections Prompt</label>
<textarea id="gg_promptCorrections" name="promptCorrections" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptCorrections" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptCorrections" name="rawPromptCorrections" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptCorrections" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptCorrections" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptCorrections" name="depthPromptCorrections" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptSeparatedThinking" style="margin-left: 8px; min-width:150px; display:block;">Separated Thinking Prompt</label>
<textarea id="gg_promptSeparatedThinking" name="promptSeparatedThinking" class="gg-setting-input text_pole" rows="5" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptSeparatedThinking" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptSeparatedThinking" name="rawPromptSeparatedThinking" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptSeparatedThinking" style="margin-left:4px;">Raw</label>
<label for="gg_depthPromptSeparatedThinking" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptSeparatedThinking" name="depthPromptSeparatedThinking" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</div>
<div class="setting_item">
<label for="gg_promptSpellchecker" style="margin-left: 8px; min-width:150px; display:block;">Spellchecker Prompt</label>
<textarea id="gg_promptSpellchecker" name="promptSpellchecker" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<div style="display: flex; align-items: center; margin-top: 4px;">
<button type="button" class="gg-default-button" data-target="promptSpellchecker" style="margin-top:4px;">Default</button>
<input type="checkbox" id="gg_rawPromptSpellchecker" name="rawPromptSpellchecker" class="gg-setting-input" style="margin-left:8px;">
<label for="gg_rawPromptSpellchecker" style="margin-left:4px;">Raw</label>
</div>
</div>
<div class="setting_item">
<label for="gg_promptImpersonate1st" style="margin-left: 8px; min-width:150px; display:block;">Impersonate 1st Person Prompt</label>
<textarea id="gg_promptImpersonate1st" name="promptImpersonate1st" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<button type="button" class="gg-default-button" data-target="promptImpersonate1st" style="margin-top:4px;">Default</button>
</div>
<div class="setting_item">
<label for="gg_promptImpersonate2nd" style="margin-left: 8px; min-width:150px; display:block;">Impersonate 2nd Person Prompt</label>
<textarea id="gg_promptImpersonate2nd" name="promptImpersonate2nd" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<button type="button" class="gg-default-button" data-target="promptImpersonate2nd" style="margin-top:4px;">Default</button>
</div>
<div class="setting_item">
<label for="gg_promptImpersonate3rd" style="margin-left: 8px; min-width:150px; display:block;">Impersonate 3rd Person Prompt</label>
<textarea id="gg_promptImpersonate3rd" name="promptImpersonate3rd" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<button type="button" class="gg-default-button" data-target="promptImpersonate3rd" style="margin-top:4px;">Default</button>
</div>
<div class="setting_item">
<label for="gg_promptGuidedContinue" style="margin-left: 8px; min-width:150px; display:block;">Guided Continue Prompt</label>
<textarea id="gg_promptGuidedContinue" name="promptGuidedContinue" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<button type="button" class="gg-default-button" data-target="promptGuidedContinue" style="margin-top:4px;">Default</button>
</div>
<div class="setting_item">
<label for="gg_promptGuidedResponse" style="margin-left: 8px; min-width:150px; display:block;">Guided Response Prompt</label>
<textarea id="gg_promptGuidedResponse" name="promptGuidedResponse" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<button type="button" class="gg-default-button" data-target="promptGuidedResponse" style="margin-top:4px;">Default</button>
<label for="gg_depthPromptGuidedResponse" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptGuidedResponse" name="depthPromptGuidedResponse" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
<div class="setting_item">
<label for="gg_promptGuidedSwipe" style="margin-left: 8px; min-width:150px; display:block;">Guided Swipe Prompt</label>
<textarea id="gg_promptGuidedSwipe" name="promptGuidedSwipe" class="gg-setting-input text_pole" rows="3" style="width:100%; margin-left:8px; min-width:200px;"></textarea>
<button type="button" class="gg-default-button" data-target="promptGuidedSwipe" style="margin-top:4px;">Default</button>
<label for="gg_depthPromptGuidedSwipe" style="margin-left:8px;">Depth:</label>
<input type="number" id="gg_depthPromptGuidedSwipe" name="depthPromptGuidedSwipe" class="gg-setting-input" min="0" style="width: 50px; margin-left:4px;">
</div>
</details> <!-- Added closing wrapper tag -->
</div>
</div>
</div>
</div>