coding-agents: bank id not Unicode-normalized — same folder maps to two banks (NFC vs NFD) on macOS

Open
#7,268 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

integration:coding-agents

Version: @vectorize-io/hindsight-coding-agents 0.9.1, macOS (APFS)

What happens

The bank id is built from the project folder's basename (coding-agent::{gitProject}) without Unicode normalization. On macOS a folder name with non-ASCII letters (e.g. ç ö ü ş ğ İ) can reach the plugin in two byte forms:

  • NFD (decomposed, c + U+0327) — how the name is stored on disk; Codex passes the cwd as-is.
  • NFC (precomposed, U+00E7) — what Claude Code passes.

So one folder ends up with two banks, e.g. coding-agent::Çalışma (NFC) and coding-agent::Çalışma (NFD), which look identical but are separate. Memories written by one agent are invisible to the other, and each bank gets its own survey and pages (double LLM cost).

Repro

  1. mkdir "$HOME/çalışma-test" and cd into it.
  2. Start a session there with Claude Code, then with Codex.
  3. GET /v1/default/banks: two banks with the same visible name; bank_id.encode() differs.

Expected: one bank per folder regardless of harness.

Suggested fix: normalize to NFC wherever a bank id or path key is derived, e.g. in deriveBankId (the {project} / {gitProject} resolvers) and in mapLookup / configuredDir, so mapPathToBank keys match either form:

const nfc = (s: string) => s.normalize("NFC");

Workaround: add both spellings of the path to mapPathToBank, pointing to the NFC bank id.

Dominant language
Python
Stars
45.2k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vectorize-io/hindsight

All issues in vectorize-io/hindsight

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.