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

Function createAppSession

tools/claw-launcher-ui/server.mjs:1296–1309  ·  view source on GitHub ↗
(workspaceDir = state.config.workspaceDir)

Source from the content-addressed store, hash-verified

1294}
1295
1296async function createAppSession(workspaceDir = state.config.workspaceDir) {
1297 return await saveAppSessionState({
1298 sessionId: createId('session'),
1299 workspaceDir,
1300 transcript: [],
1301 toolCalls: [],
1302 timeline: [],
1303 lastClawSessionId: null,
1304 runState: {
1305 status: 'idle',
1306 message: null,
1307 },
1308 })
1309}
1310
1311async function renameAppSession(sessionId, workspaceDir, summary) {
1312 const normalizedWorkspace = normalizeWorkspaceDir(workspaceDir)

Callers 3

resetConversationFunction · 0.85
server.mjsFile · 0.85
mainFunction · 0.85

Calls 2

saveAppSessionStateFunction · 0.85
createIdFunction · 0.85

Tested by

no test coverage detected