Skip to content

fix: issue-triage quick wins (extraction, MCP probes, gitignore, CJK, impact)#654

Merged
colbymchenry merged 1 commit into
mainfrom
fix/issue-triage-quick-wins
Jun 2, 2026
Merged

fix: issue-triage quick wins (extraction, MCP probes, gitignore, CJK, impact)#654
colbymchenry merged 1 commit into
mainfrom
fix/issue-triage-quick-wins

Conversation

@colbymchenry

Copy link
Copy Markdown
Owner

Summary

A batch of small, self-contained fixes from triaging the open-issue backlog. Each one is localized and independently tested; the suite is green (1119 passed, 2 skipped).

Fixes

Testing

🤖 Generated with Claude Code

… impact)

Batch of small, localized fixes from an open-issue triage:

- .codegraph/.gitignore now ignores everything but itself, so the database,
  daemon.pid, sockets, and logs stop showing up in git status (#492, #484)
- MCP server answers resources/list and prompts/list with empty lists instead
  of -32601, clearing scary log lines in opencode/Codex (#621)
- index SAP HANA .xsjs/.xsjslib as JavaScript (#556) and TS .mts/.cts (#366)
- visit anonymous AMD/CommonJS/IIFE wrapper bodies so their inner functions and
  calls are indexed instead of coming up empty (#528)
- batch the changed-file lookup so a huge first sync no longer hits
  "too many SQL variables" (#540)
- list files with `git ls-files -z` so non-ASCII/CJK paths survive
  core.quotepath and are no longer silently skipped (#541)
- attach Go methods on generic receivers (*T[P]) to their type (#583, RC1)
- impact no longer climbs the structural `contains` edge, so a leaf symbol
  stops dragging in its sibling methods (#536)
- README: explicit `codegraph install` step, run in a new shell (#631)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@colbymchenry colbymchenry merged commit ddb1a8f into main Jun 2, 2026
@colbymchenry colbymchenry deleted the fix/issue-triage-quick-wins branch June 2, 2026 22:49
maxmilian added a commit to maxmilian/codegraph that referenced this pull request Jun 3, 2026
…olbymchenry#556)

The extraction half of colbymchenry#556 — indexing `.xsjs` / `.xsjslib` as JavaScript — already
landed on main via colbymchenry#654. This PR is now scoped to the remaining resolution gap:
the JS import-resolution list did not include the SAP HANA extensions, so an
extensionless `import { x } from './helpers'` in a `.xsjs` file resolved to
nothing and the cross-file call edge was dropped.

Add `.xsjs` / `.xsjslib` to the `javascript` entry in EXTENSION_RESOLUTION so
those imports resolve to their target file and `codegraph_callers` /
`codegraph_impact` see the edge. One resolution test covers the .xsjs -> .xsjslib
import; the now-redundant extraction/detection tests were dropped (covered by colbymchenry#654).
maxmilian added a commit to maxmilian/codegraph that referenced this pull request Jun 10, 2026
…olbymchenry#556)

The extraction half of colbymchenry#556 — indexing `.xsjs` / `.xsjslib` as JavaScript — already
landed on main via colbymchenry#654. This PR is now scoped to the remaining resolution gap:
the JS import-resolution list did not include the SAP HANA extensions, so an
extensionless `import { x } from './helpers'` in a `.xsjs` file resolved to
nothing and the cross-file call edge was dropped.

Add `.xsjs` / `.xsjslib` to the `javascript` entry in EXTENSION_RESOLUTION so
those imports resolve to their target file and `codegraph_callers` /
`codegraph_impact` see the edge. One resolution test covers the .xsjs -> .xsjslib
import; the now-redundant extraction/detection tests were dropped (covered by colbymchenry#654).
colbymchenry added a commit that referenced this pull request Jun 11, 2026
… is ignored (#788) (#802)

Versions <= 0.9.9 wrote an explicit-allowlist .codegraph/.gitignore
(*.db, cache/, .dirty, ...) that never listed daemon.pid or the socket,
so the daemon's runtime pidfile got committed. The wildcard rewrite in
#654/#492/#484 fixed new inits, but the file is only written when
absent, so existing installs kept their stale file forever — the fix
never reached the people hitting it.

Make the gitignore self-heal: ensureGitignore() writes the file if
absent and upgrades a stale CodeGraph-generated default in place,
leaving a user-authored file untouched. A "stale default" is one that
carries our `# CodeGraph data files` header but predates the wildcard
ignore (no bare `*` line) — a header match heals every historical
variant (v0.7.x..0.9.9, all verified to share it) and is idempotent.
validateDirectory() runs on every open()/openSync(), so existing repos
heal on the next codegraph command after upgrading. The duplicated
template (previously inlined in two formats) is consolidated into one
GITIGNORE_CONTENT constant.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
maxmilian added a commit to maxmilian/codegraph that referenced this pull request Jun 12, 2026
…olbymchenry#556)

The extraction half of colbymchenry#556 — indexing `.xsjs` / `.xsjslib` as JavaScript — already
landed on main via colbymchenry#654. This PR is now scoped to the remaining resolution gap:
the JS import-resolution list did not include the SAP HANA extensions, so an
extensionless `import { x } from './helpers'` in a `.xsjs` file resolved to
nothing and the cross-file call edge was dropped.

Add `.xsjs` / `.xsjslib` to the `javascript` entry in EXTENSION_RESOLUTION so
those imports resolve to their target file and `codegraph_callers` /
`codegraph_impact` see the edge. One resolution test covers the .xsjs -> .xsjslib
import; the now-redundant extraction/detection tests were dropped (covered by colbymchenry#654).
maxmilian added a commit to maxmilian/codegraph that referenced this pull request Jun 17, 2026
…olbymchenry#556)

The extraction half of colbymchenry#556 — indexing `.xsjs` / `.xsjslib` as JavaScript — already
landed on main via colbymchenry#654. This PR is now scoped to the remaining resolution gap:
the JS import-resolution list did not include the SAP HANA extensions, so an
extensionless `import { x } from './helpers'` in a `.xsjs` file resolved to
nothing and the cross-file call edge was dropped.

Add `.xsjs` / `.xsjslib` to the `javascript` entry in EXTENSION_RESOLUTION so
those imports resolve to their target file and `codegraph_callers` /
`codegraph_impact` see the edge. One resolution test covers the .xsjs -> .xsjslib
import; the now-redundant extraction/detection tests were dropped (covered by colbymchenry#654).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment