spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / pane-state / after-new-session / new-session-fields / new-session-fields.ts
12 lines · 345 BRaw
1import { NO_BODIES } from '../../no-bodies'
2
3/**
4 * What `/clear` and `/resume` reset: the pick, the source, the turns and
5 * the bodies; the fetch itself stays.
6 */
7export const NEW_SESSION_FIELDS = Object.freeze({
8 selectedPath: null,
9 source: Object.freeze({ kind: 'current' }),
10 turns: Object.freeze([]),
11 bodies: NO_BODIES,
12} as const)