Option to name a session's project (an index made with `name` is never watched)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- c
- Ambito
- developer-experience
Direzione di ricerca
Start with cbm_mcp_server_set_session_context and detect_session in src/mcp/mcp.c, then trace how index_repository handles its name option and how the session watcher selects a project. The issue proposes an environment variable, CBM_SESSION_PROJECT, normalized like name; compare that behavior with the current path-derived name. Done means a session can watch and refresh the index created under the chosen name, while an unset option preserves current behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
index_repository takes name, but a session's project is always the name derived from its root path (cbm_mcp_server_set_session_context and detect_session, src/mcp/mcp.c). When a checkout was indexed under a chosen name, a session started in that checkout still follows the path's name: the watcher registers a project that has no index and never refreshes the named one, so edits made during the session do not reach the graph.
Measured on v0.12.1: a function added to the checkout shows up in search_graph about 15 s later when the index has the path's name, and not at all (90 s) when the same index was built with name.
We choose the name because the path-derived one is repeated in every qualified name. One repository of ours indexes to 918 MB under the name derived from a 150-character checkout path and to 367 MB under a 13-character name.
Could a session take its project name from an option? We run a small patch that reads an environment variable, CBM_SESSION_PROJECT, in those two functions and normalizes it the way name is normalized; unset, nothing changes. With it the watcher follows and refreshes the named index. We can open a pull request if that shape is acceptable.
Developed with the aid of AI under human supervision.
- Lingua principale
- C
- Stelle
- 45.8k
- Fork
- 3.8k
- Merge medio
- 2g 18h
- PR unite (30g)
- 108
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DeusData/codebase-memory-mcp
-
bug ux/behavior
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DeusData/codebase-memory-mcp#3191 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation enhancement parsing/quality ux/behavior
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
DeusData/codebase-memory-mcp#3131 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug editor/integration parsing/quality ux/behavior
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DeusData/codebase-memory-mcp#3062 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Generated client files (AGENTS.md block, SKILL.md) teach a call syntax no harness can executeApertabug documentation editor/integration parsing/quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DeusData/codebase-memory-mcp#3050 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
editor/integration parsing/quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DeusData/codebase-memory-mcp#2286 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DeusData/codebase-memory-mcp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
I maintainer di solito rispondono entro 1 giorno
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameApertagame: 010065A014024000 ios
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
seedds/nxnative#3714 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni