Skip to content

feat(import): label imported sessions with a human summary - #18

Merged
takashi-matsuyama merged 1 commit into
mainfrom
feat/import-readable-labels
May 31, 2026
Merged

takashi-matsuyama merged 1 commit into
mainfrom
feat/import-readable-labels

Conversation

@takashi-matsuyama

Copy link
Copy Markdown
Member

What

Labels imported Claude Code sessions with a human-readable summary instead of
the raw session id.

  • Before: claude-code import fe450e3e-ab3d-42e1-880f-f3b4f31089aa
  • After: claude-code 2026-05-18: 34 commands, 12 files

Why

In basou session list and the handoff the old label read as an opaque id.
The summary (date + activity counts) lets a session be recognized by content.

How

  • The transform builds the label from the session date and the
    command_executed / file_changed counts it derives.
  • The Claude session id stays in source.external_id, so traceability and
    idempotent re-import are unaffected — the label no longer needs to carry it.
  • Paths are deliberately excluded: the label is not path-sanitized downstream,
    so a raw file path would leak an operator-private prefix.

Tests

  • Transform: label equals claude-code <date>: <n> command(s), <m> file(s);
    the explicit externalId is stored in source, not the label.
  • typecheck / build / full test suite / lint all green.

🤖 Generated with Claude Code

Imported Claude Code sessions were labelled `claude-code import <uuid>`,
which reads as an opaque id in `basou session list` and the handoff. Label
them with the date and activity counts instead
(`claude-code <date>: <n> commands, <m> files`). The Claude session id is
kept structurally in `source.external_id`, so traceability and idempotent
re-import are unaffected. Paths are excluded from the label because it is
not path-sanitized downstream.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@takashi-matsuyama
takashi-matsuyama merged commit fc5b2e5 into main May 31, 2026
7 checks passed
@takashi-matsuyama
takashi-matsuyama deleted the feat/import-readable-labels branch May 31, 2026 13:22
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.

1 participant