Option to name a session's project (an index made with `name` is never watched)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- c
- Bereich
- developer-experience
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 45.8k
- Forks
- 3.8k
- Ø Merge
- 2 T. 18 Std.
- Gemergte PRs (30 T.)
- 108
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DeusData/codebase-memory-mcp
-
bug ux/behavior
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DeusData/codebase-memory-mcp#3191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation enhancement parsing/quality ux/behavior
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
DeusData/codebase-memory-mcp#3131 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug editor/integration parsing/quality ux/behavior
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DeusData/codebase-memory-mcp#3062 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug documentation editor/integration parsing/quality
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DeusData/codebase-memory-mcp#3050 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
editor/integration parsing/quality
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
DeusData/codebase-memory-mcp#2286 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DeusData/codebase-memory-mcp
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Maintainer antworten meist innerhalb von 1 Tag
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOffengame: 010065A014024000 ios
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
seedds/nxnative#3714 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen