Skip to content

chore(core): rename ExecutionSession to SessionRecord for clarity#2147

Merged
ottomao merged 1 commit intofeat/session-report-exportfrom
claude/clarify-class-relationships-USz14
Mar 13, 2026
Merged

chore(core): rename ExecutionSession to SessionRecord for clarity#2147
ottomao merged 1 commit intofeat/session-report-exportfrom
claude/clarify-class-relationships-USz14

Conversation

@ottomao
Copy link
Collaborator

@ottomao ottomao commented Mar 13, 2026

Summary

This PR renames the ExecutionSession interface and related types to SessionRecord to better reflect their purpose as persistent data records rather than active execution sessions.

Key Changes

  • Renamed ExecutionSession interface to SessionRecord throughout the codebase
  • Renamed EnsureExecutionSessionInput interface to EnsureSessionRecordInput
  • Updated all type references in ExecutionStore class methods:
    • load() return type
    • save() parameter and return type
    • ensureSession() parameter and return type
    • markReportGenerated() return type
  • Updated internal variable type annotations to use the new SessionRecord name
  • Updated public API exports in index.ts to reflect the new interface names

Implementation Details

The renaming is purely a nomenclature change with no functional modifications. All method signatures, logic, and behavior remain identical. This improves code clarity by distinguishing between the persistent session records stored on disk and the runtime execution context.

https://claude.ai/code/session_01HXDdDG5C2trBndJzD8kWHk

The ExecutionSession interface in execution-store.ts shared its name with
the ExecutionSession class in execution-session.ts despite having no
relationship. Rename the interface to SessionRecord (and its input type
to EnsureSessionRecordInput) to clarify that it represents a persisted
session record on disk, not a runtime execution wrapper.

https://claude.ai/code/session_01HXDdDG5C2trBndJzD8kWHk
@ottomao ottomao merged commit 9334381 into feat/session-report-export Mar 13, 2026
1 of 2 checks passed
@ottomao ottomao deleted the claude/clarify-class-relationships-USz14 branch March 13, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants