MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / handleRenameSession

Function handleRenameSession

ai-code-studio/src/App.tsx:341–352  ·  view source on GitHub ↗
(sessionId: string, newName: string)

Source from the content-addressed store, hash-verified

339 }
340
341 async function handleRenameSession(sessionId: string, newName: string) {
342 const trimmed = newName.trim();
343 if (!trimmed) return;
344 try {
345 await api('/api/sessions/rename', {
346 method: 'POST',
347 body: { sessionId, summary: trimmed },
348 });
349 } catch (error) {
350 setErrorMessage(error instanceof Error ? error.message : String(error));
351 }
352 }
353
354 function handleDeleteSession(sessionId: string, currentName: string) {
355 setDeleteConfirm({ sessionId, name: currentName });

Callers 1

AppFunction · 0.85

Calls 1

apiFunction · 0.90

Tested by

no test coverage detected