MCPcopy Create free account
hub / github.com/Microck/opencode-studio / loadSystemPrompt

Function loadSystemPrompt

client-next/src/app/settings/page.tsx:97–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }, []);
96
97 const loadSystemPrompt = async () => {
98 try {
99 setLoadingPrompt(true);
100 const res = await api.get('/prompts/global');
101 setSystemPrompt(res.data.content);
102 } catch (error) {
103 console.error("Error loading prompt:", error);
104 } finally {
105 setLoadingPrompt(false);
106 }
107 };
108
109 const handleSaveSystemPrompt = async () => {
110 try {

Callers 1

SettingsPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected