Repository navigation
feat(workbench): add local branch/commit review, GitHub PR review, and symbol navigation - #6974
Merged
Merged
Conversation
Add built-in code review and symbol navigation across workbench diffs, source files, and session prompts, backed by opportunistic local Language Servers with automatic lexical-index fallback. Generated-by: Maka (Antigravity / Gemini)
Fix external review prompt delivery without clobbering Composer drafts or dropping notes when blocked, enforce Directory capability containment and process-group Drop cleanup in LspPool, restore CurrentFile snapshot reactivity, and tighten URI scheme and file:// anchor handling. Generated-by: Maka (Antigravity / Gemini)
M4n5ter
force-pushed
the
feat/code-review-navigation
branch
from
November 17, 2026 13:19
812db4c to
d2d3b90
Compare
4 of 6 tasks
Merged
4 of 5 tasks
liugddx
added a commit
that referenced
this pull request
Nov 18, 2026
4d4a450 (#6974) merged the per-source ignore matchers into one GitignoreBuilder and added them as .rgignore, .ignore, .gitignore. The ignore crate lets the last matching rule win, so the priority was reversed: .gitignore overrode .rgignore, and `!keep.cache` in .rgignore no longer rescued a file excluded by `*.cache` in .gitignore. Add the sources weakest first: .git/info/exclude, .gitignore, .ignore, .rgignore. The regression went unnoticed because files/tests.rs had been unreferenced since #6713. Re-attach it; the test that covers this now passes and fails without the fix. Also restore the test-only template()/flat() helpers that #6713 removed together with baseline/tests.rs, and re-attach that module. Co-Authored-By: Claude Opus 5.5 <[email protected]> Generated-by: Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a complete built-in Code Review, GitHub PR Review, and Symbol Navigation experience across Maka's workbench diff views, source file viewer, and live conversation composer — combining pure-Rust local Git revision comparison, native HTTPS GitHub PR review with minimal CLI dependency, inline prompt annotations, and opportunistic local LSP symbol navigation.
Uncommitted·Branch·Commits·PR) & Review Progress:gixrevision & comparison primitives (gitRevisions,gitCompare,gitCompareDiff) supporting working-tree changes, three-dot branch merge-base comparisons (base...HEADvia commit-graph LCA), single-commit parent diffs, and arbitrary commit ranges, alongside syntax-highlighted NSH<DiffView>(Unified / Split, expandable full-file context, word-level highlights, hunk stepping) and multi-file Review all.✓/V) progress bound to file diff content digests (auto-invalidating when file hunks change),‹ N / M ›([/]) cross-file stepping,←/→(Mod+[/Mod+]) resource history, and flicker-free per-sessionChangesViewCache.githubContext,githubPullRequests,githubPullRequest,githubPullRequestFileDiff,githubSubmitReview,githubReplyComment,saveGitHubToken, anddeleteGitHubTokenon theagentcontract, implemented directly overreqwest+maka_network::Policyagainst GitHub REST API (supportinggithub.comand GitHub Enterprise hosts).CallResources"secret"so secrets never enter the SQLite journal) →GH_TOKEN/GITHUB_TOKEN→ pure-Rust~/.config/gh/hosts.yml→ pure-Rust~/.netrc→ cachedgh auth token --hostnameonly as last-resort fallback.scope.identity.agent().is_none()), verifyexpected_head_shaagainst live PRhead.shabefore publishing reviews, fast-path PR file diffs via localgixobjects whenbase_sha&head_shaare present locally, and render inlineGitHubThreadCardthreads (with liveReplyand 1-click Ask Agent handoff), pending PR review comments (mapped only onto valid GitHub patch hunk lines), and a Submit review (Comment/Approve/Request changes) popover.+/ toolbar inline review notes on both diffs and source files, backed by a per-sessionReviewStoreandReviewBatchBarthat formats file + line range + code excerpts into Markdown and either inserts into the Composer draft (Add to prompt) or dispatches immediately (Send review/Send now, steering active runs and rolling back drafts only after host acceptance).codeDefinition,codeReferences, andcodeHoveron theagentcontract.LspPoolauto-detects installed local Language Servers (rust-analyzer,typescript-language-server,vtsls,basedpyright-langserver,pyright-langserver,pylsp,gopls,clangd,sourcekit-lsp,zls,lua-language-server) with workspace-containment URI filtering,didOpen/didChangedisk synchronization, bounded latency/idle TTL, and negative-cache cooldowns, falling back seamlessly to a capability-scoped declaration/reference index when no server is installed or responsive.CurrentFile(<= 2 MiBtext files) to<Editor readOnly>withCmd+Hoverlink underlines,Cmd+Click/F12Go to Definition,Shift+F12Find References (SymbolLocationsDrawer), hover signature/doc cards,Mod+Ffind bar, and#L20/#L20-L35/path:line:collink range reveal.Verification
Ran locally and passed:
cargo nextest run -p maka-fs-tools(42/42 tests coveringGitDiffbefore/after,workspace_diff, branch merge-basecompare& commit diffs, remote repo URL parsing, lexical symbol definition/references/hover, mock stdio LSPdefinition/hover& stale-bufferdidChangesync, unmaterializedprivate_root, and outside-workspace URI filtering)cargo nextest run -p maka-agent-apicargo nextest run -p maka-agent-native --lib -E 'test(github::tests)'(covering pure-Rustgh/hosts.yml&.netrcparsing, GitHub REST endpoints,expected_head_shamismatch protection, and agent-identity mutation rejection)cargo nextest run --manifest-path products/maka/client/Cargo.tomlcargo nextest run -p maka-workbench --lib(including#L20,#L20-L35,#L20C5, andpath:line:collink parsing)node scripts/ci.mjs run contracts(generate.mjs check, SDK acceptancetsc, bundletsc, and workbenchui_types)node scripts/ci.mjs check tooling-tests(290/290 tests includingconversation-resources.test.mjscoveringopenChanges,openDiffacross working/branch/commit/PR sources, back/forward history,buildPatchLineMap, Viewed digest invalidation, andReviewStorebatch formatting)node scripts/ci.mjs run productnode scripts/ci.mjs check licensesandnode scripts/ci.mjs check noticescargo fmt --checkandbiomeformat checkNot run locally:
linux-desktop, Windows native tests).Desktop verification screenshots (isolated
maka desktopinstance):AI use
Select exactly one:
Tool(s) and scope: Maka (Antigravity / Gemini) authored the backend Git/GitHub/symbol/LSP implementation, workbench UI components, tests, and live desktop verification.
Checklist
Does this PR entail a change in behavior?