Skip to content

Show callers and callees and highlight the active function on the maps - #43

Merged
valuecodes merged 3 commits into
mainfrom
feat/callers-callees
Oct 13, 2026
Merged

valuecodes merged 3 commits into
mainfrom
feat/callers-callees

Conversation

@valuecodes

Copy link
Copy Markdown
Owner

What

  • Part 2/5 of Post-MVP additions: stats and unloading, ambiguous chooser, recursion breadcrumb, callers/callees: who calls the current function and whom it calls, plus the active function on both maps.
  • New @repo/code-graph/call-index: callIndexOf(graph) (memoised per graph) gives callers and callees from the call edges, flagging recursion, and groups each ambiguous call's candidates.
  • The source panel (E) adds called by … and calls … · maybe Circle.render() | Square.render() lines. Each list is cut at 5 names plus +n, ↻ marks self-calls, and the file is added when shown names collide.
  • The local map outlines the rooms of the function you're in more brightly. The Tab map draws them in a separate highlight layer that stays visible zoomed out and keeps the memoised layers from re-rendering. It uses no inline <style>, which the production CSP (style-src 'self') would block.

How to test

pnpm test
pnpm typecheck
pnpm --filter web dev   # open /?code=resolution, walk into main(), press E; press Tab

Security review

No security-impacting changes.

🤖 Generated with Claude Code

valuecodes and others added 2 commits October 13, 2026 21:50
…he maps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 13, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ee61c60a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/web/src/source-view.ts Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T19:02:53.154029Z 3ee61c6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@valuecodes
valuecodes merged commit 27a1f18 into main Oct 13, 2026
10 checks passed
@valuecodes
valuecodes deleted the feat/callers-callees branch October 13, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants