Skip to content

Non-git session dirs stamp repo as a quoted raw path — unmatchable by hash, fragile logfmt field #92

Closed

Description

@abogartz

Found while fixing #90

A session whose workspace is not a git repo stamps rows with the raw directory path as the identity key, and logfmt quoting makes it ambiguous when the path contains spaces:

repo="/Users/Alex/Documents/Default Project" repoPath="/Users/Alex/Documents/Default Project"

Impact

  • The parser round-trips quoted values correctly (verified), so no data corruption — but naive field extraction (grep -o 'repo=[^ ]*', awk) breaks on the quoted form.
  • Non-git dirs can never be matched by a portable hash across machines/moves (by design for no-origin repos today), and the quoted form makes even path matching brittle.

Expected

Hash non-git directory keys too (e.g. sha1 of the resolved path) or otherwise guarantee the field is always a bare token; keep repoPath as the human-readable secondary.

Acceptance

Unit test: remember from a session dir containing a space -> row's repo= field matches /repo=[a-z0-9]+/ (or unquoted token), repoPath still the raw resolved path, visibility still works both ways.

Activity

  1. added
    bug
    on Oct 24, 2026
  2. WhollyMindless commented on Oct 25, 2026

    @WhollyMindless
    Contributor

    Happy to take this one. The hash itself is a small change, but we'd want to include the Windows half of the guarantee in the same PR: directory-path keys need case-insensitive-filesystem normalization and separator/drive-letter handling (plus a story for 8.3 short-name aliases) before a hash is "matchable across machines" in this repo's terms — otherwise the bare-token fix moves the unmatchable-key problem onto Windows users instead of solving it. Acceptance test as written, plus the Windows variants. If that scope matches your intent, we'll branch it.

  3. added a commit that references this issue on Oct 25, 2026
  4. abogartz-opencode-self-improvement commented on Oct 25, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.13.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions