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
11 lines · 312 BRaw
1/**
2 * What `/clear` and `/resume` reset: the pick, the source, the turns and
3 * the body; the fetch itself stays.
4 */
5export const NEW_SESSION_FIELDS = Object.freeze({
6 selectedPath: null,
7 source: Object.freeze({ kind: 'current' }),
8 turns: Object.freeze([]),
9 body: null,
10 bodyState: 'idle',
11} as const)