MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / SystemPromptTab

Function SystemPromptTab

SettingsModal.tsx:282–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280// ── System Prompt Settings Tab ────────────────────────────────────────────
281
282function SystemPromptTab() {
283 const {
284 customSystemPrompt,
285 useCustomSystemPrompt,
286 setCustomSystemPrompt,
287 setUseCustomSystemPrompt,
288 resetSystemPromptToDefault
289 } = useStore()
290
291 const [localPrompt, setLocalPrompt] = useState(customSystemPrompt)
292 const [saved, setSaved] = useState(false)
293 const [showResetConfirm, setShowResetConfirm] = useState(false)
294
295 // Sync local state when store changes
296 useEffect(() => {
297 setLocalPrompt(customSystemPrompt)
298 }, [customSystemPrompt])
299
300 const handleSave = () => {
301 setCustomSystemPrompt(localPrompt)
302 setSaved(true)
303 setTimeout(() => setSaved(false), 2000)
304 }
305
306 const handleReset = () => {
307 resetSystemPromptToDefault()
308 setLocalPrompt(DEFAULT_GODMODE_PROMPT)
309 setShowResetConfirm(false)
310 setSaved(true)
311 setTimeout(() => setSaved(false), 2000)
312 }
313
314 const handleCopy = () => {
315 navigator.clipboard.writeText(localPrompt)
316 }
317
318 const charCount = localPrompt.length
319 const isModified = localPrompt !== customSystemPrompt
320
321 return (
322 <div className="space-y-4">
323 <div>
324 <h3 className="text-lg font-semibold mb-1">GODMODE System Prompt</h3>
325 <p className="text-sm theme-secondary mb-4">
326 The system prompt injected into every conversation. This is your &quot;Ultraplinian&quot; jailbreak prompt.
327 </p>
328 </div>
329
330 {/* Master toggle */}
331 <ToggleSetting
332 label="Use Custom System Prompt"
333 description="When enabled, this prompt is sent as the system message to all models"
334 enabled={useCustomSystemPrompt}
335 onChange={setUseCustomSystemPrompt}
336 />
337
338 {useCustomSystemPrompt && (
339 <>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected