Skip to content

Add save-name command setting#62

Open
rogierx wants to merge 1 commit into
tsperf:mainfrom
rogierx:codex/save-name-command
Open

Add save-name command setting#62
rogierx wants to merge 1 commit into
tsperf:mainfrom
rogierx:codex/save-name-command

Conversation

@rogierx
Copy link
Copy Markdown

@rogierx rogierx commented May 20, 2026

Fixes #20.

This adds a tsperf.tracer.saveNameCommand setting so users can choose the initial persistent save by running a shell command in the workspace folder, for example git branch --show-current. The first non-empty stdout line becomes the save name; empty output or command failures fall back to default.

The generated save name is sanitized before it becomes part of the storage path, and the setting is machine-scoped because it executes a local shell command.

Validation:

  • pnpm exec vitest run test/index.test.ts
  • pnpm run typecheck
  • pnpm exec eslint src/saveNameCommand.ts src/appState.ts src/configuration.ts src/constants.ts scripts/generate-contributes.ts test/index.test.ts
  • pnpm exec rollup -c
  • git diff --check

@rogierx rogierx requested a review from danielroe as a code owner May 20, 2026 04:32
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.

Add settings to use git branch for current save

1 participant