end_coding_session
Terminate the current coding session to wrap up tasks, free resources, and prepare for future work.
Instructions
End the current coding session
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The actual handler/logic for ending a coding session. Sets currentSession.isActive to false and clears the session.
async endCodingSession(): Promise<void> { if (this.currentSession) { this.currentSession.isActive = false; this.currentSession = undefined; } } - src/index.ts:294-296 (registration)The tool registration/dispatch point. Routes 'end_coding_session' to projectConfigService.endCodingSession().
case 'end_coding_session': await this.projectConfigService.endCodingSession(); return { - src/toolDefinitions.ts:708-715 (schema)First schema definition of 'end_coding_session' tool with name, description, and empty inputSchema.
{ name: 'end_coding_session', description: 'End the current AI coding session', inputSchema: { type: 'object', properties: {} } }, - src/toolDefinitions.ts:1023-1030 (schema)Second schema definition of 'end_coding_session' tool (likely a server-specific or duplicate registration) with same empty inputSchema.
{ name: 'end_coding_session', description: 'End the current coding session', inputSchema: { type: 'object', properties: {}, } }, - SessionInfo interface definition, which is the data structure manipulated by endCodingSession().
export interface SessionInfo { id: string; description: string; startTime: string; branch?: string; commitHashes: string[]; isActive: boolean; }